Home
last modified time | relevance | path

Searched refs:NewIndices (Results 1 – 7 of 7) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstructionCombining.cpp733 SmallVectorImpl<Value*> &NewIndices) { in FindElementAtOffset() argument
755 NewIndices.push_back(ConstantInt::get(IntPtrTy, FirstIdx)); in FindElementAtOffset()
769 NewIndices.push_back(ConstantInt::get(Type::getInt32Ty(Ty->getContext()), in FindElementAtOffset()
777 NewIndices.push_back(ConstantInt::get(IntPtrTy,Offset/EltSize)); in FindElementAtOffset()
1074 SmallVector<Value*, 8> NewIndices; in visitGetElementPtrInst() local
1077 if (FindElementAtOffset(InTy, Offset, NewIndices)) { in visitGetElementPtrInst()
1079 Builder->CreateInBoundsGEP(BCI->getOperand(0), NewIndices) : in visitGetElementPtrInst()
1080 Builder->CreateGEP(BCI->getOperand(0), NewIndices); in visitGetElementPtrInst()
DInstCombineCasts.cpp1357 SmallVector<Value*, 8> NewIndices; in commonPointerCastTransforms() local
1358 if (FindElementAtOffset(GEPIdxTy, Offset, NewIndices)) { in commonPointerCastTransforms()
1363 Builder->CreateInBoundsGEP(OrigBase, NewIndices) : in commonPointerCastTransforms()
1364 Builder->CreateGEP(OrigBase, NewIndices); in commonPointerCastTransforms()
DInstCombine.h206 SmallVectorImpl<Value*> &NewIndices);
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp929 SmallVectorImpl<Value *> &NewIndices) { in FindElementAtOffset() argument
952 NewIndices.push_back(ConstantInt::get(IntPtrTy, FirstIdx)); in FindElementAtOffset()
966 NewIndices.push_back(ConstantInt::get(Type::getInt32Ty(Ty->getContext()), in FindElementAtOffset()
974 NewIndices.push_back(ConstantInt::get(IntPtrTy,Offset/EltSize)); in FindElementAtOffset()
1834 SmallVector<Value*, 8> NewIndices; in visitGetElementPtrInst() local
1835 if (FindElementAtOffset(OpType, Offset.getSExtValue(), NewIndices)) { in visitGetElementPtrInst()
1838 ? Builder->CreateInBoundsGEP(nullptr, Operand, NewIndices) in visitGetElementPtrInst()
1839 : Builder->CreateGEP(nullptr, Operand, NewIndices); in visitGetElementPtrInst()
DInstCombineInternal.h355 SmallVectorImpl<Value *> &NewIndices);
/external/llvm/lib/IR/
DConstantFold.cpp2124 SmallVector<Value*, 16> NewIndices; in ConstantFoldGetElementPtrImpl() local
2125 NewIndices.reserve(Idxs.size() + CE->getNumOperands()); in ConstantFoldGetElementPtrImpl()
2126 NewIndices.append(CE->op_begin() + 1, CE->op_end() - 1); in ConstantFoldGetElementPtrImpl()
2151 NewIndices.push_back(Combined); in ConstantFoldGetElementPtrImpl()
2152 NewIndices.append(Idxs.begin() + 1, Idxs.end()); in ConstantFoldGetElementPtrImpl()
2155 NewIndices, inBounds && cast<GEPOperator>(CE)->isInBounds()); in ConstantFoldGetElementPtrImpl()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp2213 SmallVector<Value*, 16> NewIndices; in ConstantFoldGetElementPtrImpl() local
2214 NewIndices.reserve(Idxs.size() + CE->getNumOperands()); in ConstantFoldGetElementPtrImpl()
2216 NewIndices.push_back(CE->getOperand(i)); in ConstantFoldGetElementPtrImpl()
2235 NewIndices.push_back(Combined); in ConstantFoldGetElementPtrImpl()
2236 NewIndices.append(Idxs.begin() + 1, Idxs.end()); in ConstantFoldGetElementPtrImpl()
2238 ConstantExpr::getGetElementPtr(CE->getOperand(0), NewIndices, in ConstantFoldGetElementPtrImpl()