Home
last modified time | relevance | path

Searched refs:GepInst (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/Instrumentation/
DEfficiencySanitizer.cpp734 GetElementPtrInst *GepInst = dyn_cast<GetElementPtrInst>(I); in instrumentGetElementPtr() local
736 if (GepInst == nullptr || GepInst->getNumIndices() == 1) { in instrumentGetElementPtr()
740 Type *SourceTy = GepInst->getSourceElementType(); in instrumentGetElementPtr()
746 Idx = dyn_cast<ConstantInt>(GepInst->getOperand(1)); in instrumentGetElementPtr()
753 for (unsigned i = 1; i < GepInst->getNumIndices(); ++i) { in instrumentGetElementPtr()
754 SmallVector<Value *, 8> IdxVec(GepInst->idx_begin(), in instrumentGetElementPtr()
755 GepInst->idx_begin() + i); in instrumentGetElementPtr()
770 Idx = cast<ConstantInt>(GepInst->getOperand(i+1)); in instrumentGetElementPtr()
/external/llvm-project/polly/lib/Support/
DScopHelper.cpp575 if (auto *GepInst = dyn_cast<GetElementPtrInst>(Ptr)) { in isHoistableLoad() local
576 if (!hasVariantIndex(GepInst, L, R, SE)) { in isHoistableLoad()
578 dyn_cast<LoadInst>(GepInst->getPointerOperand())) { in isHoistableLoad()