Searched refs:NewIdxs (Results 1 - 2 of 2) sorted by relevance

/freebsd-11.0-release/contrib/llvm/lib/Analysis/
H A DConstantFolding.cpp683 SmallVector<Constant*, 32> NewIdxs; local
692 NewIdxs.push_back(ConstantExpr::getCast(CastInst::getCastOpcode(Ops[i],
698 NewIdxs.push_back(Ops[i]);
704 Constant *C = ConstantExpr::getGetElementPtr(SrcTy, Ops[0], NewIdxs);
813 SmallVector<Constant *, 32> NewIdxs; local
819 if (!NewIdxs.empty())
833 NewIdxs.push_back(ConstantInt::get(IntPtrTy, 0));
839 NewIdxs.push_back(ConstantInt::get(IntPtrTy, NewIdx));
855 NewIdxs.push_back(ConstantInt::get(Type::getInt32Ty(Ty->getContext()),
872 Constant *C = ConstantExpr::getGetElementPtr(SrcTy, Ptr, NewIdxs);
[all...]
/freebsd-11.0-release/contrib/llvm/lib/IR/
H A DConstantFold.cpp2169 SmallVector<Constant *, 8> NewIdxs; local
2182 NewIdxs.resize(Idxs.size());
2190 NewIdxs[i] = ConstantExpr::getSRem(CI, Factor);
2210 NewIdxs[i-1] = ConstantExpr::getAdd(PrevIdx, Div);
2224 if (!NewIdxs.empty()) {
2226 if (!NewIdxs[i]) NewIdxs[i] = cast<Constant>(Idxs[i]);
2227 return ConstantExpr::getGetElementPtr(PointeeTy, C, NewIdxs, inBounds);

Completed in 78 milliseconds