HomeSort by relevance Sort by last modified time
    Searched defs:GEP (Results 1 - 21 of 21) sorted by null

  /external/llvm/lib/Target/NVPTX/
NVVMReflect.cpp 162 const ConstantExpr *GEP = cast<ConstantExpr>(str);
164 const Value *Sym = GEP->getOperand(0);
  /external/llvm/unittests/Transforms/Utils/
Cloning.cpp 132 GetElementPtrInst *GEP = GetElementPtrInst::Create(V, ops);
133 EXPECT_FALSE(this->clone(GEP)->isInBounds());
135 GEP->setIsInBounds();
136 EXPECT_TRUE(this->clone(GEP)->isInBounds());
  /external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
R600KernelParameters.cpp 159 getElementPtrInst* GEP = dyn_cast<getElementPtrInst>(Val);
160 getElementPtrInst::op_iterator I = GEP->op_begin();
162 for (++I; I != GEP->op_end(); ++I) {
247 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V);
257 if (GEP && GEP->getType()->getAddressSpace() != Addrspace) {
258 Value *Op = GEP->getPointerOperand();
266 std::vector<Value*> Params(GEP->idx_begin(), GEP->idx_end());
270 GEP2->setIsInBounds(GEP->isInBounds())
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineLoadStoreAlloca.cpp 69 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) {
70 // If the GEP has all zero indices, it doesn't offset the pointer. If it
73 GEP, TheCopy, ToDelete, IsOffset || !GEP->hasAllZeroIndices()))
187 Instruction *GEP =
189 InsertNewInstBefore(GEP, *It);
193 return ReplaceInstUsesWith(AI, GEP);
300 // see if a trivial 'gep P, 0, 0' will help matters. Only do this for
370 // load(gep null, ...) -> unreachable
462 /// NewGEPIndices - If SrcPTy is an aggregate type, we can emit a "noop gep"
    [all...]
InstCombinePHI.cpp 135 // This is true if all GEP bases are allocas and if all indices into them are
148 GetElementPtrInst *GEP= dyn_cast<GetElementPtrInst>(PN.getIncomingValue(i));
149 if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() ||
150 GEP->getNumOperands() != FirstInst->getNumOperands())
153 AllInBounds &= GEP->isInBounds();
157 (!isa<AllocaInst>(GEP->getOperand(0)) ||
158 !GEP->hasAllConstantIndices()))
163 if (FirstInst->getOperand(op) == GEP->getOperand(op)
    [all...]
InstCombineVectorOps.cpp 640 GetElementPtrInst *GEP = GetElementPtrInst::Create(Ptr, Idx, "", I);
641 GEP->setIsInBounds(cast<GetElementPtrInst>(I)->isInBounds());
642 return GEP;
    [all...]
InstructionCombining.cpp 96 Value *InstCombiner::EmitGEPOffset(User *GEP) {
97 return llvm::EmitGEPOffset(Builder, *getDataLayout(), GEP);
759 /// or not there is a sequence of GEP indices into the type that will land us at
819 static bool shouldMergeGEPs(GEPOperator &GEP, GEPOperator &Src) {
820 // If this GEP has only 0 indices, it is the same pointer as
821 // Src. If Src is not a trivial GEP too, don't combine
823 if (GEP.hasAllZeroIndices() && !Src.hasAllZeroIndices() &&
    [all...]
  /external/llvm/lib/Transforms/Scalar/
GlobalMerge.cpp 185 Constant *GEP = ConstantExpr::getInBoundsGetElementPtr(MergedGV, Idx);
186 Globals[k]->replaceAllUsesWith(GEP);
SROA.cpp 290 /// a GEP back into the bounds using it elsewhere) and nor is the PHI, but we
563 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) {
564 if (!GEP->hasAllZeroIndices())
565 return GEP;
    [all...]
  /external/mesa3d/src/gallium/drivers/radeon/
R600KernelParameters.cpp 159 getElementPtrInst* GEP = dyn_cast<getElementPtrInst>(Val);
160 getElementPtrInst::op_iterator I = GEP->op_begin();
162 for (++I; I != GEP->op_end(); ++I) {
247 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V);
257 if (GEP && GEP->getType()->getAddressSpace() != Addrspace) {
258 Value *Op = GEP->getPointerOperand();
266 std::vector<Value*> Params(GEP->idx_begin(), GEP->idx_end());
270 GEP2->setIsInBounds(GEP->isInBounds())
    [all...]
  /external/llvm/lib/Transforms/IPO/
ArgumentPromotion.cpp 73 /// A vector used to hold the indices of a single GEP instruction
311 // We can only promote this argument if all of the uses are loads, or are GEP
345 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V)) {
346 V = GEP->getPointerOperand();
349 Indices.reserve(GEP->getNumIndices());
350 for (User::op_iterator II = GEP->idx_begin(), IE = GEP->idx_end();
355 // We found a non-constant GEP index for this argument? Bail out
364 // Direct loads are equivalent to a GEP with a single 0 index.
370 // not (GEP+)loads, or any (GEP+)loads that are not safe to promote
    [all...]
GlobalOpt.cpp 270 // PHI nodes we can check just like select or GEP instructions, but we
369 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) {
370 if (!GEP->hasAllConstantIndices())
505 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) {
506 // Do not transform "gepinst (gep constexpr (GV))" here, because forming
507 // "gepconstexpr (gep constexpr (GV))" will cause the two gep's to fold
510 if (!isa<ConstantExpr>(GEP->getOperand(0))) {
512 dyn_cast_or_null<ConstantExpr>(ConstantFoldInstruction(GEP, TD, TLI));
516 // If the initializer is an all-null value and we have an inbounds GEP,
    [all...]
  /external/llvm/lib/Transforms/Utils/
CodeExtractor.cpp 366 GetElementPtrInst *GEP =
368 RewriteVal = new LoadInst(GEP, "loadgep_" + inputs[i]->getName(), TI);
468 GetElementPtrInst *GEP =
471 codeReplacer->getInstList().push_back(GEP);
472 StoreInst *SI = new StoreInst(StructValues[i], GEP);
494 GetElementPtrInst *GEP
497 codeReplacer->getInstList().push_back(GEP);
498 Output = GEP;
609 GetElementPtrInst *GEP =
613 new StoreInst(outputs[out], GEP, NTRet)
    [all...]
SimplifyCFG.cpp     [all...]
  /external/llvm/tools/bugpoint/
Miscompilation.cpp     [all...]
  /external/llvm/lib/Analysis/
ScalarEvolutionExpander.cpp 336 /// into GEP indices.
369 /// a GEP instead of using ptrtoint+arithmetic+inttoptr. This helps
410 // operands into GEP indices, at each level. The first index in a GEP
512 // If none of the operands were convertible to proper GEP indices, cast
526 // Fold a GEP with constant operands.
531 // Do a quick scan to see if we have this GEP nearby. If so, reuse it.
564 // Emit a GEP.
565 Value *GEP = Builder.CreateGEP(V, Idx, "uglygep");
566 rememberInstruction(GEP);
    [all...]
  /external/llvm/lib/Transforms/Instrumentation/
GCOVProfiling.cpp 816 Value *GEP = Builder.CreateGEP(Arg, ZExtPred);
817 Value *Counter = Builder.CreateLoad(GEP, "counter");
  /external/clang/lib/CodeGen/
CGExprCXX.cpp     [all...]
  /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/IR/
Constants.cpp 670 /// getElementValue - Return a zero of the right value for the specified GEP
678 /// getElementValue - Return a zero of the right value for the specified GEP
703 /// getElementValue - Return an undef of the right value for the specified GEP
711 /// getElementValue - Return an undef of the right value for the specified GEP
    [all...]
Verifier.cpp 292 void visitGetElementPtrInst(GetElementPtrInst &GEP);
    [all...]

Completed in 1193 milliseconds