/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 733 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()
|
D | InstCombineCasts.cpp | 1357 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()
|
D | InstCombine.h | 206 SmallVectorImpl<Value*> &NewIndices);
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 929 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()
|
D | InstCombineInternal.h | 355 SmallVectorImpl<Value *> &NewIndices);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1045 SmallVectorImpl<Value *> &NewIndices) { in FindElementAtOffset() argument 1068 NewIndices.push_back(ConstantInt::get(IndexTy, FirstIdx)); in FindElementAtOffset() 1082 NewIndices.push_back(ConstantInt::get(Type::getInt32Ty(Ty->getContext()), in FindElementAtOffset() 1090 NewIndices.push_back(ConstantInt::get(IndexTy,Offset/EltSize)); in FindElementAtOffset() 2004 SmallVector<Value*, 8> NewIndices; in visitGetElementPtrInst() local 2005 if (FindElementAtOffset(SrcType, Offset.getSExtValue(), NewIndices)) { in visitGetElementPtrInst() 2008 ? Builder.CreateInBoundsGEP(nullptr, SrcOp, NewIndices) in visitGetElementPtrInst() 2009 : Builder.CreateGEP(nullptr, SrcOp, NewIndices); in visitGetElementPtrInst()
|
D | InstCombineInternal.h | 435 SmallVectorImpl<Value *> &NewIndices);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | ConstantFold.cpp | 2161 SmallVector<Value*, 16> NewIndices; in ConstantFoldGetElementPtr() local 2162 NewIndices.reserve(Idxs.size() + CE->getNumOperands()); in ConstantFoldGetElementPtr() 2163 NewIndices.append(CE->op_begin() + 1, CE->op_end() - 1); in ConstantFoldGetElementPtr() 2188 NewIndices.push_back(Combined); in ConstantFoldGetElementPtr() 2189 NewIndices.append(Idxs.begin() + 1, Idxs.end()); in ConstantFoldGetElementPtr() 2200 NewIndices, InBounds && cast<GEPOperator>(CE)->isInBounds(), in ConstantFoldGetElementPtr()
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 2124 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/ |
D | ConstantFold.cpp | 2213 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()
|