Home
last modified time | relevance | path

Searched refs:GEPI (Results 1 – 14 of 14) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp847 static bool canReplaceGEPIdxWithZero(InstCombiner &IC, GetElementPtrInst *GEPI, in canReplaceGEPIdxWithZero() argument
849 if (GEPI->getNumOperands() < 2) in canReplaceGEPIdxWithZero()
854 auto FirstNZIdx = [](const GetElementPtrInst *GEPI) { in canReplaceGEPIdxWithZero() argument
856 for (unsigned IE = GEPI->getNumOperands(); I != IE; ++I) { in canReplaceGEPIdxWithZero()
857 Value *V = GEPI->getOperand(I); in canReplaceGEPIdxWithZero()
870 Idx = FirstNZIdx(GEPI); in canReplaceGEPIdxWithZero()
871 if (Idx == GEPI->getNumOperands()) in canReplaceGEPIdxWithZero()
873 if (isa<Constant>(GEPI->getOperand(Idx))) in canReplaceGEPIdxWithZero()
876 SmallVector<Value *, 4> Ops(GEPI->idx_begin(), GEPI->idx_begin() + Idx); in canReplaceGEPIdxWithZero()
878 GetElementPtrInst::getIndexedType(GEPI->getSourceElementType(), Ops); in canReplaceGEPIdxWithZero()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp375 gep_type_iterator GEPI = gep_type_begin(U), E = gep_type_end(U); in isSafeSROAGEP() local
376 ++GEPI; // Skip over the pointer index. in isSafeSROAGEP()
383 for (; GEPI != E; ++GEPI) { in isSafeSROAGEP()
384 if (GEPI.isStruct()) in isSafeSROAGEP()
387 ConstantInt *IdxVal = dyn_cast<ConstantInt>(GEPI.getOperand()); in isSafeSROAGEP()
388 if (!IdxVal || (GEPI.isBoundedSequential() && in isSafeSROAGEP()
389 IdxVal->getZExtValue() >= GEPI.getSequentialNumElements())) in isSafeSROAGEP()
598 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP); in SRAGlobal() local
601 for (unsigned i = 3, e = GEPI->getNumOperands(); i != e; ++i) in SRAGlobal()
602 Idxs.push_back(GEPI->getOperand(i)); in SRAGlobal()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DPtrUseVisitor.h175 bool adjustOffsetForGEP(GetElementPtrInst &GEPI);
267 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { in visitGetElementPtrInst() argument
268 if (GEPI.use_empty()) in visitGetElementPtrInst()
272 if (!adjustOffsetForGEP(GEPI)) { in visitGetElementPtrInst()
278 enqueueUsers(GEPI); in visitGetElementPtrInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DPtrUseVisitor.cpp33 bool detail::PtrUseVisitorBase::adjustOffsetForGEP(GetElementPtrInst &GEPI) { in adjustOffsetForGEP() argument
37 APInt TmpOffset(DL.getIndexTypeSizeInBits(GEPI.getType()), 0); in adjustOffsetForGEP()
38 if (GEPI.accumulateConstantOffset(DL, TmpOffset)) { in adjustOffsetForGEP()
DPHITransAddr.cpp240 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) in PHITranslateSubExpr() local
241 if (GEPI->getType() == GEP->getType() && in PHITranslateSubExpr()
242 GEPI->getNumOperands() == GEPOps.size() && in PHITranslateSubExpr()
243 GEPI->getParent()->getParent() == CurBB->getParent() && in PHITranslateSubExpr()
244 (!DT || DT->dominates(GEPI->getParent(), PredBB))) { in PHITranslateSubExpr()
245 if (std::equal(GEPOps.begin(), GEPOps.end(), GEPI->op_begin())) in PHITranslateSubExpr()
246 return GEPI; in PHITranslateSubExpr()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DScalarizer.cpp192 bool visitGetElementPtrInst(GetElementPtrInst &GEPI);
618 bool ScalarizerVisitor::visitGetElementPtrInst(GetElementPtrInst &GEPI) { in visitGetElementPtrInst() argument
619 VectorType *VT = dyn_cast<VectorType>(GEPI.getType()); in visitGetElementPtrInst()
623 IRBuilder<> Builder(&GEPI); in visitGetElementPtrInst()
625 unsigned NumIndices = GEPI.getNumIndices(); in visitGetElementPtrInst()
629 Value *Op0 = GEPI.getOperand(0); in visitGetElementPtrInst()
632 Scatterer Base = scatter(&GEPI, Op0); in visitGetElementPtrInst()
637 Value *Op = GEPI.getOperand(I + 1); in visitGetElementPtrInst()
644 Ops[I] = scatter(&GEPI, Op); in visitGetElementPtrInst()
654 Res[I] = Builder.CreateGEP(GEPI.getSourceElementType(), Base[I], Indices, in visitGetElementPtrInst()
[all …]
DSROA.cpp724 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { in visitGetElementPtrInst() argument
725 if (GEPI.use_empty()) in visitGetElementPtrInst()
726 return markAsDead(GEPI); in visitGetElementPtrInst()
728 if (SROAStrictInbounds && GEPI.isInBounds()) { in visitGetElementPtrInst()
737 const DataLayout &DL = GEPI.getModule()->getDataLayout(); in visitGetElementPtrInst()
738 for (gep_type_iterator GTI = gep_type_begin(GEPI), in visitGetElementPtrInst()
739 GTE = gep_type_end(GEPI); in visitGetElementPtrInst()
763 return markAsDead(GEPI); in visitGetElementPtrInst()
767 return Base::visitGetElementPtrInst(GEPI); in visitGetElementPtrInst()
3445 bool visitGetElementPtrInst(GetElementPtrInst &GEPI) { in visitGetElementPtrInst() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp91 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) { in isAllocaPromotable() local
92 if (GEPI->getType() != Type::getInt8PtrTy(U->getContext(), AS)) in isAllocaPromotable()
94 if (!GEPI->hasAllZeroIndices()) in isAllocaPromotable()
96 if (!onlyUsedByLifetimeMarkers(GEPI)) in isAllocaPromotable()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp6950 static bool tryUnmergingGEPsAcrossIndirectBr(GetElementPtrInst *GEPI, in tryUnmergingGEPsAcrossIndirectBr() argument
6952 BasicBlock *SrcBlock = GEPI->getParent(); in tryUnmergingGEPsAcrossIndirectBr()
6958 if (!GEPSequentialConstIndexed(GEPI)) in tryUnmergingGEPsAcrossIndirectBr()
6960 ConstantInt *GEPIIdx = cast<ConstantInt>(GEPI->getOperand(1)); in tryUnmergingGEPsAcrossIndirectBr()
6965 Value *GEPIOp = GEPI->getOperand(0); in tryUnmergingGEPsAcrossIndirectBr()
6974 if (find_if(GEPI->users(), [&](User *Usr) { in tryUnmergingGEPsAcrossIndirectBr()
6981 }) == GEPI->users().end()) in tryUnmergingGEPsAcrossIndirectBr()
6988 if (Usr == GEPI) continue; in tryUnmergingGEPsAcrossIndirectBr()
7028 UGEPI->setOperand(0, GEPI); in tryUnmergingGEPsAcrossIndirectBr()
7036 if (!GEPI->isInBounds()) { in tryUnmergingGEPsAcrossIndirectBr()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstructions.cpp1598 GetElementPtrInst::GetElementPtrInst(const GetElementPtrInst &GEPI) in GetElementPtrInst() argument
1599 : Instruction(GEPI.getType(), GetElementPtr, in GetElementPtrInst()
1601 GEPI.getNumOperands(), in GetElementPtrInst()
1602 GEPI.getNumOperands()), in GetElementPtrInst()
1603 SourceElementType(GEPI.SourceElementType), in GetElementPtrInst()
1604 ResultElementType(GEPI.ResultElementType) { in GetElementPtrInst()
1605 std::copy(GEPI.op_begin(), GEPI.op_end(), op_begin()); in GetElementPtrInst()
1606 SubclassOptionalData = GEPI.SubclassOptionalData; in GetElementPtrInst()
DConstants.cpp1238 gep_type_iterator GEPI = gep_type_begin(this), E = gep_type_end(this); in isGEPWithNoNotionalOverIndexing() local
1243 for (; GEPI != E; ++GEPI, ++OI) { in isGEPWithNoNotionalOverIndexing()
1247 if (!CI || (GEPI.isBoundedSequential() && in isGEPWithNoNotionalOverIndexing()
1249 CI->getZExtValue() >= GEPI.getSequentialNumElements()))) in isGEPWithNoNotionalOverIndexing()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp446 void visitGetElementPtrInst(GetElementPtrInst &GEPI);
1418 void DFSanVisitor::visitGetElementPtrInst(GetElementPtrInst &GEPI) { in visitGetElementPtrInst() argument
1419 visitOperandShadowInst(GEPI); in visitGetElementPtrInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp7417 auto *GEPI = GEPList[I]; in vectorizeGEPIndices() local
7418 if (!Candidates.count(GEPI)) in vectorizeGEPIndices()
7425 Candidates.remove(GEPI); in vectorizeGEPIndices()
7427 } else if (GEPI->idx_begin()->get() == GEPJ->idx_begin()->get()) { in vectorizeGEPIndices()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstructions.h896 GetElementPtrInst(const GetElementPtrInst &GEPI);