/external/llvm/lib/Analysis/ |
PtrUseVisitor.cpp | 30 bool detail::PtrUseVisitorBase::adjustOffsetForGEP(GetElementPtrInst &GEPI) { 34 return GEPI.accumulateConstantOffset(DL, Offset);
|
PHITransAddr.cpp | 243 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) 244 if (GEPI->getType() == GEP->getType() && 245 GEPI->getNumOperands() == GEPOps.size() && 246 GEPI->getParent()->getParent() == CurBB->getParent() && 247 (!DT || DT->dominates(GEPI->getParent(), PredBB))) { 248 if (std::equal(GEPOps.begin(), GEPOps.end(), GEPI->op_begin())) 249 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);
|
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/Analysis/ |
PtrUseVisitor.h | 163 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 249 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 250 if (GEPI.use_empty()) 254 if (!adjustOffsetForGEP(GEPI)) { 260 enqueueUsers(GEPI);
|
/prebuilts/clang/host/darwin-x86/clang-4393122/include/llvm/Analysis/ |
PtrUseVisitor.h | 163 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 249 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 250 if (GEPI.use_empty()) 254 if (!adjustOffsetForGEP(GEPI)) { 260 enqueueUsers(GEPI);
|
/prebuilts/clang/host/darwin-x86/clang-4479392/include/llvm/Analysis/ |
PtrUseVisitor.h | 163 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 249 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 250 if (GEPI.use_empty()) 254 if (!adjustOffsetForGEP(GEPI)) { 260 enqueueUsers(GEPI);
|
/prebuilts/clang/host/darwin-x86/clang-4579689/include/llvm/Analysis/ |
PtrUseVisitor.h | 176 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 264 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 265 if (GEPI.use_empty()) 269 if (!adjustOffsetForGEP(GEPI)) { 275 enqueueUsers(GEPI);
|
/prebuilts/clang/host/darwin-x86/clang-4630689/include/llvm/Analysis/ |
PtrUseVisitor.h | 176 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 264 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 265 if (GEPI.use_empty()) 269 if (!adjustOffsetForGEP(GEPI)) { 275 enqueueUsers(GEPI);
|
/prebuilts/clang/host/darwin-x86/clang-4639204/include/llvm/Analysis/ |
PtrUseVisitor.h | 176 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 264 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 265 if (GEPI.use_empty()) 269 if (!adjustOffsetForGEP(GEPI)) { 275 enqueueUsers(GEPI);
|
/prebuilts/clang/host/darwin-x86/clang-4691093/include/llvm/Analysis/ |
PtrUseVisitor.h | 176 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 264 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 265 if (GEPI.use_empty()) 269 if (!adjustOffsetForGEP(GEPI)) { 275 enqueueUsers(GEPI);
|
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/Analysis/ |
PtrUseVisitor.h | 163 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 249 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 250 if (GEPI.use_empty()) 254 if (!adjustOffsetForGEP(GEPI)) { 260 enqueueUsers(GEPI);
|
/prebuilts/clang/host/linux-x86/clang-4393122/include/llvm/Analysis/ |
PtrUseVisitor.h | 163 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 249 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 250 if (GEPI.use_empty()) 254 if (!adjustOffsetForGEP(GEPI)) { 260 enqueueUsers(GEPI);
|
/prebuilts/clang/host/linux-x86/clang-4479392/include/llvm/Analysis/ |
PtrUseVisitor.h | 163 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 249 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 250 if (GEPI.use_empty()) 254 if (!adjustOffsetForGEP(GEPI)) { 260 enqueueUsers(GEPI);
|
/prebuilts/clang/host/linux-x86/clang-4579689/include/llvm/Analysis/ |
PtrUseVisitor.h | 176 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 264 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 265 if (GEPI.use_empty()) 269 if (!adjustOffsetForGEP(GEPI)) { 275 enqueueUsers(GEPI);
|
/prebuilts/clang/host/linux-x86/clang-4630689/include/llvm/Analysis/ |
PtrUseVisitor.h | 176 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 264 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 265 if (GEPI.use_empty()) 269 if (!adjustOffsetForGEP(GEPI)) { 275 enqueueUsers(GEPI);
|
/prebuilts/clang/host/linux-x86/clang-4639204/include/llvm/Analysis/ |
PtrUseVisitor.h | 176 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 264 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 265 if (GEPI.use_empty()) 269 if (!adjustOffsetForGEP(GEPI)) { 275 enqueueUsers(GEPI);
|
/prebuilts/clang/host/linux-x86/clang-4691093/include/llvm/Analysis/ |
PtrUseVisitor.h | 176 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 264 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { 265 if (GEPI.use_empty()) 269 if (!adjustOffsetForGEP(GEPI)) { 275 enqueueUsers(GEPI);
|
/external/llvm/lib/Transforms/IPO/ |
GlobalOpt.cpp | 337 GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I); 338 if (!GEPI) return false; 340 if (GEPI->getNumOperands() < 3 || !isa<Constant>(GEPI->getOperand(1)) || 341 !cast<Constant>(GEPI->getOperand(1))->isNullValue()) 344 for (User *U : GEPI->users()) 369 gep_type_iterator GEPI = gep_type_begin(U), E = gep_type_end(U); 370 ++GEPI; // Skip over the pointer index. 373 if (ArrayType *AT = dyn_cast<ArrayType>(*GEPI)) { 390 for (++GEPI; // Skip array index [all...] |
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
GlobalOpt.cpp | 397 GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I); 398 if (GEPI == 0) return false; 400 if (GEPI->getNumOperands() < 3 || !isa<Constant>(GEPI->getOperand(1)) || 401 !cast<Constant>(GEPI->getOperand(1))->isNullValue()) 404 for (Value::use_iterator I = GEPI->use_begin(), E = GEPI->use_end(); 431 gep_type_iterator GEPI = gep_type_begin(U), E = gep_type_end(U); 432 ++GEPI; // Skip over the pointer index. 435 if (ArrayType *AT = dyn_cast<ArrayType>(*GEPI)) { [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineLoadStoreAlloca.cpp | 700 static bool canReplaceGEPIdxWithZero(InstCombiner &IC, GetElementPtrInst *GEPI, 702 if (GEPI->getNumOperands() < 2) 707 auto FirstNZIdx = [](const GetElementPtrInst *GEPI) { 709 for (unsigned IE = GEPI->getNumOperands(); I != IE; ++I) { 710 Value *V = GEPI->getOperand(I); 723 Idx = FirstNZIdx(GEPI); 724 if (Idx == GEPI->getNumOperands()) 726 if (isa<Constant>(GEPI->getOperand(Idx))) 729 SmallVector<Value *, 4> Ops(GEPI->idx_begin(), GEPI->idx_begin() + Idx) [all...] |
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
PHITransAddr.cpp | 242 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(*UI)) 243 if (GEPI->getType() == GEP->getType() && 244 GEPI->getNumOperands() == GEPOps.size() && 245 GEPI->getParent()->getParent() == CurBB->getParent() && 246 (!DT || DT->dominates(GEPI->getParent(), PredBB))) { 249 if (GEPI->getOperand(i) != GEPOps[i]) { 254 return GEPI;
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
ScalarReplAggregates.cpp | 130 void isSafeGEP(GetElementPtrInst *GEPI, uint64_t &Offset, AllocaInfo &Info); 146 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset, [all...] |
CodeGenPrepare.cpp | [all...] |
/external/llvm/lib/Target/NVPTX/ |
NVPTXFavorNonGenericAddrSpaces.cpp | 161 if (Instruction *GEPI = dyn_cast<Instruction>(GEP)) { 168 "", GEPI); 171 NewASC = new AddrSpaceCastInst(NewGEP, GEP->getType(), "", GEPI);
|
/external/llvm/lib/Transforms/Scalar/ |
Scalarizer.cpp | 439 bool Scalarizer::visitGetElementPtrInst(GetElementPtrInst &GEPI) { 440 VectorType *VT = dyn_cast<VectorType>(GEPI.getType()); 444 IRBuilder<> Builder(&GEPI); 446 unsigned NumIndices = GEPI.getNumIndices(); 448 Scatterer Base = scatter(&GEPI, GEPI.getOperand(0)); 453 Ops[I] = scatter(&GEPI, GEPI.getOperand(I + 1)); 462 Res[I] = Builder.CreateGEP(GEPI.getSourceElementType(), Base[I], Indices, 463 GEPI.getName() + ".i" + Twine(I)) [all...] |