/external/llvm/lib/Analysis/ |
H A D | PtrUseVisitor.cpp | 30 bool detail::PtrUseVisitorBase::adjustOffsetForGEP(GetElementPtrInst &GEPI) { argument 34 return GEPI.accumulateConstantOffset(DL, Offset);
|
H A D | 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))) { 248 if (GEPI->getOperand(i) != GEPOps[i]) { 253 return GEPI;
|
/external/llvm/include/llvm/Analysis/ |
H A D | PtrUseVisitor.h | 163 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/Target/NVPTX/ |
H A D | NVPTXFavorNonGenericAddrSpaces.cpp | 121 if (Instruction *GEPI = dyn_cast<Instruction>(GEP)) { 129 GEPI); 132 new AddrSpaceCastInst(NewGEPI, GEP->getType(), "", GEPI));
|
/external/llvm/lib/Transforms/IPO/ |
H A D | GlobalOpt.cpp | 374 GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I); 375 if (!GEPI) return false; 377 if (GEPI->getNumOperands() < 3 || !isa<Constant>(GEPI->getOperand(1)) || 378 !cast<Constant>(GEPI->getOperand(1))->isNullValue()) 381 for (User *U : GEPI->users()) 407 gep_type_iterator GEPI = gep_type_begin(U), E = gep_type_end(U); 408 ++GEPI; // Skip over the pointer index. 411 if (ArrayType *AT = dyn_cast<ArrayType>(*GEPI)) { 428 for (++GEPI; // Ski 577 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP); local [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | ScalarReplAggregates.cpp | 157 void isSafeGEP(GetElementPtrInst *GEPI, uint64_t &Offset, AllocaInfo &Info); 173 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, 1604 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(User)) { 1606 isSafeGEP(GEPI, GEPOffset, Info); 1608 isSafeForScalarRepl(GEPI, GEPOffset, Info); 1669 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(UI)) { 1673 if (!GEPI->hasAllZeroIndices()) 1675 isSafePHISelectUseForScalarRepl(GEPI, Offset, Info); 1707 void SROA::isSafeGEP(GetElementPtrInst *GEPI, argument 1709 gep_type_iterator GEPIt = gep_type_begin(GEPI), 2035 RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, SmallVectorImpl<AllocaInst *> &NewElts) argument [all...] |
H A D | Scalarizer.cpp | 425 bool Scalarizer::visitGetElementPtrInst(GetElementPtrInst &GEPI) { argument 426 VectorType *VT = dyn_cast<VectorType>(GEPI.getType()); 430 IRBuilder<> Builder(GEPI.getParent(), &GEPI); 432 unsigned NumIndices = GEPI.getNumIndices(); 434 Scatterer Base = scatter(&GEPI, GEPI.getOperand(0)); 439 Ops[I] = scatter(&GEPI, GEPI.getOperand(I + 1)); 449 GEPI [all...] |
H A D | SROA.cpp | 397 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { argument 398 if (GEPI.use_empty()) 399 return markAsDead(GEPI); 401 if (SROAStrictInbounds && GEPI.isInBounds()) { 410 for (gep_type_iterator GTI = gep_type_begin(GEPI), 411 GTE = gep_type_end(GEPI); 434 return markAsDead(GEPI); 438 return Base::visitGetElementPtrInst(GEPI); 855 else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Ptr)) 856 Ptr = GEPI 2935 visitGetElementPtrInst(GetElementPtrInst &GEPI) argument [all...] |
/external/llvm/lib/Transforms/Utils/ |
H A D | PromoteMemoryToRegister.cpp | 88 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) { 89 if (GEPI->getType() != Type::getInt8PtrTy(U->getContext(), AS)) 91 if (!GEPI->hasAllZeroIndices()) 93 if (!onlyUsedByLifetimeMarkers(GEPI))
|
/external/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 3179 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I)) { 3180 if (GEPI->hasAllZeroIndices()) { 3182 Instruction *NC = new BitCastInst(GEPI->getOperand(0), GEPI->getType(), 3183 GEPI->getName(), GEPI); 3184 GEPI->replaceAllUsesWith(NC); 3185 GEPI->eraseFromParent();
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 394 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Op)) { 395 const Value *GEPI0 = GEPI->getOperand(0); 397 if (isa<ConstantPointerNull>(GEPI0) && GEPI->getPointerAddressSpace() == 0){
|
/external/llvm/lib/IR/ |
H A D | Instructions.cpp | 1353 GetElementPtrInst::GetElementPtrInst(const GetElementPtrInst &GEPI) argument 1354 : Instruction(GEPI.getType(), GetElementPtr, 1356 - GEPI.getNumOperands(), 1357 GEPI.getNumOperands()) { 1358 std::copy(GEPI.op_begin(), GEPI.op_end(), op_begin()); 1359 SubclassOptionalData = GEPI.SubclassOptionalData;
|
H A D | Constants.cpp | 1085 gep_type_iterator GEPI = gep_type_begin(this), E = gep_type_end(this); 1089 ++GEPI; 1094 for (; GEPI != E; ++GEPI, ++OI) { 1097 if (ArrayType *ATy = dyn_cast<ArrayType>(*GEPI))
|
/external/llvm/lib/Transforms/Instrumentation/ |
H A D | DataFlowSanitizer.cpp | 306 void visitGetElementPtrInst(GetElementPtrInst &GEPI); 1127 void DFSanVisitor::visitGetElementPtrInst(GetElementPtrInst &GEPI) { argument 1128 visitOperandShadowInst(GEPI);
|
/external/llvm/include/llvm/IR/ |
H A D | Instructions.h | 776 GetElementPtrInst(const GetElementPtrInst &GEPI);
|