HomeSort by relevance Sort by last modified time
    Searched refs:GEPI (Results 1 - 15 of 15) sorted by null

  /external/llvm/lib/Analysis/
PtrUseVisitor.cpp 30 bool detail::PtrUseVisitorBase::adjustOffsetForGEP(GetElementPtrInst &GEPI) {
34 return GEPI.accumulateConstantOffset(DL, Offset);
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/
PtrUseVisitor.h 163 bool adjustOffsetForGEP(GetElementPtrInst &GEPI);
246 void visitGetElementPtrInst(GetElementPtrInst &GEPI) {
247 if (GEPI.use_empty())
251 if (!adjustOffsetForGEP(GEPI)) {
257 enqueueUsers(GEPI);
  /external/llvm/lib/Target/NVPTX/
NVPTXFavorNonGenericAddrSpaces.cpp 121 if (Instruction *GEPI = dyn_cast<Instruction>(GEP)) {
128 GEP->getName(), GEPI);
131 new AddrSpaceCastInst(NewGEPI, GEP->getType(), "", GEPI));
  /external/llvm/lib/Transforms/InstCombine/
InstCombineLoadStoreAlloca.cpp 584 static bool canReplaceGEPIdxWithZero(InstCombiner &IC, GetElementPtrInst *GEPI,
586 if (GEPI->getNumOperands() < 2)
591 auto FirstNZIdx = [](const GetElementPtrInst *GEPI) {
593 for (unsigned IE = GEPI->getNumOperands(); I != IE; ++I) {
594 Value *V = GEPI->getOperand(I);
607 Idx = FirstNZIdx(GEPI);
608 if (Idx == GEPI->getNumOperands())
610 if (isa<Constant>(GEPI->getOperand(Idx)))
613 SmallVector<Value *, 4> Ops(GEPI->idx_begin(), GEPI->idx_begin() + Idx)
    [all...]
  /external/llvm/lib/Transforms/IPO/
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; // Skip array index
    [all...]
  /external/llvm/lib/Transforms/Scalar/
ScalarReplAggregates.cpp 157 void isSafeGEP(GetElementPtrInst *GEPI, uint64_t &Offset, AllocaInfo &Info);
174 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset,
    [all...]
Scalarizer.cpp 430 bool Scalarizer::visitGetElementPtrInst(GetElementPtrInst &GEPI) {
431 VectorType *VT = dyn_cast<VectorType>(GEPI.getType());
435 IRBuilder<> Builder(GEPI.getParent(), &GEPI);
437 unsigned NumIndices = GEPI.getNumIndices();
439 Scatterer Base = scatter(&GEPI, GEPI.getOperand(0));
444 Ops[I] = scatter(&GEPI, GEPI.getOperand(I + 1));
453 Res[I] = Builder.CreateGEP(GEPI.getSourceElementType(), Base[I], Indices
    [all...]
SROA.cpp 691 void visitGetElementPtrInst(GetElementPtrInst &GEPI) {
692 if (GEPI.use_empty())
693 return markAsDead(GEPI);
695 if (SROAStrictInbounds && GEPI.isInBounds()) {
704 const DataLayout &DL = GEPI.getModule()->getDataLayout();
705 for (gep_type_iterator GTI = gep_type_begin(GEPI),
706 GTE = gep_type_end(GEPI);
730 return markAsDead(GEPI);
734 return Base::visitGetElementPtrInst(GEPI);
    [all...]
  /external/llvm/lib/Transforms/Utils/
PromoteMemoryToRegister.cpp 89 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) {
90 if (GEPI->getType() != Type::getInt8PtrTy(U->getContext(), AS))
92 if (!GEPI->hasAllZeroIndices())
94 if (!onlyUsedByLifetimeMarkers(GEPI))
    [all...]
  /external/llvm/lib/CodeGen/
CodeGenPrepare.cpp     [all...]
  /external/llvm/lib/IR/
Instructions.cpp     [all...]
Constants.cpp     [all...]
  /external/llvm/lib/Transforms/Instrumentation/
DataFlowSanitizer.cpp 332 void visitGetElementPtrInst(GetElementPtrInst &GEPI);
    [all...]
  /external/llvm/include/llvm/IR/
Instructions.h 795 GetElementPtrInst(const GetElementPtrInst &GEPI);
    [all...]

Completed in 471 milliseconds