HomeSort by relevance Sort by last modified time
    Searched refs:GEPI (Results 1 - 25 of 42) sorted by null

1 2

  /external/llvm/lib/Analysis/
PtrUseVisitor.cpp 30 bool detail::PtrUseVisitorBase::adjustOffsetForGEP(GetElementPtrInst &GEPI) {
34 return GEPI.accumulateConstantOffset(DL, Offset);
PHITransAddr.cpp 243 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U))
244 if (GEPI->getType() == GEP->getType() &&
245 GEPI->getNumOperands() == GEPOps.size() &&
246 GEPI->getParent()->getParent() == CurBB->getParent() &&
247 (!DT || DT->dominates(GEPI->getParent(), PredBB))) {
248 if (std::equal(GEPOps.begin(), GEPOps.end(), GEPI->op_begin()))
249 return GEPI;
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
PtrUseVisitor.cpp 34 bool detail::PtrUseVisitorBase::adjustOffsetForGEP(GetElementPtrInst &GEPI) {
38 return GEPI.accumulateConstantOffset(DL, Offset);
PHITransAddr.cpp 241 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U))
242 if (GEPI->getType() == GEP->getType() &&
243 GEPI->getNumOperands() == GEPOps.size() &&
244 GEPI->getParent()->getParent() == CurBB->getParent() &&
245 (!DT || DT->dominates(GEPI->getParent(), PredBB))) {
246 if (std::equal(GEPOps.begin(), GEPOps.end(), GEPI->op_begin()))
247 return GEPI;
  /external/llvm/include/llvm/Analysis/
PtrUseVisitor.h 163 bool adjustOffsetForGEP(GetElementPtrInst &GEPI);
246 void visitGetElementPtrInst(GetElementPtrInst &GEPI) {
247 if (GEPI.use_empty())
251 if (!adjustOffsetForGEP(GEPI)) {
257 enqueueUsers(GEPI);
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
PtrUseVisitor.h 176 bool adjustOffsetForGEP(GetElementPtrInst &GEPI);
264 void visitGetElementPtrInst(GetElementPtrInst &GEPI) {
265 if (GEPI.use_empty())
269 if (!adjustOffsetForGEP(GEPI)) {
275 enqueueUsers(GEPI);
  /external/llvm/lib/Transforms/IPO/
GlobalOpt.cpp 337 GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I);
338 if (!GEPI) return false;
340 if (GEPI->getNumOperands() < 3 || !isa<Constant>(GEPI->getOperand(1)) ||
341 !cast<Constant>(GEPI->getOperand(1))->isNullValue())
344 for (User *U : GEPI->users())
369 gep_type_iterator GEPI = gep_type_begin(U), E = gep_type_end(U);
370 ++GEPI; // Skip over the pointer index.
373 if (ArrayType *AT = dyn_cast<ArrayType>(*GEPI)) {
390 for (++GEPI; // Skip array index
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
GlobalOpt.cpp 397 GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I);
398 if (GEPI == 0) return false;
400 if (GEPI->getNumOperands() < 3 || !isa<Constant>(GEPI->getOperand(1)) ||
401 !cast<Constant>(GEPI->getOperand(1))->isNullValue())
404 for (Value::use_iterator I = GEPI->use_begin(), E = GEPI->use_end();
431 gep_type_iterator GEPI = gep_type_begin(U), E = gep_type_end(U);
432 ++GEPI; // Skip over the pointer index.
435 if (ArrayType *AT = dyn_cast<ArrayType>(*GEPI)) {
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineLoadStoreAlloca.cpp 700 static bool canReplaceGEPIdxWithZero(InstCombiner &IC, GetElementPtrInst *GEPI,
702 if (GEPI->getNumOperands() < 2)
707 auto FirstNZIdx = [](const GetElementPtrInst *GEPI) {
709 for (unsigned IE = GEPI->getNumOperands(); I != IE; ++I) {
710 Value *V = GEPI->getOperand(I);
723 Idx = FirstNZIdx(GEPI);
724 if (Idx == GEPI->getNumOperands())
726 if (isa<Constant>(GEPI->getOperand(Idx)))
729 SmallVector<Value *, 4> Ops(GEPI->idx_begin(), GEPI->idx_begin() + Idx)
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Analysis/
PHITransAddr.cpp 242 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(*UI))
243 if (GEPI->getType() == GEP->getType() &&
244 GEPI->getNumOperands() == GEPOps.size() &&
245 GEPI->getParent()->getParent() == CurBB->getParent() &&
246 (!DT || DT->dominates(GEPI->getParent(), PredBB))) {
249 if (GEPI->getOperand(i) != GEPOps[i]) {
254 return GEPI;
InlineCost.cpp 120 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(II)){
123 if (GEPI->hasAllConstantIndices())
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
InstCombineLoadStoreAlloca.cpp     [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
Scalarizer.cpp 173 bool visitGetElementPtrInst(GetElementPtrInst &GEPI);
544 bool Scalarizer::visitGetElementPtrInst(GetElementPtrInst &GEPI) {
545 VectorType *VT = dyn_cast<VectorType>(GEPI.getType());
549 IRBuilder<> Builder(&GEPI);
551 unsigned NumIndices = GEPI.getNumIndices();
555 Value *Op0 = GEPI.getOperand(0);
558 Scatterer Base = scatter(&GEPI, Op0);
563 Value *Op = GEPI.getOperand(I + 1);
570 Ops[I] = scatter(&GEPI, Op);
580 Res[I] = Builder.CreateGEP(GEPI.getSourceElementType(), Base[I], Indices
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
ScalarReplAggregates.cpp 130 void isSafeGEP(GetElementPtrInst *GEPI, uint64_t &Offset, AllocaInfo &Info);
146 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset,
    [all...]
CodeGenPrepare.cpp     [all...]
  /external/llvm/lib/Target/NVPTX/
NVPTXFavorNonGenericAddrSpaces.cpp 161 if (Instruction *GEPI = dyn_cast<Instruction>(GEP)) {
168 "", GEPI);
171 NewASC = new AddrSpaceCastInst(NewGEP, GEP->getType(), "", GEPI);
  /external/llvm/lib/Transforms/Scalar/
Scalarizer.cpp 439 bool Scalarizer::visitGetElementPtrInst(GetElementPtrInst &GEPI) {
440 VectorType *VT = dyn_cast<VectorType>(GEPI.getType());
444 IRBuilder<> Builder(&GEPI);
446 unsigned NumIndices = GEPI.getNumIndices();
448 Scatterer Base = scatter(&GEPI, GEPI.getOperand(0));
453 Ops[I] = scatter(&GEPI, GEPI.getOperand(I + 1));
462 Res[I] = Builder.CreateGEP(GEPI.getSourceElementType(), Base[I], Indices,
463 GEPI.getName() + ".i" + Twine(I))
    [all...]
SROA.cpp 674 void visitGetElementPtrInst(GetElementPtrInst &GEPI) {
675 if (GEPI.use_empty())
676 return markAsDead(GEPI);
678 if (SROAStrictInbounds && GEPI.isInBounds()) {
687 const DataLayout &DL = GEPI.getModule()->getDataLayout();
688 for (gep_type_iterator GTI = gep_type_begin(GEPI),
689 GTE = gep_type_end(GEPI);
713 return markAsDead(GEPI);
717 return Base::visitGetElementPtrInst(GEPI);
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
GlobalOpt.cpp 373 gep_type_iterator GEPI = gep_type_begin(U), E = gep_type_end(U);
374 ++GEPI; // Skip over the pointer index.
381 for (; GEPI != E; ++GEPI) {
382 if (GEPI.isStruct())
385 ConstantInt *IdxVal = dyn_cast<ConstantInt>(GEPI.getOperand());
386 if (!IdxVal || (GEPI.isBoundedSequential() &&
387 IdxVal->getZExtValue() >= GEPI.getSequentialNumElements()))
576 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP);
579 for (unsigned i = 3, e = GEPI->getNumOperands(); i != e; ++i
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
InstructionsTest.cpp 670 auto *GEPI = cast<GetElementPtrInst>(V);
671 ASSERT_NE(GEPI->idx_begin(), GEPI->idx_end());
672 ASSERT_EQ(GEPI->idx_end(), std::next(GEPI->idx_begin(), 3));
673 EXPECT_EQ(Indices[0], GEPI->idx_begin()[0]);
674 EXPECT_EQ(Indices[1], GEPI->idx_begin()[1]);
675 EXPECT_EQ(Indices[2], GEPI->idx_begin()[2]);
676 EXPECT_EQ(GEPI->idx_begin(), GEPI->indices().begin())
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
InstCombineLoadStoreAlloca.cpp 178 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Op)) {
179 const Value *GEPI0 = GEPI->getOperand(0);
181 if (isa<ConstantPointerNull>(GEPI0) && GEPI->getPointerAddressSpace() == 0){
  /external/llvm/lib/Transforms/Utils/
PromoteMemoryToRegister.cpp 79 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) {
80 if (GEPI->getType() != Type::getInt8PtrTy(U->getContext(), AS))
82 if (!GEPI->hasAllZeroIndices())
84 if (!onlyUsedByLifetimeMarkers(GEPI))
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
PromoteMemoryToRegister.cpp 109 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) {
110 if (GEPI->getType() != Type::getInt8PtrTy(U->getContext()))
112 if (!GEPI->hasAllZeroIndices())
114 if (!onlyUsedByLifetimeMarkers(GEPI))
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
PromoteMemoryToRegister.cpp 93 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) {
94 if (GEPI->getType() != Type::getInt8PtrTy(U->getContext(), AS))
96 if (!GEPI->hasAllZeroIndices())
98 if (!onlyUsedByLifetimeMarkers(GEPI))
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
CodeGenPrepare.cpp     [all...]

Completed in 679 milliseconds

1 2