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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DEfficiencySanitizer.cpp748 GetElementPtrInst *GepInst = dyn_cast<GetElementPtrInst>(I); in instrumentGetElementPtr() local
750 if (GepInst == nullptr || GepInst->getNumIndices() == 1) { in instrumentGetElementPtr()
754 Type *SourceTy = GepInst->getSourceElementType(); in instrumentGetElementPtr()
760 Idx = dyn_cast<ConstantInt>(GepInst->getOperand(1)); in instrumentGetElementPtr()
767 for (unsigned i = 1; i < GepInst->getNumIndices(); ++i) { in instrumentGetElementPtr()
768 SmallVector<Value *, 8> IdxVec(GepInst->idx_begin(), in instrumentGetElementPtr()
769 GepInst->idx_begin() + i); in instrumentGetElementPtr()
784 Idx = cast<ConstantInt>(GepInst->getOperand(i+1)); in instrumentGetElementPtr()