Home
last modified time | relevance | path

Searched refs:ScalarTy (Results 1 – 14 of 14) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DLowLevelTypeImpl.h65 static LLT vector(uint16_t NumElements, LLT ScalarTy) { in vector() argument
67 assert(!ScalarTy.isVector() && "invalid vector element type"); in vector()
68 return LLT{ScalarTy.isPointer(), /*isVector=*/true, NumElements, in vector()
69 ScalarTy.getSizeInBits(), in vector()
70 ScalarTy.isPointer() ? ScalarTy.getAddressSpace() : 0}; in vector()
73 static LLT scalarOrVector(uint16_t NumElements, LLT ScalarTy) { in scalarOrVector() argument
74 return NumElements == 1 ? ScalarTy : LLT::vector(NumElements, ScalarTy); in scalarOrVector()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLowLevelType.cpp23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType() local
25 return ScalarTy; in getLLTForType()
26 return LLT::vector(NumElements, ScalarTy); in getLLTForType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DType.h426 template <typename ScalarTy> static Type *getScalarTy(LLVMContext &C) { in getScalarTy()
427 int noOfBits = sizeof(ScalarTy) * CHAR_BIT; in getScalarTy()
428 if (std::is_integral<ScalarTy>::value) { in getScalarTy()
430 } else if (std::is_floating_point<ScalarTy>::value) { in getScalarTy()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp2657 Type *ScalarTy = VL0->getType(); in buildTree_rec() local
2659 if (DL->getTypeSizeInBits(ScalarTy) != in buildTree_rec()
2660 DL->getTypeAllocSizeInBits(ScalarTy)) { in buildTree_rec()
2701 uint64_t Size = DL->getTypeAllocSize(ScalarTy); in buildTree_rec()
2925 llvm::Type *ScalarTy = cast<StoreInst>(VL0)->getValueOperand()->getType(); in buildTree_rec() local
2963 uint64_t Size = DL->getTypeAllocSize(ScalarTy); in buildTree_rec()
3219 Type *ScalarTy = VL[0]->getType(); in getEntryCost() local
3221 ScalarTy = SI->getValueOperand()->getType(); in getEntryCost()
3223 ScalarTy = CI->getOperand(0)->getType(); in getEntryCost()
3224 VectorType *VecTy = VectorType::get(ScalarTy, VL.size()); in getEntryCost()
[all …]
DLoopVectorize.cpp2184 Type *ScalarTy = getMemInstValueType(Instr); in vectorizeInterleaveGroup() local
2186 Type *VecTy = VectorType::get(ScalarTy, InterleaveFactor * VF); in vectorizeInterleaveGroup()
2224 AddrPart = Builder.CreateGEP(ScalarTy, AddrPart, Builder.getInt32(-Index)); in vectorizeInterleaveGroup()
2289 if (Member->getType() != ScalarTy) { in vectorizeInterleaveGroup()
2304 VectorType *SubVT = VectorType::get(ScalarTy, VF); in vectorizeInterleaveGroup()
3277 for (Type *ScalarTy : ScalarTys) in getVectorCallCost()
3278 Tys.push_back(ToVectorTy(ScalarTy, VF)); in getVectorCallCost()
4647 auto *ScalarTy = getMemInstValueType(I); in interleavedAccessCanBeWidened() local
4648 if (hasIrregularType(ScalarTy, DL, VF)) in interleavedAccessCanBeWidened()
4694 auto *ScalarTy = LI ? LI->getType() : SI->getValueOperand()->getType(); in memoryInstructionCanBeWidened() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp3347 Type *ScalarTy = DataTy->getScalarType(); in isLegalMaskedLoad() local
3349 if (ScalarTy->isPointerTy()) in isLegalMaskedLoad()
3352 if (ScalarTy->isFloatTy() || ScalarTy->isDoubleTy()) in isLegalMaskedLoad()
3355 if (!ScalarTy->isIntegerTy()) in isLegalMaskedLoad()
3358 unsigned IntWidth = ScalarTy->getIntegerBitWidth(); in isLegalMaskedLoad()
3413 Type *ScalarTy = DataTy->getVectorElementType(); in isLegalMaskedExpandLoad() local
3415 if (ScalarTy->isFloatTy() || ScalarTy->isDoubleTy()) in isLegalMaskedExpandLoad()
3418 if (!ScalarTy->isIntegerTy()) in isLegalMaskedExpandLoad()
3421 unsigned IntWidth = ScalarTy->getIntegerBitWidth(); in isLegalMaskedExpandLoad()
3454 Type *ScalarTy = DataTy->getScalarType(); in isLegalMaskedGather() local
[all …]
DX86ISelLowering.cpp8494 Type *ScalarTy = Type::getIntNTy(*Ctx, SplatBitSize); in lowerBuildVectorAsBroadcast() local
8495 Constant *C = Constant::getIntegerValue(ScalarTy, SplatValue); in lowerBuildVectorAsBroadcast()
32907 MVT ScalarTy = MaskVT.isInteger() ? MaskVT.getScalarType() : in matchUnaryShuffle() local
32909 SrcVT = MVT::getVectorVT(ScalarTy, SrcSize / MaskEltSize); in matchUnaryShuffle()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h1609 Type *ScalarTy = Ty->getVectorElementType(); in getArithmeticReductionCost() local
1622 Type *SubTy = VectorType::get(ScalarTy, NumVecElts); in getArithmeticReductionCost()
1659 Type *ScalarTy = Ty->getVectorElementType(); in getMinMaxReductionCost() local
1681 Type *SubTy = VectorType::get(ScalarTy, NumVecElts); in getMinMaxReductionCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DValueTracking.cpp1204 Type *ScalarTy = SrcTy->getScalarType(); in computeKnownBitsFromOperator() local
1205 SrcBitWidth = ScalarTy->isPointerTy() ? in computeKnownBitsFromOperator()
1206 Q.DL.getPointerTypeSizeInBits(ScalarTy) : in computeKnownBitsFromOperator()
1207 Q.DL.getTypeSizeInBits(ScalarTy); in computeKnownBitsFromOperator()
1731 Type *ScalarTy = V->getType()->getScalarType(); in computeKnownBits() local
1732 unsigned ExpectedWidth = ScalarTy->isPointerTy() ? in computeKnownBits()
1733 Q.DL.getPointerTypeSizeInBits(ScalarTy) : Q.DL.getTypeSizeInBits(ScalarTy); in computeKnownBits()
2479 Type *ScalarTy = V->getType()->getScalarType(); in ComputeNumSignBitsImpl() local
2480 unsigned TyBits = ScalarTy->isPointerTy() ? in ComputeNumSignBitsImpl()
2481 Q.DL.getPointerTypeSizeInBits(ScalarTy) : in ComputeNumSignBitsImpl()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonISelLowering.cpp2388 MVT ScalarTy = tyScalar(VecTy); in extractVector() local
2389 VecV = DAG.getBitcast(ScalarTy, VecV); in extractVector()
2406 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy, in extractVector()
2414 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy, in extractVector()
2462 MVT ScalarTy = MVT::getIntegerVT(VecWidth); in insertVector() local
2467 VecV = DAG.getBitcast(ScalarTy, VecV); in insertVector()
2469 ValV = DAG.getAnyExtOrTrunc(ValV, dl, ScalarTy); in insertVector()
2477 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy, in insertVector()
2483 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy, in insertVector()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64InstructionSelector.cpp152 const RegisterBank &DstRB, LLT ScalarTy,
2901 Optional<Register> DstReg, const RegisterBank &DstRB, LLT ScalarTy, in emitExtractVectorElt() argument
2906 if (!getLaneCopyOpcode(CopyOpc, ExtractSubReg, ScalarTy.getSizeInBits())) { in emitExtractVectorElt()
2913 getRegClassForTypeOnBank(ScalarTy, DstRB, RBI, true); in emitExtractVectorElt()
3396 const LLT ScalarTy = LLT::scalar(Op1Ty.getSizeInBits()); in emitVectorConcat() local
3402 emitScalarToVector(ScalarTy.getSizeInBits(), DstRC, Op1, MIRBuilder); in emitVectorConcat()
3404 emitScalarToVector(ScalarTy.getSizeInBits(), DstRC, Op2, MIRBuilder); in emitVectorConcat()
3413 getInsertVecEltOpInfo(FPRBank, ScalarTy.getSizeInBits()); in emitVectorConcat()
DAArch64ISelLowering.cpp3032 EVT ScalarTy = Scalar.getValueType(); in LowerINTRINSIC_WO_CHAIN() local
3033 if ((ScalarTy == MVT::i8) || (ScalarTy == MVT::i16)) in LowerINTRINSIC_WO_CHAIN()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSROA.cpp2780 Type *ScalarTy = AllocaTy->getScalarType(); in visitMemSetInst() local
2795 DL.isLegalInteger(DL.getTypeSizeInBits(ScalarTy)); in visitMemSetInst()
2821 assert(ElementTy == ScalarTy); in visitMemSetInst()
2863 V = getIntegerSplat(II.getValue(), DL.getTypeSizeInBits(ScalarTy) / 8); in visitMemSetInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstants.cpp356 Type *ScalarTy = Ty->getScalarType(); in getIntegerValue() local
362 if (PointerType *PTy = dyn_cast<PointerType>(ScalarTy)) in getIntegerValue()