Searched refs:GEPI (Results 1 - 9 of 9) sorted by relevance
/external/llvm/lib/Analysis/ |
H A D | PHITransAddr.cpp | 243 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(*UI)) 244 if (GEPI->getType() == GEP->getType() && 245 GEPI->getNumOperands() == GEPOps.size() && 246 GEPI->getParent()->getParent() == CurBB->getParent() && 247 (!DT || DT->dominates(GEPI->getParent(), PredBB))) { 250 if (GEPI->getOperand(i) != GEPOps[i]) { 255 return GEPI;
|
/external/llvm/lib/Transforms/IPO/ |
H A D | GlobalOpt.cpp | 560 GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I); 561 if (GEPI == 0) return false; 563 if (GEPI->getNumOperands() < 3 || !isa<Constant>(GEPI->getOperand(1)) || 564 !cast<Constant>(GEPI->getOperand(1))->isNullValue()) 567 for (Value::use_iterator I = GEPI->use_begin(), E = GEPI->use_end(); 594 gep_type_iterator GEPI = gep_type_begin(U), E = gep_type_end(U); 595 ++GEPI; // Skip over the pointer index. 598 if (ArrayType *AT = dyn_cast<ArrayType>(*GEPI)) { 764 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP); local [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | ScalarReplAggregates.cpp | 156 void isSafeGEP(GetElementPtrInst *GEPI, uint64_t &Offset, AllocaInfo &Info); 172 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, 1606 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(User)) { 1608 isSafeGEP(GEPI, GEPOffset, Info); 1610 isSafeForScalarRepl(GEPI, GEPOffset, Info); 1673 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(User)) { 1677 if (!GEPI->hasAllZeroIndices()) 1679 isSafePHISelectUseForScalarRepl(GEPI, Offset, Info); 1711 void SROA::isSafeGEP(GetElementPtrInst *GEPI, argument 1713 gep_type_iterator GEPIt = gep_type_begin(GEPI), 2048 RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, SmallVector<AllocaInst*, 32> &NewElts) argument [all...] |
H A D | CodeGenPrepare.cpp | 1299 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I)) { 1300 if (GEPI->hasAllZeroIndices()) { 1302 Instruction *NC = new BitCastInst(GEPI->getOperand(0), GEPI->getType(), 1303 GEPI->getName(), GEPI); 1304 GEPI->replaceAllUsesWith(NC); 1305 GEPI->eraseFromParent();
|
/external/llvm/lib/Transforms/Utils/ |
H A D | PromoteMemoryToRegister.cpp | 111 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) { 112 if (GEPI->getType() != Type::getInt8PtrTy(U->getContext())) 114 if (!GEPI->hasAllZeroIndices()) 116 if (!onlyUsedByLifetimeMarkers(GEPI))
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 382 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Op)) { 383 const Value *GEPI0 = GEPI->getOperand(0); 385 if (isa<ConstantPointerNull>(GEPI0) && GEPI->getPointerAddressSpace() == 0){
|
/external/llvm/lib/VMCore/ |
H A D | Instructions.cpp | 1318 GetElementPtrInst::GetElementPtrInst(const GetElementPtrInst &GEPI) argument 1319 : Instruction(GEPI.getType(), GetElementPtr, 1321 - GEPI.getNumOperands(), 1322 GEPI.getNumOperands()) { 1323 std::copy(GEPI.op_begin(), GEPI.op_end(), op_begin()); 1324 SubclassOptionalData = GEPI.SubclassOptionalData;
|
H A D | Constants.cpp | 990 gep_type_iterator GEPI = gep_type_begin(this), E = gep_type_end(this); 994 ++GEPI; 999 for (; GEPI != E; ++GEPI, ++OI) { 1002 if (ArrayType *ATy = dyn_cast<ArrayType>(*GEPI))
|
/external/llvm/include/llvm/ |
H A D | Instructions.h | 713 GetElementPtrInst(const GetElementPtrInst &GEPI);
|
Completed in 236 milliseconds