/external/llvm-project/llvm/include/llvm/Support/ |
D | TypeSize.h | 44 using ScalarTy = typename LinearPolyBaseTypeTraits<LeafTy>::ScalarTy; 50 std::array<ScalarTy, Dimensions> Coefficients; 53 LinearPolyBase(ArrayRef<ScalarTy> Values) { in LinearPolyBase() 70 friend LeafTy &operator*=(LeafTy &LHS, ScalarTy RHS) { 86 friend LeafTy operator*(const LeafTy &LHS, ScalarTy RHS) { 91 template <typename U = ScalarTy> 108 return all_of(Coefficients, [](const ScalarTy &C) { return C == 0; }); in isZero() 113 ScalarTy getValue(unsigned Dim) const { return Coefficients[Dim]; } in getValue() 122 using ScalarTy = int64_t; 132 StackOffset(ScalarTy Fixed, ScalarTy Scalable) [all …]
|
D | LowLevelTypeImpl.h | 66 static LLT vector(uint16_t NumElements, LLT ScalarTy) { in vector() argument 68 assert(!ScalarTy.isVector() && "invalid vector element type"); in vector() 69 return LLT{ScalarTy.isPointer(), /*isVector=*/true, NumElements, in vector() 70 ScalarTy.getSizeInBits(), in vector() 71 ScalarTy.isPointer() ? ScalarTy.getAddressSpace() : 0}; in vector() 74 static LLT scalarOrVector(uint16_t NumElements, LLT ScalarTy) { in scalarOrVector() argument 75 return NumElements == 1 ? ScalarTy : LLT::vector(NumElements, ScalarTy); in scalarOrVector()
|
/external/llvm-project/llvm/unittests/Support/ |
D | LinearPolyBaseTest.cpp | 18 using ScalarTy = int64_t; typedef 26 using ScalarTy = Poly3DBase::ScalarTy; typedef in Poly3D 27 Poly3D(ScalarTy x, ScalarTy y, ScalarTy z) : Poly3DBase({x, y, z}) {} in Poly3D() 88 using ScalarTy = int64_t; typedef 96 using ScalarTy = Univariate3DBase::ScalarTy; typedef in Univariate3D 97 Univariate3D(ScalarTy x, unsigned Dim) : Univariate3DBase(x, Dim) {} in Univariate3D()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | LowLevelTypeImpl.h | 65 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/ |
D | parameter-passing.c | 14 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/llvm-project/clang/test/CodeGen/ |
D | parameter-passing.c | 14 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/ |
D | LowLevelType.cpp | 23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType() local 25 return ScalarTy; in getLLTForType() 26 return LLT::vector(NumElements, ScalarTy); in getLLTForType()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | LowLevelType.cpp | 24 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType() local 26 return ScalarTy; in getLLTForType() 27 return LLT::vector(NumElements, ScalarTy); in getLLTForType()
|
/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | VectorCombine.cpp | 129 Type *ScalarTy = Scalar->getType(); in vectorizeLoadInsert() local 130 uint64_t ScalarSize = ScalarTy->getPrimitiveSizeInBits(); in vectorizeLoadInsert() 137 auto *MinVecTy = VectorType::get(ScalarTy, MinVecNumElts, false); in vectorizeLoadInsert() 232 Type *ScalarTy = Ext0->getType(); in isExtractExtractCheap() local 239 ScalarOpCost = TTI.getArithmeticInstrCost(Opcode, ScalarTy); in isExtractExtractCheap() 244 ScalarOpCost = TTI.getCmpSelInstrCost(Opcode, ScalarTy, in isExtractExtractCheap() 245 CmpInst::makeCmpResultType(ScalarTy)); in isExtractExtractCheap() 550 Type *ScalarTy = IsConst0 ? V1->getType() : V0->getType(); in scalarizeBinopOrCmp() local 554 (ScalarTy->isIntegerTy() || ScalarTy->isFloatingPointTy() || in scalarizeBinopOrCmp() 555 ScalarTy->isPointerTy()) && in scalarizeBinopOrCmp() [all …]
|
D | SLPVectorizer.cpp | 2811 Type *ScalarTy = VL0->getType(); in buildTree_rec() local 2813 if (DL->getTypeSizeInBits(ScalarTy) != in buildTree_rec() 2814 DL->getTypeAllocSizeInBits(ScalarTy)) { in buildTree_rec() 2855 uint64_t Size = DL->getTypeAllocSize(ScalarTy); in buildTree_rec() 3086 llvm::Type *ScalarTy = cast<StoreInst>(VL0)->getValueOperand()->getType(); in buildTree_rec() local 3124 uint64_t Size = DL->getTypeAllocSize(ScalarTy); in buildTree_rec() 3419 Type *ScalarTy = VL[0]->getType(); in getEntryCost() local 3421 ScalarTy = SI->getValueOperand()->getType(); in getEntryCost() 3423 ScalarTy = CI->getOperand(0)->getType(); in getEntryCost() 3424 auto *VecTy = FixedVectorType::get(ScalarTy, VL.size()); in getEntryCost() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Type.h | 426 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/llvm-project/llvm/include/llvm/IR/ |
D | Type.h | 416 template <typename ScalarTy> static Type *getScalarTy(LLVMContext &C) { in getScalarTy() 417 int noOfBits = sizeof(ScalarTy) * CHAR_BIT; in getScalarTy() 418 if (std::is_integral<ScalarTy>::value) { in getScalarTy() 420 } else if (std::is_floating_point<ScalarTy>::value) { in getScalarTy()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | pattern_matcher.h | 1696 template <typename ScalarTy> 1702 constexpr HloConstantScalarImpl(ScalarTy val, bool match_effective_scalar) 1757 absl::optional<ScalarTy> val_; 1842 template <typename ScalarTy> 1843 constexpr auto IsConstantScalar(const ScalarTy& val) const { 1845 HloConstantScalarImpl<ScalarTy>(val, /*match_effective_scalar=*/false)); 1853 template <typename ScalarTy> 1854 constexpr auto IsConstantEffectiveScalar(const ScalarTy& val) const { 1856 HloConstantScalarImpl<ScalarTy>(val, /*match_effective_scalar=*/true)); 2274 template <typename ScalarTy> [all …]
|
/external/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 1148 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 …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 2657 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 …]
|
/external/llvm-project/llvm/unittests/IR/ |
D | PatternMatch.cpp | 1023 Type *ScalarTy = IRB.getInt8Ty(); in TEST_F() local 1024 Type *VectorTy = FixedVectorType::get(ScalarTy, 4); in TEST_F() 1025 Constant *ScalarUndef = UndefValue::get(ScalarTy); in TEST_F() 1027 Constant *ScalarZero = Constant::getNullValue(ScalarTy); in TEST_F() 1088 Type *ScalarTy = IRB.getFloatTy(); in TEST_F() local 1089 Type *VectorTy = FixedVectorType::get(ScalarTy, 4); in TEST_F() 1090 Constant *ScalarUndef = UndefValue::get(ScalarTy); in TEST_F() 1092 Constant *ScalarZero = Constant::getNullValue(ScalarTy); in TEST_F() 1094 Constant *ScalarPosInf = ConstantFP::getInfinity(ScalarTy, false); in TEST_F() 1095 Constant *ScalarNegInf = ConstantFP::getInfinity(ScalarTy, true); in TEST_F() [all …]
|
/external/llvm-project/clang/lib/AST/ |
D | PrintfFormatString.cpp | 674 ArgType ScalarTy = getScalarArgType(Ctx, IsObjCLiteral); in getArgType() local 675 if (!ScalarTy.isValid() || VectorNumElts.isInvalid()) in getArgType() 676 return ScalarTy; in getArgType() 678 return ScalarTy.makeVectorType(Ctx, VectorNumElts.getConstantAmount()); in getArgType()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.cpp | 3347 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 …]
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.cpp | 4275 Type *ScalarTy = DataTy->getScalarType(); in isLegalMaskedLoad() local 4277 if (ScalarTy->isPointerTy()) in isLegalMaskedLoad() 4280 if (ScalarTy->isFloatTy() || ScalarTy->isDoubleTy()) in isLegalMaskedLoad() 4283 if (!ScalarTy->isIntegerTy()) in isLegalMaskedLoad() 4286 unsigned IntWidth = ScalarTy->getIntegerBitWidth(); in isLegalMaskedLoad() 4341 Type *ScalarTy = cast<VectorType>(DataTy)->getElementType(); in isLegalMaskedExpandLoad() local 4343 if (ScalarTy->isFloatTy() || ScalarTy->isDoubleTy()) in isLegalMaskedExpandLoad() 4346 if (!ScalarTy->isIntegerTy()) in isLegalMaskedExpandLoad() 4349 unsigned IntWidth = ScalarTy->getIntegerBitWidth(); in isLegalMaskedExpandLoad() 4382 Type *ScalarTy = DataTy->getScalarType(); in isLegalMaskedGather() local [all …]
|
/external/llvm-project/llvm/lib/Target/AArch64/GISel/ |
D | AArch64PostLegalizerLowering.cpp | 570 LLT ScalarTy = SrcTy.getElementType(); in matchDupLane() local 571 unsigned ScalarSize = ScalarTy.getSizeInBits(); in matchDupLane()
|
/external/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.cpp | 1571 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/ |
D | BasicTTIImpl.h | 1609 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/ |
D | ValueTracking.cpp | 1204 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/ |
D | HexagonISelLowering.cpp | 2388 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/llvm-project/llvm/lib/Target/Hexagon/ |
D | HexagonISelLowering.cpp | 2534 MVT ScalarTy = tyScalar(VecTy); in extractVector() local 2535 VecV = DAG.getBitcast(ScalarTy, VecV); in extractVector() 2552 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy, in extractVector() 2560 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy, in extractVector() 2608 MVT ScalarTy = MVT::getIntegerVT(VecWidth); in insertVector() local 2613 VecV = DAG.getBitcast(ScalarTy, VecV); in insertVector() 2615 ValV = DAG.getAnyExtOrTrunc(ValV, dl, ScalarTy); in insertVector() 2623 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy, in insertVector() 2629 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy, in insertVector()
|