/external/llvm/lib/Analysis/ |
ConstantFolding.cpp | 240 if (GEPOperator *GEP = dyn_cast<GEPOperator>(CE)) { 246 return GEP->accumulateConstantOffset(TD, Offset); 647 /// SymbolicallyEvaluateGEP - If we can symbolically evaluate the specified GEP 659 // If this is a constant expr gep that is effectively computing an 660 // "offsetof", fold it into 'cast int Size to T*' instead of 'gep 0, 0, 12' 664 // If this is "gep i8* Ptr, (sub 0, V)", fold this as: 692 // If this is a GEP of a GEP, fold it all into a single GEP. 693 while (GEPOperator *GEP = dyn_cast<GEPOperator>(Ptr)) [all...] |
ScalarEvolutionExpander.cpp | 336 /// into GEP indices. 370 /// a GEP instead of using ptrtoint+arithmetic+inttoptr. This helps 411 // operands into GEP indices, at each level. The first index in a GEP 513 // If none of the operands were convertible to proper GEP indices, cast 527 // Fold a GEP with constant operands. 532 // Do a quick scan to see if we have this GEP nearby. If so, reuse it. 565 // Emit a GEP. 566 Value *GEP = Builder.CreateGEP(V, Idx, "uglygep"); 567 rememberInstruction(GEP); [all...] |
ScalarEvolution.cpp | [all...] |
InstructionSimplify.cpp | 687 if (GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { 688 if (!GEP->isInBounds() || !GEP->accumulateConstantOffset(*TD, Offset)) 690 V = GEP->getPointerOperand(); [all...] |
/external/llvm/lib/Analysis/IPA/ |
GlobalsModRef.cpp | 261 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) { 262 if (AnalyzeUsesOfPointer(GEP, Readers, Writers)) return true;
|
/external/llvm/lib/Transforms/Instrumentation/ |
ThreadSanitizer.cpp | 231 // If this is a GEP, just analyze its pointer operand. 232 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Addr)) 233 Addr = GEP->getPointerOperand();
|
GCOVProfiling.cpp | 781 Value *GEP = Builder.CreateGEP(Arg, ZExtPred); 782 Value *Counter = Builder.CreateLoad(GEP, "counter");
|
/external/llvm/include/llvm/IR/ |
Instructions.h | 701 // message on bad indexes for a gep instruction. 749 GetElementPtrInst *GEP = Create(Ptr, IdxList, NameStr, InsertBefore); 750 GEP->setIsInBounds(true); 751 return GEP; 757 GetElementPtrInst *GEP = Create(Ptr, IdxList, NameStr, InsertAtEnd); 758 GEP->setIsInBounds(true); 759 return GEP; 813 /// GetGEPReturnType - Returns the pointer type returned by the GEP 819 // Vector GEP 825 // Scalar GEP [all...] |
/external/llvm/lib/Transforms/Scalar/ |
IndVarSimplify.cpp | 140 // reassociate the GEP changing the base pointer. This is illegal because the 141 // final address produced by a GEP chain must be inbounds relative to its 147 // Retrieve the pointer operand of the GEP. Don't use GetUnderlyingObject 151 if (GEPOperator *GEP = dyn_cast<GEPOperator>(FromVal)) { 152 FromPtr = GEP->getPointerOperand(); 154 if (GEPOperator *GEP = dyn_cast<GEPOperator>(ToVal)) { 155 ToPtr = GEP->getPointerOperand(); 162 // SCEV may have rewritten an expression that produces the GEP's pointer 169 // If the GEP base pointer is a vector of pointers, abort. 178 DEBUG(dbgs() << "INDVARS: GEP rewrite bail out [all...] |
SROA.cpp | 397 /// a GEP back into the bounds using it elsewhere) and nor is the PHI, but we 690 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) { 691 if (!GEP->hasAllZeroIndices()) 692 return GEP; [all...] |
/external/llvm/tools/bugpoint/ |
Miscompilation.cpp | 836 Value *GEP = ConstantExpr::getGetElementPtr(funcName, GEPargs) [all...] |
/external/clang/lib/CodeGen/ |
CGExprAgg.cpp | 226 // Kill the GEP if we made one and it didn't end up used. [all...] |
CGExprCXX.cpp | [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
FastISel.cpp | 130 if (const GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) 131 if (GEP->hasAllZeroIndices() && !hasTrivialKill(GEP->getOperand(0))) [all...] |
/external/llvm/include/llvm/Analysis/ |
ScalarEvolution.h | 410 /// createNodeForGEP - Provide the special handling we need to analyze GEP 412 const SCEV *createNodeForGEP(GEPOperator *GEP); [all...] |
/external/llvm/lib/IR/ |
Constants.cpp | 665 /// getElementValue - Return a zero of the right value for the specified GEP 673 /// getElementValue - Return a zero of the right value for the specified GEP 698 /// getElementValue - Return an undef of the right value for the specified GEP 706 /// getElementValue - Return an undef of the right value for the specified GEP [all...] |
AsmWriter.cpp | 784 } else if (const GEPOperator *GEP = dyn_cast<GEPOperator>(U)) { 785 if (GEP->isInBounds()) [all...] |
/external/llvm/lib/Transforms/Utils/ |
SimplifyCFG.cpp | [all...] |
/external/llvm/lib/Transforms/ObjCARC/ |
ObjCARCOpts.cpp | 143 if (const GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Arg)) 144 if (GEP->hasAllZeroIndices()) 145 return FindSingleUseIdentifiedObject(GEP->getPointerOperand()); [all...] |