Home
last modified time | relevance | path

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

/external/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()
/external/clang/test/CodeGen/
Dparameter-passing.c14 typedef int ScalarTy; typedef
24 static ScalarTy scalar_id(ScalarTy a) { return a; } in scalar_id()
33 static void scalar_mul(ScalarTy a) { result *= a; } in scalar_mul()
/external/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()
/external/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()
/external/tensorflow/tensorflow/compiler/xla/service/
Dpattern_matcher.h1831 template <typename ScalarTy>
1837 constexpr HloConstantScalarImpl(ScalarTy val, bool match_effective_scalar)
1892 std::optional<ScalarTy> val_;
1983 template <typename ScalarTy>
1984 constexpr auto IsConstantScalar(const ScalarTy& val) const {
1986 HloConstantScalarImpl<ScalarTy>(val, /*match_effective_scalar=*/false));
1994 template <typename ScalarTy>
1995 constexpr auto IsConstantEffectiveScalar(const ScalarTy& val) const {
1997 HloConstantScalarImpl<ScalarTy>(val, /*match_effective_scalar=*/true));
2494 template <typename ScalarTy>
[all …]
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp1148 Type *ScalarTy = VL[0]->getType(); in buildTree_rec() local
1150 if (DL->getTypeSizeInBits(ScalarTy) != in buildTree_rec()
1151 DL->getTypeAllocSizeInBits(ScalarTy)) { in buildTree_rec()
1531 Type *ScalarTy = VL[0]->getType(); in getEntryCost() local
1533 ScalarTy = SI->getValueOperand()->getType(); in getEntryCost()
1534 VectorType *VecTy = VectorType::get(ScalarTy, VL.size()); in getEntryCost()
1600 TTI->getCmpSelInstrCost(Opcode, ScalarTy, Builder.getInt1Ty()); in getEntryCost()
1660 TTI->getArithmeticInstrCost(Opcode, ScalarTy, Op1VK, in getEntryCost()
1674 TTI->getArithmeticInstrCost(Instruction::Add, ScalarTy, Op1VK, Op2VK); in getEntryCost()
1684 TTI->getMemoryOpCost(Instruction::Load, ScalarTy, alignment, 0); in getEntryCost()
[all …]
DLoopVectorize.cpp2283 Type *ScalarTy = LI ? LI->getType() : SI->getValueOperand()->getType(); in vectorizeInterleaveGroup() local
2285 Type *VecTy = VectorType::get(ScalarTy, InterleaveFactor * VF); in vectorizeInterleaveGroup()
2338 if (Member->getType() != ScalarTy) { in vectorizeInterleaveGroup()
2354 VectorType *SubVT = VectorType::get(ScalarTy, VF); in vectorizeInterleaveGroup()
3294 for (Type *ScalarTy : ScalarTys) in getVectorCallCost()
3295 Tys.push_back(ToVectorTy(ScalarTy, VF)); in getVectorCallCost()
/external/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 …]
/external/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.cpp8497 Type *ScalarTy = Type::getIntNTy(*Ctx, SplatBitSize); in lowerBuildVectorAsBroadcast() local
8498 Constant *C = Constant::getIntegerValue(ScalarTy, SplatValue); in lowerBuildVectorAsBroadcast()
32910 MVT ScalarTy = MaskVT.isInteger() ? MaskVT.getScalarType() : in matchUnaryShuffle() local
32912 SrcVT = MVT::getVectorVT(ScalarTy, SrcSize / MaskEltSize); in matchUnaryShuffle()
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp1571 Type *ScalarTy = DataTy->getScalarType(); in isLegalMaskedLoad() local
1572 int DataWidth = isa<PointerType>(ScalarTy) ? in isLegalMaskedLoad()
1573 DL.getPointerSizeInBits() : ScalarTy->getPrimitiveSizeInBits(); in isLegalMaskedLoad()
1596 Type *ScalarTy = DataTy->getScalarType(); in isLegalMaskedGather() local
1597 int DataWidth = isa<PointerType>(ScalarTy) ? in isLegalMaskedGather()
1598 DL.getPointerSizeInBits() : ScalarTy->getPrimitiveSizeInBits(); in isLegalMaskedGather()
/external/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()
/external/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 …]
/external/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()
/external/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()
/external/clang/lib/Sema/
DSema.cpp409 CastKind Sema::ScalarTypeToBooleanCastKind(QualType ScalarTy) { in ScalarTypeToBooleanCastKind() argument
410 switch (ScalarTy->getScalarTypeKind()) { in ScalarTypeToBooleanCastKind()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp2616 Type *ScalarTy = AllocaTy->getScalarType(); in visitMemSetInst() local
2624 !DL.isLegalInteger(DL.getTypeSizeInBits(ScalarTy)) || in visitMemSetInst()
2625 DL.getTypeSizeInBits(ScalarTy) % 8 != 0)) { in visitMemSetInst()
2645 assert(ElementTy == ScalarTy); in visitMemSetInst()
2687 V = getIntegerSplat(II.getValue(), DL.getTypeSizeInBits(ScalarTy) / 8); in visitMemSetInst()
/external/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()
/external/llvm/lib/IR/
DConstants.cpp233 Type *ScalarTy = Ty->getScalarType(); in getIntegerValue() local
239 if (PointerType *PTy = dyn_cast<PointerType>(ScalarTy)) in getIntegerValue()
/external/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()
/external/clang/include/clang/Sema/
DSema.h8517 static CastKind ScalarTypeToBooleanCastKind(QualType ScalarTy);