/external/llvm/lib/Transforms/Scalar/ |
D | NaryReassociate.cpp | 132 Instruction *tryReassociateGEP(GetElementPtrInst *GEP); 140 GetElementPtrInst *tryReassociateGEPAtIndex(GetElementPtrInst *GEP, 144 GetElementPtrInst *tryReassociateGEPAtIndex(GetElementPtrInst *GEP, 174 bool requiresSignExtension(Value *Index, GetElementPtrInst *GEP); 302 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable() argument 305 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) in isGEPFoldable() 307 return TTI->getGEPCost(GEP->getSourceElementType(), GEP->getPointerOperand(), in isGEPFoldable() 311 Instruction *NaryReassociate::tryReassociateGEP(GetElementPtrInst *GEP) { in tryReassociateGEP() argument 313 if (isGEPFoldable(GEP, TTI)) in tryReassociateGEP() 316 gep_type_iterator GTI = gep_type_begin(*GEP); in tryReassociateGEP() [all …]
|
D | SeparateConstOffsetFromGEP.cpp | 220 static Value *Extract(Value *Idx, GetElementPtrInst *GEP, 225 static int64_t Find(Value *Idx, GetElementPtrInst *GEP, 344 bool splitGEP(GetElementPtrInst *GEP); 368 int64_t accumulateByteOffset(GetElementPtrInst *GEP, bool &NeedsExtraction); 384 bool canonicalizeArrayIndicesToPointerSize(GetElementPtrInst *GEP); 690 Value *ConstantOffsetExtractor::Extract(Value *Idx, GetElementPtrInst *GEP, in Extract() argument 693 ConstantOffsetExtractor Extractor(GEP, DT); in Extract() 697 GEP->isInBounds()); in Extract() 708 int64_t ConstantOffsetExtractor::Find(Value *Idx, GetElementPtrInst *GEP, in Find() argument 711 return ConstantOffsetExtractor(GEP, DT) in Find() [all …]
|
D | StraightLineStrengthReduce.cpp | 88 GEP, // &B[..][i * S][..] enumerator 173 void allocateCandidatesAndFindBasisForGEP(GetElementPtrInst *GEP); 190 GetElementPtrInst *GEP); 237 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable() argument 240 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) in isGEPFoldable() 242 return TTI->getGEPCost(GEP->getSourceElementType(), GEP->getPointerOperand(), in isGEPFoldable() 260 if (C.CandidateKind == Candidate::GEP) in isFoldable() 266 static bool hasOnlyOneNonZeroIndex(GetElementPtrInst *GEP) { in hasOnlyOneNonZeroIndex() argument 268 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) { in hasOnlyOneNonZeroIndex() 285 if (C.CandidateKind == Candidate::GEP) { in isSimplestForm() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 237 static Value *Extract(Value *Idx, GetElementPtrInst *GEP, 243 static int64_t Find(Value *Idx, GetElementPtrInst *GEP, 373 bool splitGEP(GetElementPtrInst *GEP); 400 int64_t accumulateByteOffset(GetElementPtrInst *GEP, bool &NeedsExtraction); 417 bool canonicalizeArrayIndicesToPointerSize(GetElementPtrInst *GEP); 736 Value *ConstantOffsetExtractor::Extract(Value *Idx, GetElementPtrInst *GEP, in Extract() argument 739 ConstantOffsetExtractor Extractor(GEP, DT); in Extract() 743 GEP->isInBounds()); in Extract() 754 int64_t ConstantOffsetExtractor::Find(Value *Idx, GetElementPtrInst *GEP, in Find() argument 757 return ConstantOffsetExtractor(GEP, DT) in Find() [all …]
|
D | NaryReassociate.cpp | 298 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable() argument 301 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) in isGEPFoldable() 303 return TTI->getGEPCost(GEP->getSourceElementType(), GEP->getPointerOperand(), in isGEPFoldable() 307 Instruction *NaryReassociatePass::tryReassociateGEP(GetElementPtrInst *GEP) { in tryReassociateGEP() argument 309 if (isGEPFoldable(GEP, TTI)) in tryReassociateGEP() 312 gep_type_iterator GTI = gep_type_begin(*GEP); in tryReassociateGEP() 313 for (unsigned I = 1, E = GEP->getNumOperands(); I != E; ++I, ++GTI) { in tryReassociateGEP() 315 if (auto *NewGEP = tryReassociateGEPAtIndex(GEP, I - 1, in tryReassociateGEP() 325 GetElementPtrInst *GEP) { in requiresSignExtension() argument 327 DL->getPointerSizeInBits(GEP->getType()->getPointerAddressSpace()); in requiresSignExtension() [all …]
|
D | StraightLineStrengthReduce.cpp | 107 GEP, // &B[..][i * S][..] enumerator 201 void allocateCandidatesAndFindBasisForGEP(GetElementPtrInst *GEP); 222 GetElementPtrInst *GEP); 273 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable() argument 276 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) in isGEPFoldable() 278 return TTI->getGEPCost(GEP->getSourceElementType(), GEP->getPointerOperand(), in isGEPFoldable() 296 if (C.CandidateKind == Candidate::GEP) in isFoldable() 302 static bool hasOnlyOneNonZeroIndex(GetElementPtrInst *GEP) { in hasOnlyOneNonZeroIndex() argument 304 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I) { in hasOnlyOneNonZeroIndex() 321 if (C.CandidateKind == Candidate::GEP) { in isSimplestForm() [all …]
|
D | MergeICmps.cpp | 46 BCEAtom() : GEP(nullptr), LoadI(nullptr), Offset() {} in BCEAtom() 48 const Value *Base() const { return GEP ? GEP->getPointerOperand() : nullptr; } in Base() 68 GetElementPtrInst *GEP; member 89 if (auto *const GEP = dyn_cast<GetElementPtrInst>(Addr)) { in visitICmpLoadOperand() local 95 const auto &DL = GEP->getModule()->getDataLayout(); in visitICmpLoadOperand() 96 if (!isDereferenceablePointer(GEP, DL)) { in visitICmpLoadOperand() 102 Result.Offset = APInt(DL.getPointerTypeSizeInBits(GEP->getType()), 0); in visitICmpLoadOperand() 103 if (GEP->accumulateConstantOffset(DL, Result.Offset)) { in visitICmpLoadOperand() 104 Result.GEP = GEP; in visitICmpLoadOperand() 199 {Lhs_.GEP, Rhs_.GEP, Lhs_.LoadI, Rhs_.LoadI, CmpI, BranchI}); in split() [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXFavorNonGenericAddrSpaces.cpp | 109 Value *hoistAddrSpaceCastFromGEP(GEPOperator *GEP, int Depth); 149 GEPOperator *GEP, int Depth) { in hoistAddrSpaceCastFromGEP() argument 151 hoistAddrSpaceCastFrom(GEP->getPointerOperand(), Depth + 1); in hoistAddrSpaceCastFromGEP() 159 SmallVector<Value *, 8> Indices(GEP->idx_begin(), GEP->idx_end()); in hoistAddrSpaceCastFromGEP() 161 if (Instruction *GEPI = dyn_cast<Instruction>(GEP)) { in hoistAddrSpaceCastFromGEP() 167 GEP->getSourceElementType(), Cast->getOperand(0), Indices, in hoistAddrSpaceCastFromGEP() 169 NewGEP->setIsInBounds(GEP->isInBounds()); in hoistAddrSpaceCastFromGEP() 170 NewGEP->takeName(GEP); in hoistAddrSpaceCastFromGEP() 171 NewASC = new AddrSpaceCastInst(NewGEP, GEP->getType(), "", GEPI); in hoistAddrSpaceCastFromGEP() 175 GEP->replaceAllUsesWith(NewASC); in hoistAddrSpaceCastFromGEP() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | GlobalSplit.cpp | 60 auto *GEP = dyn_cast<GEPOperator>(U); in splitGlobal() local 61 if (!GEP || !GEP->getInRangeIndex() || *GEP->getInRangeIndex() != 1 || in splitGlobal() 62 !isa<ConstantInt>(GEP->getOperand(1)) || in splitGlobal() 63 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in splitGlobal() 64 !isa<ConstantInt>(GEP->getOperand(2))) in splitGlobal() 117 auto *GEP = cast<GEPOperator>(U); in splitGlobal() local 118 unsigned I = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue(); in splitGlobal() 124 for (unsigned I = 3; I != GEP->getNumOperands(); ++I) in splitGlobal() 125 Ops.push_back(GEP->getOperand(I)); in splitGlobal() 129 GEP->isInBounds()); in splitGlobal() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/Utils/ |
D | Local.h | 29 Value *EmitGEPOffset(IRBuilderTy *Builder, const DataLayout &DL, User *GEP, 31 GEPOperator *GEPOp = cast<GEPOperator>(GEP); 32 Type *IntPtrTy = DL.getIntPtrType(GEP->getType()); 44 gep_type_iterator GTI = gep_type_begin(GEP); 45 for (User::op_iterator i = GEP->op_begin() + 1, e = GEP->op_end(); i != e; 63 GEP->getName()+".offs"); 71 Result = Builder->CreateAdd(Result, Scale, GEP->getName()+".offs"); 80 GEP->getName()+".idx", isInBounds /*NUW*/); 84 Result = Builder->CreateAdd(Op, Result, GEP->getName()+".offs");
|
/external/llvm/include/llvm/IR/ |
D | GetElementPtrTypeIterator.h | 97 inline gep_type_iterator gep_type_begin(const User *GEP) { in gep_type_begin() argument 98 auto *GEPOp = cast<GEPOperator>(GEP); in gep_type_begin() 103 GEP->op_begin() + 1); in gep_type_begin() 105 inline gep_type_iterator gep_type_end(const User *GEP) { in gep_type_end() argument 106 return gep_type_iterator::end(GEP->op_end()); in gep_type_end() 108 inline gep_type_iterator gep_type_begin(const User &GEP) { in gep_type_begin() argument 109 auto &GEPOp = cast<GEPOperator>(GEP); in gep_type_begin() 114 GEP.op_begin() + 1); in gep_type_begin() 116 inline gep_type_iterator gep_type_end(const User &GEP) { in gep_type_end() argument 117 return gep_type_iterator::end(GEP.op_end()); in gep_type_end()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | GetElementPtrTypeIterator.h | 128 inline gep_type_iterator gep_type_begin(const User *GEP) { in gep_type_begin() argument 129 auto *GEPOp = cast<GEPOperator>(GEP); in gep_type_begin() 132 GEP->op_begin() + 1); in gep_type_begin() 135 inline gep_type_iterator gep_type_end(const User *GEP) { in gep_type_end() argument 136 return gep_type_iterator::end(GEP->op_end()); in gep_type_end() 139 inline gep_type_iterator gep_type_begin(const User &GEP) { in gep_type_begin() argument 140 auto &GEPOp = cast<GEPOperator>(GEP); in gep_type_begin() 143 GEP.op_begin() + 1); in gep_type_begin() 146 inline gep_type_iterator gep_type_end(const User &GEP) { in gep_type_end() argument 147 return gep_type_iterator::end(GEP.op_end()); in gep_type_end()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/GlobalISel/ |
D | legalize-gep.mir | 13 ; CHECK: [[GEP:%[0-9]+]]:_(p1) = G_GEP [[COPY]], [[COPY1]](s64) 14 ; CHECK: $vgpr0_vgpr1 = COPY [[GEP]](p1) 31 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[COPY]], [[COPY1]](s64) 32 ; CHECK: $vgpr0_vgpr1 = COPY [[GEP]](p0) 49 ; CHECK: [[GEP:%[0-9]+]]:_(p4) = G_GEP [[COPY]], [[COPY1]](s64) 50 ; CHECK: $vgpr0_vgpr1 = COPY [[GEP]](p4) 67 ; CHECK: [[GEP:%[0-9]+]]:_(p3) = G_GEP [[COPY]], [[COPY1]](s32) 68 ; CHECK: $vgpr0 = COPY [[GEP]](p3) 85 ; CHECK: [[GEP:%[0-9]+]]:_(p5) = G_GEP [[COPY]], [[COPY1]](s32) 86 ; CHECK: $vgpr0 = COPY [[GEP]](p5)
|
D | irtranslator-amdgpu_kernel.ll | 11 ; HSA-VI: [[GEP:%[0-9]+]]:_(p4) = G_GEP [[COPY]], [[C]](s64) 12 …; HSA-VI: [[LOAD:%[0-9]+]]:_(p1) = G_LOAD [[GEP]](p4) :: (non-temporal invariant load 8 from `i3… 30 ; HSA-VI: [[GEP:%[0-9]+]]:_(p4) = G_GEP [[COPY]], [[C]](s64) 31 …; HSA-VI: [[LOAD:%[0-9]+]]:_(p1) = G_LOAD [[GEP]](p4) :: (non-temporal invariant load 8 from `i3… 49 ; HSA-VI: [[GEP:%[0-9]+]]:_(p4) = G_GEP [[COPY]], [[C]](s64) 50 …; HSA-VI: [[LOAD:%[0-9]+]]:_(p1) = G_LOAD [[GEP]](p4) :: (non-temporal invariant load 8 from `i3… 68 ; HSA-VI: [[GEP:%[0-9]+]]:_(p4) = G_GEP [[COPY]], [[C]](s64) 69 …; HSA-VI: [[LOAD:%[0-9]+]]:_(p1) = G_LOAD [[GEP]](p4) :: (non-temporal invariant load 8 from `i3… 87 ; HSA-VI: [[GEP:%[0-9]+]]:_(p4) = G_GEP [[COPY]], [[C]](s64) 88 …; HSA-VI: [[LOAD:%[0-9]+]]:_(p1) = G_LOAD [[GEP]](p4) :: (non-temporal invariant load 8 from `i3… [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 85 Value *InstCombiner::EmitGEPOffset(User *GEP) { in EmitGEPOffset() argument 86 return llvm::EmitGEPOffset(Builder, DL, GEP); in EmitGEPOffset() 986 static bool shouldMergeGEPs(GEPOperator &GEP, GEPOperator &Src) { in shouldMergeGEPs() argument 990 if (GEP.hasAllZeroIndices() && !Src.hasAllZeroIndices() && in shouldMergeGEPs() 1330 Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) { in visitGetElementPtrInst() argument 1331 SmallVector<Value*, 8> Ops(GEP.op_begin(), GEP.op_end()); in visitGetElementPtrInst() 1333 if (Value *V = SimplifyGEPInst(GEP.getSourceElementType(), Ops, DL, TLI, DT, AC)) in visitGetElementPtrInst() 1334 return replaceInstUsesWith(GEP, V); in visitGetElementPtrInst() 1336 Value *PtrOp = GEP.getOperand(0); in visitGetElementPtrInst() 1342 DL.getIntPtrType(GEP.getPointerOperandType()->getScalarType()); in visitGetElementPtrInst() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/docs/ |
D | GetElementPtr.rst | 2 The Often Misunderstood GEP Instruction 12 `GetElementPtr <LangRef.html#getelementptr-instruction>`_ (GEP) instruction. 13 Questions about the wily GEP instruction are probably the most frequently 15 out the sources of confusion and show that the GEP instruction is really quite 21 When people are first confronted with the GEP instruction, they tend to relate 23 indexing and field selection. GEP closely resembles C array indexing and field 27 What is the first index of the GEP instruction? 46 provide the GEP instruction with two index operands. The first operand indexes 62 computation. The second operand to the GEP instruction must be a value of a 63 pointer type. The value of the pointer is provided directly to the GEP [all …]
|
/external/llvm/docs/ |
D | GetElementPtr.rst | 2 The Often Misunderstood GEP Instruction 12 `GetElementPtr <LangRef.html#i_getelementptr>`_ (GEP) instruction. Questions 13 about the wily GEP instruction are probably the most frequently occurring 15 sources of confusion and show that the GEP instruction is really quite simple. 20 When people are first confronted with the GEP instruction, they tend to relate 22 indexing and field selection. GEP closely resembles C array indexing and field 26 What is the first index of the GEP instruction? 45 provide the GEP instruction with two index operands. The first operand indexes 61 computation. The first operand to the GEP instruction must be a value of a 62 pointer type. The value of the pointer is provided directly to the GEP [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 140 Value *InstCombiner::EmitGEPOffset(User *GEP) { in EmitGEPOffset() argument 141 return llvm::EmitGEPOffset(&Builder, DL, GEP); in EmitGEPOffset() 1102 static bool shouldMergeGEPs(GEPOperator &GEP, GEPOperator &Src) { in shouldMergeGEPs() argument 1106 if (GEP.hasAllZeroIndices() && !Src.hasAllZeroIndices() && in shouldMergeGEPs() 1439 Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) { in visitGetElementPtrInst() argument 1440 SmallVector<Value*, 8> Ops(GEP.op_begin(), GEP.op_end()); in visitGetElementPtrInst() 1441 Type *GEPType = GEP.getType(); in visitGetElementPtrInst() 1442 Type *GEPEltType = GEP.getSourceElementType(); in visitGetElementPtrInst() 1443 if (Value *V = SimplifyGEPInst(GEPEltType, Ops, SQ.getWithInstruction(&GEP))) in visitGetElementPtrInst() 1444 return replaceInstUsesWith(GEP, V); in visitGetElementPtrInst() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Local.h | 188 Value *EmitGEPOffset(IRBuilderTy *Builder, const DataLayout &DL, User *GEP, 190 GEPOperator *GEPOp = cast<GEPOperator>(GEP); 191 Type *IntPtrTy = DL.getIntPtrType(GEP->getType()); 202 gep_type_iterator GTI = gep_type_begin(GEP); 203 for (User::op_iterator i = GEP->op_begin() + 1, e = GEP->op_end(); i != e; 221 GEP->getName()+".offs"); 229 Result = Builder->CreateAdd(Result, Scale, GEP->getName()+".offs"); 238 GEP->getName()+".idx", isInBounds /*NUW*/); 242 Result = Builder->CreateAdd(Op, Result, GEP->getName()+".offs");
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AArch64/GlobalISel/ |
D | translate-gep.ll | 11 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[BASE]], [[OFFSET]] 23 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[COPY]], [[C]](s64) 24 ; CHECK: $x0 = COPY [[GEP]](p0) 52 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[COPY]], [[MUL]](s64) 53 ; CHECK: [[COPY2:%[0-9]+]]:_(p0) = COPY [[GEP]](p0) 70 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[COPY]], [[MUL]](s64) 71 ; CHECK: [[COPY2:%[0-9]+]]:_(p0) = COPY [[GEP]](p0) 88 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[COPY]], [[C]](s64) 90 ; CHECK: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[GEP]], [[MUL]](s64) 108 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[COPY]], [[MUL]](s64) [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/GlobalISel/ |
D | legalize-gep.mir | 38 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[DEF]], [[SEXT]](s32) 39 ; CHECK: G_STORE [[GEP]](p0), [[DEF]](p0) :: (store 1 into %ir.addr) 60 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[DEF]], [[SEXT]](s32) 61 ; CHECK: G_STORE [[GEP]](p0), [[DEF]](p0) :: (store 1 into %ir.addr) 81 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[DEF]], [[C]](s32) 82 ; CHECK: G_STORE [[GEP]](p0), [[DEF]](p0) :: (store 1 into %ir.addr) 102 ; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[DEF]], [[C]](s64) 103 ; CHECK: G_STORE [[GEP]](p0), [[DEF]](p0) :: (store 1 into %ir.addr)
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 215 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) { in PHITranslateSubExpr() local 218 for (unsigned i = 0, e = GEP->getNumOperands(); i != e; ++i) { in PHITranslateSubExpr() 219 Value *GEPOp = PHITranslateSubExpr(GEP->getOperand(i), CurBB, PredBB, DT); in PHITranslateSubExpr() 222 AnyChanged |= GEPOp != GEP->getOperand(i); in PHITranslateSubExpr() 227 return GEP; in PHITranslateSubExpr() 230 if (Value *V = SimplifyGEPInst(GEP->getSourceElementType(), in PHITranslateSubExpr() 242 if (GEPI->getType() == GEP->getType() && in PHITranslateSubExpr() 397 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) { in InsertPHITranslatedSubExpr() local 399 BasicBlock *CurBB = GEP->getParent(); in InsertPHITranslatedSubExpr() 400 for (unsigned i = 0, e = GEP->getNumOperands(); i != e; ++i) { in InsertPHITranslatedSubExpr() [all …]
|
D | TypeMetadataUtils.cpp | 51 } else if (auto GEP = dyn_cast<GetElementPtrInst>(User)) { in findLoadCallsAtConstantOffset() local 53 if (VPtr == GEP->getPointerOperand() && GEP->hasAllConstantIndices()) { in findLoadCallsAtConstantOffset() 54 SmallVector<Value *, 8> Indices(GEP->op_begin() + 1, GEP->op_end()); in findLoadCallsAtConstantOffset() 56 GEP->getSourceElementType(), Indices); in findLoadCallsAtConstantOffset()
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/ |
D | builder_gfx_mem.cpp | 129 Value* BuilderGfxMem::GEP(Value* Ptr, Value* Idx, Type* Ty, bool isReadOnly, const Twine& Name) in GEP() function in SwrJit::BuilderGfxMem 135 Ptr = Builder::GEP(Ptr, Idx, nullptr, isReadOnly, Name); in GEP() 148 Ptr = Builder::GEP(Ptr, Idx, nullptr, isReadOnly, Name); in GEP() 153 Value* BuilderGfxMem::GEP(Type* Ty, Value* Ptr, Value* Idx, const Twine& Name) in GEP() function in SwrJit::BuilderGfxMem 159 Ptr = Builder::GEP(Ty, Ptr, Idx, Name); in GEP() 165 Ptr = Builder::GEP(Ty, Ptr, Idx, Name); in GEP() 170 Value* BuilderGfxMem::GEP(Value* Ptr, const std::initializer_list<Value*>& indexList, Type* Ty) in GEP() function in SwrJit::BuilderGfxMem 176 Ptr = Builder::GEP(Ptr, indexList); in GEP() 182 Ptr = Builder::GEP(Ptr, indexList); in GEP() 188 BuilderGfxMem::GEP(Value* Ptr, const std::initializer_list<uint32_t>& indexList, Type* Ty) in GEP() function in SwrJit::BuilderGfxMem [all …]
|
/external/llvm/lib/Analysis/ |
D | TypeMetadataUtils.cpp | 51 } else if (auto GEP = dyn_cast<GetElementPtrInst>(User)) { in findLoadCallsAtConstantOffset() local 53 if (VPtr == GEP->getPointerOperand() && GEP->hasAllConstantIndices()) { in findLoadCallsAtConstantOffset() 54 SmallVector<Value *, 8> Indices(GEP->op_begin() + 1, GEP->op_end()); in findLoadCallsAtConstantOffset() 56 GEP->getSourceElementType(), Indices); in findLoadCallsAtConstantOffset()
|