Home
last modified time | relevance | path

Searched refs:NewIdxs (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Analysis/
DConstantFolding.cpp551 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/llvm/lib/Analysis/
DConstantFolding.cpp697 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/llvm/lib/IR/
DConstantFold.cpp2189 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/
DConstantFold.cpp2266 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()