/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 395 GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I); in isSafeSROAElementUse() local 396 if (GEPI == 0) return false; in isSafeSROAElementUse() 398 if (GEPI->getNumOperands() < 3 || !isa<Constant>(GEPI->getOperand(1)) || in isSafeSROAElementUse() 399 !cast<Constant>(GEPI->getOperand(1))->isNullValue()) in isSafeSROAElementUse() 402 for (Value::use_iterator I = GEPI->use_begin(), E = GEPI->use_end(); in isSafeSROAElementUse() 429 gep_type_iterator GEPI = gep_type_begin(U), E = gep_type_end(U); in IsUserOfGlobalSafeForSRA() local 430 ++GEPI; // Skip over the pointer index. in IsUserOfGlobalSafeForSRA() 433 if (ArrayType *AT = dyn_cast<ArrayType>(*GEPI)) { in IsUserOfGlobalSafeForSRA() 450 for (++GEPI; // Skip array index. in IsUserOfGlobalSafeForSRA() 451 GEPI != E; in IsUserOfGlobalSafeForSRA() [all …]
|
/external/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 242 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(*UI)) in PHITranslateSubExpr() local 243 if (GEPI->getType() == GEP->getType() && in PHITranslateSubExpr() 244 GEPI->getNumOperands() == GEPOps.size() && in PHITranslateSubExpr() 245 GEPI->getParent()->getParent() == CurBB->getParent() && in PHITranslateSubExpr() 246 (!DT || DT->dominates(GEPI->getParent(), PredBB))) { in PHITranslateSubExpr() 249 if (GEPI->getOperand(i) != GEPOps[i]) { in PHITranslateSubExpr() 254 return GEPI; in PHITranslateSubExpr()
|
D | InlineCost.cpp | 113 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(II)){ in analyzeBasicBlock() local 116 if (GEPI->hasAllConstantIndices()) in analyzeBasicBlock()
|
D | ValueTracking.cpp | 1541 if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(V)) { in GetConstantStringInfo() local 1542 GEP = GEPI; in GetConstantStringInfo() 1673 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(V)) { in GetStringLengthH() local 1674 GEP = GEPI; in GetStringLengthH()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 130 void isSafeGEP(GetElementPtrInst *GEPI, uint64_t &Offset, AllocaInfo &Info); 146 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, 1660 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(User)) { in isSafeForScalarRepl() local 1662 isSafeGEP(GEPI, GEPOffset, Info); in isSafeForScalarRepl() 1664 isSafeForScalarRepl(GEPI, GEPOffset, Info); in isSafeForScalarRepl() 1720 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(User)) { in isSafePHISelectUseForScalarRepl() local 1724 if (!GEPI->hasAllZeroIndices()) in isSafePHISelectUseForScalarRepl() 1726 isSafePHISelectUseForScalarRepl(GEPI, Offset, Info); in isSafePHISelectUseForScalarRepl() 1758 void SROA::isSafeGEP(GetElementPtrInst *GEPI, in isSafeGEP() argument 1760 gep_type_iterator GEPIt = gep_type_begin(GEPI), E = gep_type_end(GEPI); in isSafeGEP() [all …]
|
D | CodeGenPrepare.cpp | 1126 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I)) { in OptimizeInst() local 1127 if (GEPI->hasAllZeroIndices()) { in OptimizeInst() 1129 Instruction *NC = new BitCastInst(GEPI->getOperand(0), GEPI->getType(), in OptimizeInst() 1130 GEPI->getName(), GEPI); in OptimizeInst() 1131 GEPI->replaceAllUsesWith(NC); in OptimizeInst() 1132 GEPI->eraseFromParent(); in OptimizeInst()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 177 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Op)) { in visitLoadInst() local 178 const Value *GEPI0 = GEPI->getOperand(0); in visitLoadInst() 180 if (isa<ConstantPointerNull>(GEPI0) && GEPI->getPointerAddressSpace() == 0){ in visitLoadInst()
|
/external/llvm/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 105 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) { in isAllocaPromotable() local 106 if (GEPI->getType() != Type::getInt8PtrTy(U->getContext())) in isAllocaPromotable() 108 if (!GEPI->hasAllZeroIndices()) in isAllocaPromotable() 110 if (!onlyUsedByLifetimeMarkers(GEPI)) in isAllocaPromotable()
|
/external/llvm/lib/VMCore/ |
D | Constants.cpp | 752 gep_type_iterator GEPI = gep_type_begin(this), E = gep_type_end(this); in isGEPWithNoNotionalOverIndexing() local 756 ++GEPI; in isGEPWithNoNotionalOverIndexing() 761 for (; GEPI != E; ++GEPI, ++OI) { in isGEPWithNoNotionalOverIndexing() 764 if (ArrayType *ATy = dyn_cast<ArrayType>(*GEPI)) in isGEPWithNoNotionalOverIndexing()
|
D | Instructions.cpp | 1027 GetElementPtrInst::GetElementPtrInst(const GetElementPtrInst &GEPI) in GetElementPtrInst() argument 1028 : Instruction(GEPI.getType(), GetElementPtr, in GetElementPtrInst() 1030 - GEPI.getNumOperands(), in GetElementPtrInst() 1031 GEPI.getNumOperands()) { in GetElementPtrInst() 1033 Use *GEPIOL = GEPI.OperandList; in GetElementPtrInst() 1036 SubclassOptionalData = GEPI.SubclassOptionalData; in GetElementPtrInst()
|
/external/llvm/include/llvm/ |
D | Instructions.h | 287 GetElementPtrInst(const GetElementPtrInst &GEPI);
|