Searched refs:NewIdxs (Results 1 – 6 of 6) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ConstantFolding.cpp | 551 SmallVector<Constant*, 32> NewIdxs; in CastGEPIndices() local 558 NewIdxs.push_back(ConstantExpr::getCast(CastInst::getCastOpcode(Ops[i], in CastGEPIndices() 564 NewIdxs.push_back(Ops[i]); in CastGEPIndices() 569 ConstantExpr::getGetElementPtr(Ops[0], NewIdxs); in CastGEPIndices() 656 SmallVector<Constant*, 32> NewIdxs; in SymbolicallyEvaluateGEP() local 661 if (!NewIdxs.empty()) in SymbolicallyEvaluateGEP() 676 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); in SymbolicallyEvaluateGEP() 682 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)); in SymbolicallyEvaluateGEP() 691 NewIdxs.push_back(ConstantInt::get(Type::getInt32Ty(Ty->getContext()), in SymbolicallyEvaluateGEP() 709 ConstantExpr::getGetElementPtr(Ptr, NewIdxs); in SymbolicallyEvaluateGEP()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 742 SmallVector<Constant*, 32> NewIdxs; in CastGEPIndices() local 752 NewIdxs.push_back(ConstantExpr::getCast(CastInst::getCastOpcode(Ops[i], in CastGEPIndices() 758 NewIdxs.push_back(Ops[i]); in CastGEPIndices() 765 SrcElemTy, Ops[0], NewIdxs, /*InBounds=*/false, InRangeIndex); in CastGEPIndices() 890 SmallVector<Constant *, 32> NewIdxs; in SymbolicallyEvaluateGEP() local 896 if (!NewIdxs.empty()) in SymbolicallyEvaluateGEP() 917 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); in SymbolicallyEvaluateGEP() 926 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)); in SymbolicallyEvaluateGEP() 942 NewIdxs.push_back(ConstantInt::get(Type::getInt32Ty(Ty->getContext()), in SymbolicallyEvaluateGEP() 960 NewIdxs.size() > *LastIRIndex) { in SymbolicallyEvaluateGEP() [all …]
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 697 SmallVector<Constant*, 32> NewIdxs; in CastGEPIndices() local 704 NewIdxs.push_back(ConstantExpr::getCast(CastInst::getCastOpcode(Ops[i], in CastGEPIndices() 710 NewIdxs.push_back(Ops[i]); in CastGEPIndices() 716 Constant *C = ConstantExpr::getGetElementPtr(SrcElemTy, Ops[0], NewIdxs); in CastGEPIndices() 835 SmallVector<Constant *, 32> NewIdxs; in SymbolicallyEvaluateGEP() local 841 if (!NewIdxs.empty()) in SymbolicallyEvaluateGEP() 862 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0)); in SymbolicallyEvaluateGEP() 871 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx)); in SymbolicallyEvaluateGEP() 887 NewIdxs.push_back(ConstantInt::get(Type::getInt32Ty(Ty->getContext()), in SymbolicallyEvaluateGEP() 901 Constant *C = ConstantExpr::getGetElementPtr(SrcElemTy, Ptr, NewIdxs); in SymbolicallyEvaluateGEP()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | ConstantFold.cpp | 2236 SmallVector<Constant *, 8> NewIdxs; in ConstantFoldGetElementPtr() local 2300 NewIdxs.resize(Idxs.size()); in ConstantFoldGetElementPtr() 2308 NewIdxs[i - 1] ? NewIdxs[i - 1] : cast<Constant>(Idxs[i - 1]); in ConstantFoldGetElementPtr() 2329 NewIdxs[i] = ConstantExpr::getSRem(CurrIdx, Factor); in ConstantFoldGetElementPtr() 2353 NewIdxs[i - 1] = ConstantExpr::getAdd(PrevIdx, Div); in ConstantFoldGetElementPtr() 2357 if (!NewIdxs.empty()) { in ConstantFoldGetElementPtr() 2359 if (!NewIdxs[i]) NewIdxs[i] = cast<Constant>(Idxs[i]); in ConstantFoldGetElementPtr() 2360 return ConstantExpr::getGetElementPtr(PointeeTy, C, NewIdxs, InBounds, in ConstantFoldGetElementPtr()
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 2189 SmallVector<Constant *, 8> NewIdxs; in ConstantFoldGetElementPtrImpl() local 2232 NewIdxs.resize(Idxs.size()); in ConstantFoldGetElementPtrImpl() 2237 NewIdxs[i] = ConstantExpr::getSRem(CI, Factor); in ConstantFoldGetElementPtrImpl() 2256 NewIdxs[i - 1] = ConstantExpr::getAdd(PrevIdx, Div); in ConstantFoldGetElementPtrImpl() 2260 if (!NewIdxs.empty()) { in ConstantFoldGetElementPtrImpl() 2262 if (!NewIdxs[i]) NewIdxs[i] = cast<Constant>(Idxs[i]); in ConstantFoldGetElementPtrImpl() 2263 return ConstantExpr::getGetElementPtr(PointeeTy, C, NewIdxs, inBounds); in ConstantFoldGetElementPtrImpl()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 2266 SmallVector<Constant *, 8> NewIdxs; in ConstantFoldGetElementPtrImpl() local 2279 NewIdxs.resize(Idxs.size()); in ConstantFoldGetElementPtrImpl() 2282 NewIdxs[i] = ConstantExpr::getSRem(CI, Factor); in ConstantFoldGetElementPtrImpl() 2296 NewIdxs[i-1] = ConstantExpr::getAdd(PrevIdx, Div); in ConstantFoldGetElementPtrImpl() 2310 if (!NewIdxs.empty()) { in ConstantFoldGetElementPtrImpl() 2312 if (!NewIdxs[i]) NewIdxs[i] = cast<Constant>(Idxs[i]); in ConstantFoldGetElementPtrImpl() 2313 return ConstantExpr::getGetElementPtr(C, NewIdxs, inBounds); in ConstantFoldGetElementPtrImpl()
|