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

/freebsd-12-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-12-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DLowLevelTypeImpl.h65 static LLT vector(uint16_t NumElements, LLT ScalarTy) { argument
67 assert(!ScalarTy.isVector() && "invalid vector element type");
68 return LLT{ScalarTy.isPointer(), /*isVector=*/true, NumElements,
69 ScalarTy.getSizeInBits(),
70 ScalarTy.isPointer() ? ScalarTy.getAddressSpace() : 0};
73 static LLT scalarOrVector(uint16_t NumElements, LLT ScalarTy) { argument
74 return NumElements == 1 ? ScalarTy : LLT::vector(NumElements, ScalarTy);
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DType.h426 template <typename ScalarTy> static Type *getScalarTy(LLVMContext &C) {
427 int noOfBits = sizeof(ScalarTy) * CHAR_BIT;
428 if (std::is_integral<ScalarTy>::value) {
430 } else if (std::is_floating_point<ScalarTy>::value) {
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp2657 Type *ScalarTy = VL0->getType();
2659 if (DL->getTypeSizeInBits(ScalarTy) !=
2660 DL->getTypeAllocSizeInBits(ScalarTy)) {
2701 uint64_t Size = DL->getTypeAllocSize(ScalarTy);
2925 llvm::Type *ScalarTy = cast<StoreInst>(VL0)->getValueOperand()->getType();
2963 uint64_t Size = DL->getTypeAllocSize(ScalarTy);
3219 Type *ScalarTy = VL[0]->getType();
3221 ScalarTy = SI->getValueOperand()->getType();
3223 ScalarTy = CI->getOperand(0)->getType();
3224 VectorType *VecTy = VectorType::get(ScalarTy, V
[all...]
H A DLoopVectorize.cpp2184 Type *ScalarTy = getMemInstValueType(Instr);
2186 Type *VecTy = VectorType::get(ScalarTy, InterleaveFactor * VF);
2224 AddrPart = Builder.CreateGEP(ScalarTy, AddrPart, Builder.getInt32(-Index));
2289 if (Member->getType() != ScalarTy) {
2304 VectorType *SubVT = VectorType::get(ScalarTy, VF);
3277 for (Type *ScalarTy : ScalarTys)
3278 Tys.push_back(ToVectorTy(ScalarTy, VF));
4647 auto *ScalarTy = getMemInstValueType(I);
4648 if (hasIrregularType(ScalarTy, DL, VF))
4694 auto *ScalarTy
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
H A DPrintfFormatString.cpp673 ArgType ScalarTy = getScalarArgType(Ctx, IsObjCLiteral);
674 if (!ScalarTy.isValid() || VectorNumElts.isInvalid())
675 return ScalarTy;
677 return ScalarTy.makeVectorType(Ctx, VectorNumElts.getConstantAmount());
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp3347 Type *ScalarTy = DataTy->getScalarType();
3349 if (ScalarTy->isPointerTy())
3352 if (ScalarTy->isFloatTy() || ScalarTy->isDoubleTy())
3355 if (!ScalarTy->isIntegerTy())
3358 unsigned IntWidth = ScalarTy->getIntegerBitWidth();
3413 Type *ScalarTy = DataTy->getVectorElementType();
3415 if (ScalarTy->isFloatTy() || ScalarTy->isDoubleTy())
3418 if (!ScalarTy
3454 Type *ScalarTy = DataTy->getScalarType(); local
3590 Type *ScalarTy = VecTy->getVectorElementType(); local
[all...]
H A DX86ISelLowering.cpp8494 Type *ScalarTy = Type::getIntNTy(*Ctx, SplatBitSize);
8495 Constant *C = Constant::getIntegerValue(ScalarTy, SplatValue);
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h1609 Type *ScalarTy = Ty->getVectorElementType(); local
1622 Type *SubTy = VectorType::get(ScalarTy, NumVecElts);
1659 Type *ScalarTy = Ty->getVectorElementType(); local
1681 Type *SubTy = VectorType::get(ScalarTy, NumVecElts);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp2388 MVT ScalarTy = tyScalar(VecTy); local
2389 VecV = DAG.getBitcast(ScalarTy, VecV);
2406 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy,
2414 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy,
2462 MVT ScalarTy = MVT::getIntegerVT(VecWidth); local
2467 VecV = DAG.getBitcast(ScalarTy, VecV);
2469 ValV = DAG.getAnyExtOrTrunc(ValV, dl, ScalarTy);
2477 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy,
2483 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy,
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp1204 Type *ScalarTy = SrcTy->getScalarType(); local
1205 SrcBitWidth = ScalarTy->isPointerTy() ?
1206 Q.DL.getPointerTypeSizeInBits(ScalarTy) :
1207 Q.DL.getTypeSizeInBits(ScalarTy);
1731 Type *ScalarTy = V->getType()->getScalarType(); local
1732 unsigned ExpectedWidth = ScalarTy->isPointerTy() ?
1733 Q.DL.getPointerTypeSizeInBits(ScalarTy) : Q.DL.getTypeSizeInBits(ScalarTy);
2479 Type *ScalarTy = V->getType()->getScalarType(); local
2480 unsigned TyBits = ScalarTy
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64InstructionSelector.cpp152 const RegisterBank &DstRB, LLT ScalarTy,
2901 Optional<Register> DstReg, const RegisterBank &DstRB, LLT ScalarTy,
2906 if (!getLaneCopyOpcode(CopyOpc, ExtractSubReg, ScalarTy.getSizeInBits())) {
2913 getRegClassForTypeOnBank(ScalarTy, DstRB, RBI, true);
3396 const LLT ScalarTy = LLT::scalar(Op1Ty.getSizeInBits()); local
3402 emitScalarToVector(ScalarTy.getSizeInBits(), DstRC, Op1, MIRBuilder);
3404 emitScalarToVector(ScalarTy.getSizeInBits(), DstRC, Op2, MIRBuilder);
3413 getInsertVecEltOpInfo(FPRBank, ScalarTy.getSizeInBits());
2900 emitExtractVectorElt( Optional<Register> DstReg, const RegisterBank &DstRB, LLT ScalarTy, Register VecReg, unsigned LaneIdx, MachineIRBuilder &MIRBuilder) const argument
H A DAArch64ISelLowering.cpp3032 EVT ScalarTy = Scalar.getValueType(); local
3033 if ((ScalarTy == MVT::i8) || (ScalarTy == MVT::i16))
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp585 /// to the conversion from scalar type ScalarTy to the Boolean type.
586 CastKind Sema::ScalarTypeToBooleanCastKind(QualType ScalarTy) { argument
587 switch (ScalarTy->getScalarTypeKind()) {
H A DSemaExpr.cpp9051 QualType ScalarTy = Scalar->get()->getType().getUnqualifiedType(); local
9062 if (!VectorEltTy->isArithmeticType() || !ScalarTy->isArithmeticType())
9077 ScalarTy->isIntegralType(S.Context) &&
9078 S.Context.getIntegerTypeOrder(VectorEltTy, ScalarTy)) {
9085 ScalarTy->isRealFloatingType()) {
9086 if (S.Context.getTypeSize(VectorEltTy) == S.Context.getTypeSize(ScalarTy))
9091 if (ScalarTy->isRealFloatingType()) {
9097 int Order = S.Context.getFloatingTypeOrder(VectorEltTy, ScalarTy);
9112 } else if (ScalarTy->isIntegralType(S.Context)) {
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2780 Type *ScalarTy = AllocaTy->getScalarType();
2795 DL.isLegalInteger(DL.getTypeSizeInBits(ScalarTy));
2821 assert(ElementTy == ScalarTy);
2863 V = getIntegerSplat(II.getValue(), DL.getTypeSizeInBits(ScalarTy) / 8);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp356 Type *ScalarTy = Ty->getScalarType(); local
362 if (PointerType *PTy = dyn_cast<PointerType>(ScalarTy))
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h10516 /// to the conversion from scalar type ScalarTy to the Boolean type.
10517 static CastKind ScalarTypeToBooleanCastKind(QualType ScalarTy);

Completed in 605 milliseconds