Searched refs:ScalarTy (Results 1 - 20 of 20) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DLowLevelType.cpp23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); local
25 return ScalarTy;
26 return LLT::vector(NumElements, ScalarTy);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DLowLevelTypeImpl.h66 static LLT vector(uint16_t NumElements, LLT ScalarTy) { argument
68 assert(!ScalarTy.isVector() && "invalid vector element type");
69 return LLT{ScalarTy.isPointer(), /*isVector=*/true, NumElements,
70 ScalarTy.getSizeInBits(),
71 ScalarTy.isPointer() ? ScalarTy.getAddressSpace() : 0};
74 static LLT scalarOrVector(uint16_t NumElements, LLT ScalarTy) { argument
75 return NumElements == 1 ? ScalarTy : LLT::vector(NumElements, ScalarTy);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DType.h416 template <typename ScalarTy> static Type *getScalarTy(LLVMContext &C) {
417 int noOfBits = sizeof(ScalarTy) * CHAR_BIT;
418 if (std::is_integral<ScalarTy>::value) {
420 } else if (std::is_floating_point<ScalarTy>::value) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp144 Type *ScalarTy = Ext0->getType(); local
151 ScalarOpCost = TTI.getArithmeticInstrCost(Opcode, ScalarTy);
156 ScalarOpCost = TTI.getCmpSelInstrCost(Opcode, ScalarTy,
157 CmpInst::makeCmpResultType(ScalarTy));
461 Type *ScalarTy = IsConst0 ? V1->getType() : V0->getType(); local
465 (ScalarTy->isIntegerTy() || ScalarTy->isFloatingPointTy() ||
466 ScalarTy->isPointerTy()) &&
472 ScalarOpCost = TTI.getCmpSelInstrCost(Opcode, ScalarTy);
475 ScalarOpCost = TTI.getArithmeticInstrCost(Opcode, ScalarTy);
[all...]
H A DSLPVectorizer.cpp2686 Type *ScalarTy = VL0->getType();
2688 if (DL->getTypeSizeInBits(ScalarTy) !=
2689 DL->getTypeAllocSizeInBits(ScalarTy)) {
2730 uint64_t Size = DL->getTypeAllocSize(ScalarTy);
2954 llvm::Type *ScalarTy = cast<StoreInst>(VL0)->getValueOperand()->getType();
2992 uint64_t Size = DL->getTypeAllocSize(ScalarTy);
3288 Type *ScalarTy = VL[0]->getType();
3290 ScalarTy = SI->getValueOperand()->getType();
3292 ScalarTy = CI->getOperand(0)->getType();
3293 auto *VecTy = FixedVectorType::get(ScalarTy, V
[all...]
H A DLoopVectorize.cpp2199 Type *ScalarTy = getMemInstValueType(Instr);
2201 auto *VecTy = FixedVectorType::get(ScalarTy, InterleaveFactor * VF);
2239 AddrPart = Builder.CreateGEP(ScalarTy, AddrPart, Builder.getInt32(-Index));
2304 if (Member->getType() != ScalarTy) {
2319 auto *SubVT = FixedVectorType::get(ScalarTy, VF);
3307 for (Type *ScalarTy : ScalarTys)
3308 Tys.push_back(ToVectorTy(ScalarTy, VF));
4695 auto *ScalarTy = getMemInstValueType(I);
4696 if (hasIrregularType(ScalarTy, DL, VF))
4742 auto *ScalarTy
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DPrintfFormatString.cpp674 ArgType ScalarTy = getScalarArgType(Ctx, IsObjCLiteral);
675 if (!ScalarTy.isValid() || VectorNumElts.isInvalid())
676 return ScalarTy;
678 return ScalarTy.makeVectorType(Ctx, VectorNumElts.getConstantAmount());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp4028 Type *ScalarTy = DataTy->getScalarType();
4030 if (ScalarTy->isPointerTy())
4033 if (ScalarTy->isFloatTy() || ScalarTy->isDoubleTy())
4036 if (!ScalarTy->isIntegerTy())
4039 unsigned IntWidth = ScalarTy->getIntegerBitWidth();
4094 Type *ScalarTy = cast<VectorType>(DataTy)->getElementType();
4096 if (ScalarTy->isFloatTy() || ScalarTy->isDoubleTy())
4099 if (!ScalarTy
4135 Type *ScalarTy = DataTy->getScalarType(); local
[all...]
H A DX86ISelLowering.cpp8740 Type *ScalarTy = Type::getIntNTy(*Ctx, SplatBitSize);
8741 Constant *C = Constant::getIntegerValue(ScalarTy, SplatValue);
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h1728 Type *ScalarTy = Ty->getElementType(); local
1740 VectorType *SubTy = FixedVectorType::get(ScalarTy, NumVecElts);
1775 Type *ScalarTy = Ty->getElementType(); local
1796 auto *SubTy = FixedVectorType::get(ScalarTy, NumVecElts);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp2525 MVT ScalarTy = tyScalar(VecTy); local
2526 VecV = DAG.getBitcast(ScalarTy, VecV);
2543 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy,
2551 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy,
2599 MVT ScalarTy = MVT::getIntegerVT(VecWidth); local
2604 VecV = DAG.getBitcast(ScalarTy, VecV);
2606 ValV = DAG.getAnyExtOrTrunc(ValV, dl, ScalarTy);
2614 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy,
2620 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp1290 Type *ScalarTy = SrcTy->getScalarType(); local
1291 SrcBitWidth = ScalarTy->isPointerTy() ?
1292 Q.DL.getPointerTypeSizeInBits(ScalarTy) :
1293 Q.DL.getTypeSizeInBits(ScalarTy);
1916 Type *ScalarTy = Ty->getScalarType(); local
1917 if (ScalarTy->isPointerTy()) {
1918 assert(BitWidth == Q.DL.getPointerTypeSizeInBits(ScalarTy) &&
1921 assert(BitWidth == Q.DL.getTypeSizeInBits(ScalarTy) &&
2728 Type *ScalarTy = Ty->getScalarType(); local
2729 unsigned TyBits = ScalarTy
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp177 const RegisterBank &DstRB, LLT ScalarTy,
3375 Optional<Register> DstReg, const RegisterBank &DstRB, LLT ScalarTy,
3380 if (!getLaneCopyOpcode(CopyOpc, ExtractSubReg, ScalarTy.getSizeInBits())) {
3387 getRegClassForTypeOnBank(ScalarTy, DstRB, RBI, true);
3872 const LLT ScalarTy = LLT::scalar(Op1Ty.getSizeInBits()); local
3878 emitScalarToVector(ScalarTy.getSizeInBits(), DstRC, Op1, MIRBuilder);
3880 emitScalarToVector(ScalarTy.getSizeInBits(), DstRC, Op2, MIRBuilder);
3889 getInsertVecEltOpInfo(FPRBank, ScalarTy.getSizeInBits());
3374 emitExtractVectorElt( Optional<Register> DstReg, const RegisterBank &DstRB, LLT ScalarTy, Register VecReg, unsigned LaneIdx, MachineIRBuilder &MIRBuilder) const argument
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp590 /// to the conversion from scalar type ScalarTy to the Boolean type.
591 CastKind Sema::ScalarTypeToBooleanCastKind(QualType ScalarTy) { argument
592 switch (ScalarTy->getScalarTypeKind()) {
H A DSemaExpr.cpp9676 QualType ScalarTy = Scalar->get()->getType().getUnqualifiedType(); local
9687 if (!VectorEltTy->isArithmeticType() || !ScalarTy->isArithmeticType())
9702 ScalarTy->isIntegralType(S.Context) &&
9703 S.Context.getIntegerTypeOrder(VectorEltTy, ScalarTy)) {
9710 ScalarTy->isRealFloatingType()) {
9711 if (S.Context.getTypeSize(VectorEltTy) == S.Context.getTypeSize(ScalarTy))
9716 if (ScalarTy->isRealFloatingType()) {
9728 int Order = S.Context.getFloatingTypeOrder(VectorEltTy, ScalarTy);
9743 } else if (ScalarTy->isIntegralType(S.Context)) {
9750 } else if (ScalarTy
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp1063 Type *ScalarTy = ScalarSrc->getType(); local
1064 Type *VecTy = VectorType::get(ScalarTy, IE.getType()->getElementCount());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2780 Type *ScalarTy = AllocaTy->getScalarType();
2795 DL.isLegalInteger(DL.getTypeSizeInBits(ScalarTy).getFixedSize());
2821 assert(ElementTy == ScalarTy);
2865 DL.getTypeSizeInBits(ScalarTy).getFixedSize() / 8);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp370 Type *ScalarTy = Ty->getScalarType(); local
376 if (PointerType *PTy = dyn_cast<PointerType>(ScalarTy))
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp3259 EVT ScalarTy = Scalar.getValueType(); local
3260 if ((ScalarTy == MVT::i8) || (ScalarTy == MVT::i16))
11735 EVT ScalarTy = Op1.getValueType(); local
11737 if ((ScalarTy == MVT::i8) || (ScalarTy == MVT::i16)) {
11749 EVT ScalarTy = Scalar.getValueType(); local
11751 if ((ScalarTy == MVT::i8) || (ScalarTy == MVT::i16))
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h10932 /// to the conversion from scalar type ScalarTy to the Boolean type.
10933 static CastKind ScalarTypeToBooleanCastKind(QualType ScalarTy);

Completed in 811 milliseconds