/external/llvm/tools/bugpoint/ |
D | ListReducer.h | 28 template<typename ElTy> 44 virtual TestResult doTest(std::vector<ElTy> &Prefix, 45 std::vector<ElTy> &Kept, 52 bool reduceList(std::vector<ElTy> &TheList, std::string &Error) { in reduceList() 53 std::vector<ElTy> empty; in reduceList() 101 std::vector<ElTy> ShuffledList(TheList); in reduceList() 121 std::vector<ElTy> Prefix(TheList.begin(), TheList.begin()+Mid); in reduceList() 122 std::vector<ElTy> Suffix(TheList.begin()+Mid, TheList.end()); in reduceList() 164 std::vector<ElTy> EmptyList; in reduceList() 183 std::vector<ElTy> TestList(TheList); in reduceList()
|
/external/llvm-project/llvm/tools/bugpoint/ |
D | ListReducer.h | 28 template <typename ElTy> struct ListReducer { 41 virtual Expected<TestResult> doTest(std::vector<ElTy> &Prefix, 42 std::vector<ElTy> &Kept) = 0; 47 Expected<bool> reduceList(std::vector<ElTy> &TheList) { in reduceList() 48 std::vector<ElTy> empty; in reduceList() 94 std::vector<ElTy> ShuffledList(TheList); in reduceList() 120 std::vector<ElTy> Prefix(TheList.begin(), TheList.begin() + Mid); in reduceList() 121 std::vector<ElTy> Suffix(TheList.begin() + Mid, TheList.end()); in reduceList() 163 std::vector<ElTy> EmptyList; in reduceList() 183 std::vector<ElTy> TestList(TheList); in reduceList()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | IntrinsicsHexagon.td | 154 multiclass Hexagon_custom_circ_ld_Intrinsic<LLVMType ElTy> { 156 [ElTy, llvm_ptr_ty], 160 [ElTy, llvm_ptr_ty], [llvm_ptr_ty, llvm_i32_ty, llvm_ptr_ty], 171 multiclass Hexagon_custom_circ_st_Intrinsic<LLVMType ElTy> { 174 [llvm_ptr_ty, llvm_i32_ty, llvm_i32_ty, ElTy, llvm_ptr_ty], 177 [llvm_ptr_ty], [llvm_ptr_ty, llvm_i32_ty, ElTy, llvm_ptr_ty], 190 class Hexagon_custom_brev_ld_Intrinsic<LLVMType ElTy> 192 [ElTy, llvm_ptr_ty], [llvm_ptr_ty, llvm_i32_ty],
|
D | DerivedTypes.h | 556 FixedVectorType(Type *ElTy, unsigned NumElts) in FixedVectorType() argument 557 : VectorType(ElTy, NumElts, FixedVectorTyID) {} in FixedVectorType() 603 ScalableVectorType(Type *ElTy, unsigned MinNumElts) in ScalableVectorType() argument 604 : VectorType(ElTy, MinNumElts, ScalableVectorTyID) {} in ScalableVectorType()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGBuilder.h | 175 llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType()); variable 177 const llvm::StructLayout *Layout = DL.getStructLayout(ElTy); 195 llvm::ArrayType *ElTy = cast<llvm::ArrayType>(Addr.getElementType()); variable 198 CharUnits::fromQuantity(DL.getTypeAllocSize(ElTy->getElementType())); 213 llvm::Type *ElTy = Addr.getElementType(); 215 CharUnits EltSize = CharUnits::fromQuantity(DL.getTypeAllocSize(ElTy)); 309 llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType()); in CreatePreserveStructAccessIndex() local 311 const llvm::StructLayout *Layout = DL.getStructLayout(ElTy); in CreatePreserveStructAccessIndex() 314 return Address(CreatePreserveStructAccessIndex(ElTy, Addr.getPointer(), in CreatePreserveStructAccessIndex()
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 283 Type *ElTy = V->getType(); in doPromotion() local 288 (ElTy->isStructTy() ? Type::getInt32Ty(F->getContext()) in doPromotion() 292 if (auto *ElPTy = dyn_cast<PointerType>(ElTy)) in doPromotion() 293 ElTy = ElPTy->getElementType(); in doPromotion() 295 ElTy = GetElementPtrInst::getTypeAtIndex(ElTy, II); in doPromotion() 798 Type *ElTy = StructTy->getElementType(i); in isDenselyPacked() local 799 if (!isDenselyPacked(ElTy, DL)) in isDenselyPacked() 803 StartPos += DL.getTypeAllocSizeInBits(ElTy); in isDenselyPacked()
|
D | GlobalOpt.cpp | 530 Type *ElTy = nullptr; in SRAGlobal() local 532 ElTy = STy->getElementType(ElementIdx); in SRAGlobal() 534 ElTy = GetSRASequentialElementType(Ty); in SRAGlobal() 535 assert(ElTy); in SRAGlobal() 541 ElTy, false, GlobalVariable::InternalLinkage, In, in SRAGlobal() 564 uint64_t EltSize = DL.getTypeAllocSize(ElTy); in SRAGlobal() 565 Align EltAlign = DL.getABITypeAlign(ElTy); in SRAGlobal() 566 uint64_t FragmentSizeInBits = DL.getTypeAllocSizeInBits(ElTy); in SRAGlobal()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 286 Type *ElTy = V->getType(); in doPromotion() local 291 (ElTy->isStructTy() ? Type::getInt32Ty(F->getContext()) in doPromotion() 295 if (auto *ElPTy = dyn_cast<PointerType>(ElTy)) in doPromotion() 296 ElTy = ElPTy->getElementType(); in doPromotion() 298 ElTy = cast<CompositeType>(ElTy)->getTypeAtIndex(II); in doPromotion() 800 Type *ElTy = StructTy->getElementType(i); in isDenselyPacked() local 801 if (!isDenselyPacked(ElTy, DL)) in isDenselyPacked() 805 StartPos += DL.getTypeAllocSizeInBits(ElTy); in isDenselyPacked()
|
D | GlobalOpt.cpp | 509 Type *ElTy = nullptr; in SRAGlobal() local 511 ElTy = STy->getElementType(ElementIdx); in SRAGlobal() 513 ElTy = STy->getElementType(); in SRAGlobal() 514 assert(ElTy); in SRAGlobal() 520 ElTy, false, GlobalVariable::InternalLinkage, In, in SRAGlobal() 545 uint64_t EltSize = DL.getTypeAllocSize(ElTy); in SRAGlobal() 546 Align EltAlign(DL.getABITypeAlignment(ElTy)); in SRAGlobal() 547 uint64_t FragmentSizeInBits = DL.getTypeAllocSizeInBits(ElTy); in SRAGlobal()
|
/external/llvm/lib/IR/ |
D | Verifier.cpp | 2887 Type *ElTy = in visitGetElementPtrInst() local 2889 Assert(ElTy, "Invalid indices for GEP pointer type!", &GEP); in visitGetElementPtrInst() 2892 GEP.getResultElementType() == ElTy, in visitGetElementPtrInst() 2893 "GEP is not of right type for indices!", &GEP, ElTy); in visitGetElementPtrInst() 2979 Type *ElTy = LI.getType(); in visitLoadInst() local 2982 Assert(ElTy->isSized(), "loading unsized types is not allowed", &LI); in visitLoadInst() 2989 Assert(ElTy->isIntegerTy() || ElTy->isPointerTy() || in visitLoadInst() 2990 ElTy->isFloatingPointTy(), in visitLoadInst() 2993 ElTy, &LI); in visitLoadInst() 2994 checkAtomicMemAccessSize(M, ElTy, &LI); in visitLoadInst() [all …]
|
D | ConstantFold.cpp | 115 Type *ElTy = PTy->getElementType(); in FoldBitCast() local 116 while (ElTy != DPTy->getElementType()) { in FoldBitCast() 117 if (StructType *STy = dyn_cast<StructType>(ElTy)) { in FoldBitCast() 119 ElTy = STy->getElementType(0); in FoldBitCast() 122 dyn_cast<SequentialType>(ElTy)) { in FoldBitCast() 123 if (ElTy->isPointerTy()) break; // Can't index into pointers! in FoldBitCast() 124 ElTy = STy->getElementType(); in FoldBitCast() 131 if (ElTy == DPTy->getElementType()) in FoldBitCast() 1299 static int IdxCompare(Constant *C1, Constant *C2, Type *ElTy) { in IdxCompare() argument 1321 if (isMaybeZeroSizedType(ElTy)) in IdxCompare()
|
/external/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 188 Type *ElTy = StructTy->getElementType(i); in isDenselyPacked() local 189 if (!isDenselyPacked(ElTy, DL)) in isDenselyPacked() 193 StartPos += DL.getTypeAllocSizeInBits(ElTy); in isDenselyPacked() 830 Type *ElTy = V->getType(); in DoPromotion() local 834 Type *IdxTy = (ElTy->isStructTy() ? in DoPromotion() 839 ElTy = cast<CompositeType>(ElTy)->getTypeAtIndex(II); in DoPromotion()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Verifier.cpp | 3314 Type *ElTy = in visitGetElementPtrInst() local 3316 Assert(ElTy, "Invalid indices for GEP pointer type!", &GEP); in visitGetElementPtrInst() 3319 GEP.getResultElementType() == ElTy, in visitGetElementPtrInst() 3320 "GEP is not of right type for indices!", &GEP, ElTy); in visitGetElementPtrInst() 3409 Type *ElTy = LI.getType(); in visitLoadInst() local 3412 Assert(ElTy->isSized(), "loading unsized types is not allowed", &LI); in visitLoadInst() 3419 Assert(ElTy->isIntOrPtrTy() || ElTy->isFloatingPointTy(), in visitLoadInst() 3422 ElTy, &LI); in visitLoadInst() 3423 checkAtomicMemAccessSize(ElTy, &LI); in visitLoadInst() 3435 Type *ElTy = PTy->getElementType(); in visitStoreInst() local [all …]
|
D | ConstantFold.cpp | 116 Type *ElTy = PTy->getElementType(); in FoldBitCast() local 117 while (ElTy != DPTy->getElementType()) { in FoldBitCast() 118 if (StructType *STy = dyn_cast<StructType>(ElTy)) { in FoldBitCast() 120 ElTy = STy->getElementType(0); in FoldBitCast() 123 dyn_cast<SequentialType>(ElTy)) { in FoldBitCast() 124 ElTy = STy->getElementType(); in FoldBitCast() 131 if (ElTy == DPTy->getElementType()) in FoldBitCast() 1427 static int IdxCompare(Constant *C1, Constant *C2, Type *ElTy) { in IdxCompare() argument 1449 if (isMaybeZeroSizedType(ElTy)) in IdxCompare()
|
/external/llvm-project/llvm/lib/IR/ |
D | Verifier.cpp | 3497 Type *ElTy = in visitGetElementPtrInst() local 3499 Assert(ElTy, "Invalid indices for GEP pointer type!", &GEP); in visitGetElementPtrInst() 3502 GEP.getResultElementType() == ElTy, in visitGetElementPtrInst() 3503 "GEP is not of right type for indices!", &GEP, ElTy); in visitGetElementPtrInst() 3594 Type *ElTy = LI.getType(); in visitLoadInst() local 3597 Assert(ElTy->isSized(), "loading unsized types is not allowed", &LI); in visitLoadInst() 3604 Assert(ElTy->isIntOrPtrTy() || ElTy->isFloatingPointTy(), in visitLoadInst() 3607 ElTy, &LI); in visitLoadInst() 3608 checkAtomicMemAccessSize(ElTy, &LI); in visitLoadInst() 3620 Type *ElTy = PTy->getElementType(); in visitStoreInst() local [all …]
|
D | ConstantFold.cpp | 126 Type *ElTy = PTy->getElementType(); in FoldBitCast() local 127 while (ElTy && ElTy != DPTy->getElementType()) { in FoldBitCast() 128 ElTy = GetElementPtrInst::getTypeAtIndex(ElTy, (uint64_t)0); in FoldBitCast() 132 if (ElTy == DPTy->getElementType()) in FoldBitCast() 1548 static int IdxCompare(Constant *C1, Constant *C2, Type *ElTy) { in IdxCompare() argument 1570 if (isMaybeZeroSizedType(ElTy)) in IdxCompare()
|
/external/llvm/lib/Analysis/ |
D | AliasAnalysisEvaluator.cpp | 243 Type *ElTy = cast<PointerType>(Pointer->getType())->getElementType(); in runInternal() local 244 if (ElTy->isSized()) Size = DL.getTypeStoreSize(ElTy); in runInternal()
|
D | ScalarEvolutionExpander.cpp | 391 Type *ElTy = OriginalElTy; in expandAddToGEP() local 411 if (ElTy->isSized()) { in expandAddToGEP() 412 const SCEV *ElSize = SE.getSizeOfExpr(IntPtrTy, ElTy); in expandAddToGEP() 447 while (StructType *STy = dyn_cast<StructType>(ElTy)) { in expandAddToGEP() 463 ElTy = STy->getTypeAtIndex(ElIdx); in expandAddToGEP() 474 ElTy = STy->getTypeAtIndex(0u); in expandAddToGEP() 480 if (ArrayType *ATy = dyn_cast<ArrayType>(ElTy)) in expandAddToGEP() 481 ElTy = ATy->getElementType(); in expandAddToGEP()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | AliasAnalysisEvaluator.cpp | 235 Type *ElTy = cast<PointerType>(Pointer->getType())->getElementType(); in runInternal() local 236 if (ElTy->isSized()) in runInternal() 237 Size = LocationSize::precise(DL.getTypeStoreSize(ElTy)); in runInternal()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | AliasAnalysisEvaluator.cpp | 235 Type *ElTy = cast<PointerType>(Pointer->getType())->getElementType(); in runInternal() local 236 if (ElTy->isSized()) in runInternal() 237 Size = LocationSize::precise(DL.getTypeStoreSize(ElTy)); in runInternal()
|
D | ScalarEvolutionExpander.cpp | 408 Type *ElTy = OriginalElTy; in expandAddToGEP() local 428 if (ElTy->isSized()) { in expandAddToGEP() 429 const SCEV *ElSize = SE.getSizeOfExpr(IntIdxTy, ElTy); in expandAddToGEP() 464 while (StructType *STy = dyn_cast<StructType>(ElTy)) { in expandAddToGEP() 480 ElTy = STy->getTypeAtIndex(ElIdx); in expandAddToGEP() 491 ElTy = STy->getTypeAtIndex(0u); in expandAddToGEP() 497 if (ArrayType *ATy = dyn_cast<ArrayType>(ElTy)) in expandAddToGEP() 498 ElTy = ATy->getElementType(); in expandAddToGEP()
|
/external/llvm-project/llvm/test/TableGen/ |
D | intrinsic-pointer-to-any.td | 43 LLVMType ElTy = elty;
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUHSAMetadataStreamer.cpp | 175 auto ElTy = VecTy->getElementType(); in getTypeName() local 177 return (Twine(getTypeName(ElTy, Signed)) + Twine(NumElements)).str(); in getTypeName() 593 auto ElTy = VecTy->getElementType(); in getTypeName() local 595 return (Twine(getTypeName(ElTy, Signed)) + Twine(NumElements)).str(); in getTypeName()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUHSAMetadataStreamer.cpp | 190 auto ElTy = VecTy->getElementType(); in getTypeName() local 192 return (Twine(getTypeName(ElTy, Signed)) + Twine(NumElements)).str(); in getTypeName() 636 auto ElTy = VecTy->getElementType(); in getTypeName() local 638 return (Twine(getTypeName(ElTy, Signed)) + Twine(NumElements)).str(); in getTypeName()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | ScalarEvolutionExpander.cpp | 434 Type *ElTy = OriginalElTy; in expandAddToGEP() local 454 if (ElTy->isSized()) { in expandAddToGEP() 455 const SCEV *ElSize = SE.getSizeOfExpr(IntIdxTy, ElTy); in expandAddToGEP() 491 while (StructType *STy = dyn_cast<StructType>(ElTy)) { in expandAddToGEP() 507 ElTy = STy->getTypeAtIndex(ElIdx); in expandAddToGEP() 518 ElTy = STy->getTypeAtIndex(0u); in expandAddToGEP() 524 if (ArrayType *ATy = dyn_cast<ArrayType>(ElTy)) in expandAddToGEP() 525 ElTy = ATy->getElementType(); in expandAddToGEP()
|