Searched defs:GEPI (Results 1 - 10 of 10) sorted by relevance

/external/llvm/lib/Analysis/
H A DPtrUseVisitor.cpp30 bool detail::PtrUseVisitorBase::adjustOffsetForGEP(GetElementPtrInst &GEPI) { argument
34 return GEPI.accumulateConstantOffset(DL, Offset);
/external/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h163 bool adjustOffsetForGEP(GetElementPtrInst &GEPI);
246 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { argument
247 if (GEPI.use_empty())
251 if (!adjustOffsetForGEP(GEPI)) {
257 enqueueUsers(GEPI);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp700 static bool canReplaceGEPIdxWithZero(InstCombiner &IC, GetElementPtrInst *GEPI, argument
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
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp439 bool Scalarizer::visitGetElementPtrInst(GetElementPtrInst &GEPI) { argument
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
[all...]
/external/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp337 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; // Ski
544 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP); local
[all...]
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
H A DGlobalOpt.cpp397 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)) {
603 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP); local
[all...]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp130 void isSafeGEP(GetElementPtrInst *GEPI, uint64_t &Offset, AllocaInfo &Info);
146 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset,
1512 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(User)) {
1514 isSafeGEP(GEPI, GEPOffset, Info);
1516 isSafeForScalarRepl(GEPI, GEPOffset, Info);
1576 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(User)) {
1580 if (!GEPI->hasAllZeroIndices())
1582 isSafePHISelectUseForScalarRepl(GEPI, Offset, Info);
1614 void SROA::isSafeGEP(GetElementPtrInst *GEPI, argument
1616 gep_type_iterator GEPIt = gep_type_begin(GEPI),
1915 RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, SmallVector<AllocaInst*, 32> &NewElts) argument
[all...]
/external/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp339 void visitGetElementPtrInst(GetElementPtrInst &GEPI);
1275 void DFSanVisitor::visitGetElementPtrInst(GetElementPtrInst &GEPI) { argument
1276 visitOperandShadowInst(GEPI);
/external/swiftshader/third_party/LLVM/lib/VMCore/
H A DInstructions.cpp1342 GetElementPtrInst::GetElementPtrInst(const GetElementPtrInst &GEPI) argument
1343 : Instruction(GEPI.getType(), GetElementPtr,
1345 - GEPI.getNumOperands(),
1346 GEPI.getNumOperands()) {
1347 std::copy(GEPI.op_begin(), GEPI.op_end(), op_begin());
1348 SubclassOptionalData = GEPI.SubclassOptionalData;
/external/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp4565 auto *GEPI = cast<GetElementPtrInst>(GEPList[I]); local
4566 if (!Candidates.count(GEPI))
4575 } else if (GEPI->idx_begin()->get() == GEPJ->idx_begin()->get()) {

Completed in 294 milliseconds