/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
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()
|
/external/swiftshader/third_party/llvm-7.0/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | Type.h | 413 template <typename ScalarTy> static Type *getScalarTy(LLVMContext &C) { in getScalarTy() 414 int noOfBits = sizeof(ScalarTy) * CHAR_BIT; in getScalarTy() 415 if (std::is_integral<ScalarTy>::value) { in getScalarTy() 417 } else if (std::is_floating_point<ScalarTy>::value) { in getScalarTy()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | pattern_matcher.h | 1710 template <typename ScalarTy> 1716 constexpr HloConstantScalarImpl(ScalarTy val, bool match_effective_scalar) 1782 absl::optional<ScalarTy> val_; 1875 template <typename ScalarTy> 1876 constexpr auto IsConstantScalar(const ScalarTy& val) const 1877 -> decltype(this->AppendImpl(HloConstantScalarImpl<ScalarTy>( 1880 HloConstantScalarImpl<ScalarTy>(val, /*match_effective_scalar=*/false)); 1889 template <typename ScalarTy> 1890 constexpr auto IsConstantEffectiveScalar(const ScalarTy& val) const 1891 -> decltype(this->AppendImpl(HloConstantScalarImpl<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 …]
|
D | LoopVectorize.cpp | 2283 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-7.0/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 1270 Type *ScalarTy = Ty->getVectorElementType(); in getArithmeticReductionCost() local 1288 Ty = VectorType::get(ScalarTy, NumVecElts); in getArithmeticReductionCost() 1308 Type *ScalarTy = Ty->getVectorElementType(); in getMinMaxReductionCost() local 1338 Ty = VectorType::get(ScalarTy, NumVecElts); in getMinMaxReductionCost() 1359 ConcreteTTI->getCmpSelInstrCost(Instruction::Select, ScalarTy, in getMinMaxReductionCost()
|
/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-7.0/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 1116 Type *ScalarTy = SrcTy->getScalarType(); in computeKnownBitsFromOperator() local 1117 SrcBitWidth = ScalarTy->isPointerTy() ? in computeKnownBitsFromOperator() 1118 Q.DL.getIndexTypeSizeInBits(ScalarTy) : in computeKnownBitsFromOperator() 1119 Q.DL.getTypeSizeInBits(ScalarTy); in computeKnownBitsFromOperator() 1574 Type *ScalarTy = V->getType()->getScalarType(); in computeKnownBits() local 1575 unsigned ExpectedWidth = ScalarTy->isPointerTy() ? in computeKnownBits() 1576 Q.DL.getIndexTypeSizeInBits(ScalarTy) : Q.DL.getTypeSizeInBits(ScalarTy); in computeKnownBits() 2225 Type *ScalarTy = V->getType()->getScalarType(); in ComputeNumSignBitsImpl() local 2226 unsigned TyBits = ScalarTy->isPointerTy() ? in ComputeNumSignBitsImpl() 2227 Q.DL.getIndexTypeSizeInBits(ScalarTy) : in ComputeNumSignBitsImpl() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonISelLowering.cpp | 2362 MVT ScalarTy = tyScalar(VecTy); in extractVector() local 2363 VecV = DAG.getBitcast(ScalarTy, VecV); in extractVector() 2380 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy, in extractVector() 2388 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy, in extractVector() 2436 MVT ScalarTy = MVT::getIntegerVT(VecWidth); in insertVector() local 2441 VecV = DAG.getBitcast(ScalarTy, VecV); in insertVector() 2443 ValV = DAG.getAnyExtOrTrunc(ValV, dl, ScalarTy); in insertVector() 2451 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy, in insertVector() 2457 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy, in insertVector()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.cpp | 2594 Type *ScalarTy = DataTy->getScalarType(); in isLegalMaskedLoad() local 2595 int DataWidth = isa<PointerType>(ScalarTy) ? in isLegalMaskedLoad() 2596 DL.getPointerSizeInBits() : ScalarTy->getPrimitiveSizeInBits(); in isLegalMaskedLoad() 2624 Type *ScalarTy = DataTy->getScalarType(); in isLegalMaskedGather() local 2625 int DataWidth = isa<PointerType>(ScalarTy) ? in isLegalMaskedGather() 2626 DL.getPointerSizeInBits() : ScalarTy->getPrimitiveSizeInBits(); in isLegalMaskedGather() 2742 Type *ScalarTy = VecTy->getVectorElementType(); in getInterleavedMemoryOpCostAVX2() local 2756 VectorType *VT = VectorType::get(ScalarTy, VF); in getInterleavedMemoryOpCostAVX2()
|
D | X86ISelLowering.cpp | 7086 Type *ScalarTy = Type::getIntNTy(*Ctx, SplatBitSize); in lowerBuildVectorAsBroadcast() local 7087 Constant *C = Constant::getIntegerValue(ScalarTy, SplatValue); in lowerBuildVectorAsBroadcast() 29169 MVT ScalarTy = MaskVT.isInteger() ? MaskVT.getScalarType() : in matchUnaryVectorShuffle() local 29171 SrcVT = MVT::getVectorVT(ScalarTy, SrcSize / MaskEltSize); in matchUnaryVectorShuffle()
|
/external/clang/lib/Sema/ |
D | Sema.cpp | 409 CastKind Sema::ScalarTypeToBooleanCastKind(QualType ScalarTy) { in ScalarTypeToBooleanCastKind() argument 410 switch (ScalarTy->getScalarTypeKind()) { in ScalarTypeToBooleanCastKind()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 2257 Type *ScalarTy = getMemInstValueType(Instr); in vectorizeInterleaveGroup() local 2259 Type *VecTy = VectorType::get(ScalarTy, InterleaveFactor * VF); in vectorizeInterleaveGroup() 2331 if (Member->getType() != ScalarTy) { in vectorizeInterleaveGroup() 2346 VectorType *SubVT = VectorType::get(ScalarTy, VF); in vectorizeInterleaveGroup() 3150 for (Type *ScalarTy : ScalarTys) in getVectorCallCost() 3151 Tys.push_back(ToVectorTy(ScalarTy, VF)); in getVectorCallCost() 4397 auto *ScalarTy = LI ? LI->getType() : SI->getValueOperand()->getType(); in memoryInstructionCanBeWidened() local 4398 if (hasIrregularType(ScalarTy, DL, VF)) in memoryInstructionCanBeWidened()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 2734 Type *ScalarTy = AllocaTy->getScalarType(); in visitMemSetInst() local 2742 !DL.isLegalInteger(DL.getTypeSizeInBits(ScalarTy)) || in visitMemSetInst() 2743 DL.getTypeSizeInBits(ScalarTy) % 8 != 0)) { in visitMemSetInst() 2764 assert(ElementTy == ScalarTy); in visitMemSetInst() 2806 V = getIntegerSplat(II.getValue(), DL.getTypeSizeInBits(ScalarTy) / 8); in visitMemSetInst()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 2616 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/lib/VMCore/ |
D | Constants.cpp | 114 Type *ScalarTy = Ty->getScalarType(); in getIntegerValue() local 120 if (PointerType *PTy = dyn_cast<PointerType>(ScalarTy)) in getIntegerValue()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Constants.cpp | 306 Type *ScalarTy = Ty->getScalarType(); in getIntegerValue() local 312 if (PointerType *PTy = dyn_cast<PointerType>(ScalarTy)) in getIntegerValue()
|
/external/llvm/lib/IR/ |
D | Constants.cpp | 233 Type *ScalarTy = Ty->getScalarType(); in getIntegerValue() local 239 if (PointerType *PTy = dyn_cast<PointerType>(ScalarTy)) in getIntegerValue()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 8517 static CastKind ScalarTypeToBooleanCastKind(QualType ScalarTy);
|