Lines Matching refs:ConstantExpr

221     C = ConstantExpr::getIntToPtr(C, PTy);  in getIntegerValue()
309 SmallPtrSetImpl<const ConstantExpr *> &NonTrappingOps) { in canTrapImpl()
312 const ConstantExpr *CE = dyn_cast<ConstantExpr>(C); in canTrapImpl()
318 if (ConstantExpr *Op = dyn_cast<ConstantExpr>(CE->getOperand(i))) { in canTrapImpl()
344 SmallPtrSet<const ConstantExpr *, 4> NonTrappingOps; in canTrap()
432 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(this)) in getRelocationInfo()
434 ConstantExpr *LHS = dyn_cast<ConstantExpr>(CE->getOperand(0)); in getRelocationInfo()
435 ConstantExpr *RHS = dyn_cast<ConstantExpr>(CE->getOperand(1)); in getRelocationInfo()
1145 bool ConstantExpr::isCast() const { in isCast()
1149 bool ConstantExpr::isCompare() const { in isCompare()
1153 bool ConstantExpr::isGEPWithNoNotionalOverIndexing() const { in isGEPWithNoNotionalOverIndexing()
1178 bool ConstantExpr::hasIndices() const { in hasIndices()
1183 ArrayRef<unsigned> ConstantExpr::getIndices() const { in getIndices()
1191 unsigned ConstantExpr::getPredicate() const { in getPredicate()
1199 ConstantExpr::getWithOperandReplaced(unsigned OpNo, Constant *Op) const { in getWithOperandReplaced()
1203 return const_cast<ConstantExpr*>(this); in getWithOperandReplaced()
1215 Constant *ConstantExpr::getWithOperands(ArrayRef<Constant *> Ops, Type *Ty, in getWithOperands()
1221 return const_cast<ConstantExpr*>(this); in getWithOperands()
1238 return ConstantExpr::getCast(getOpcode(), Ops[0], Ty, OnlyIfReduced); in getWithOperands()
1240 return ConstantExpr::getSelect(Ops[0], Ops[1], Ops[2], OnlyIfReducedTy); in getWithOperands()
1242 return ConstantExpr::getInsertElement(Ops[0], Ops[1], Ops[2], in getWithOperands()
1245 return ConstantExpr::getExtractElement(Ops[0], Ops[1], OnlyIfReducedTy); in getWithOperands()
1247 return ConstantExpr::getInsertValue(Ops[0], Ops[1], getIndices(), in getWithOperands()
1250 return ConstantExpr::getExtractValue(Ops[0], getIndices(), OnlyIfReducedTy); in getWithOperands()
1252 return ConstantExpr::getShuffleVector(Ops[0], Ops[1], Ops[2], in getWithOperands()
1255 return ConstantExpr::getGetElementPtr(nullptr, Ops[0], Ops.slice(1), in getWithOperands()
1260 return ConstantExpr::getCompare(getPredicate(), Ops[0], Ops[1], in getWithOperands()
1264 return ConstantExpr::get(getOpcode(), Ops[0], Ops[1], SubclassOptionalData, in getWithOperands()
1566 Constant *ConstantExpr::getCast(unsigned oc, Constant *C, Type *Ty, in getCast()
1605 Constant *ConstantExpr::getZExtOrBitCast(Constant *C, Type *Ty) { in getZExtOrBitCast()
1611 Constant *ConstantExpr::getSExtOrBitCast(Constant *C, Type *Ty) { in getSExtOrBitCast()
1617 Constant *ConstantExpr::getTruncOrBitCast(Constant *C, Type *Ty) { in getTruncOrBitCast()
1623 Constant *ConstantExpr::getPointerCast(Constant *S, Type *Ty) { in getPointerCast()
1638 Constant *ConstantExpr::getPointerBitCastOrAddrSpaceCast(Constant *S, in getPointerBitCastOrAddrSpaceCast()
1649 Constant *ConstantExpr::getIntegerCast(Constant *C, Type *Ty, in getIntegerCast()
1662 Constant *ConstantExpr::getFPCast(Constant *C, Type *Ty) { in getFPCast()
1674 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc()
1688 Constant *ConstantExpr::getSExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSExt()
1702 Constant *ConstantExpr::getZExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getZExt()
1716 Constant *ConstantExpr::getFPTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPTrunc()
1728 Constant *ConstantExpr::getFPExtend(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPExtend()
1740 Constant *ConstantExpr::getUIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getUIToFP()
1751 Constant *ConstantExpr::getSIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSIToFP()
1762 Constant *ConstantExpr::getFPToUI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToUI()
1773 Constant *ConstantExpr::getFPToSI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToSI()
1784 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy, in getPtrToInt()
1797 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy, in getIntToPtr()
1810 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy, in getBitCast()
1822 Constant *ConstantExpr::getAddrSpaceCast(Constant *C, Type *DstTy, in getAddrSpaceCast()
1843 Constant *ConstantExpr::get(unsigned Opcode, Constant *C1, Constant *C2, in get()
1923 Constant *ConstantExpr::getSizeOf(Type* Ty) { in getSizeOf()
1933 Constant *ConstantExpr::getAlignOf(Type* Ty) { in getAlignOf()
1947 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { in getOffsetOf()
1952 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf()
1965 Constant *ConstantExpr::getCompare(unsigned short Predicate, Constant *C1, in getCompare()
1987 Constant *ConstantExpr::getSelect(Constant *C, Constant *V1, Constant *V2, in getSelect()
2004 Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C, in getGetElementPtr()
2046 Constant *ConstantExpr::getICmp(unsigned short pred, Constant *LHS, in getICmp()
2071 Constant *ConstantExpr::getFCmp(unsigned short pred, Constant *LHS, in getFCmp()
2095 Constant *ConstantExpr::getExtractElement(Constant *Val, Constant *Idx, in getExtractElement()
2117 Constant *ConstantExpr::getInsertElement(Constant *Val, Constant *Elt, in getInsertElement()
2140 Constant *ConstantExpr::getShuffleVector(Constant *V1, Constant *V2, in getShuffleVector()
2163 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue()
2187 Constant *ConstantExpr::getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, in getExtractValue()
2211 Constant *ConstantExpr::getNeg(Constant *C, bool HasNUW, bool HasNSW) { in getNeg()
2218 Constant *ConstantExpr::getFNeg(Constant *C) { in getFNeg()
2224 Constant *ConstantExpr::getNot(Constant *C) { in getNot()
2230 Constant *ConstantExpr::getAdd(Constant *C1, Constant *C2, in getAdd()
2237 Constant *ConstantExpr::getFAdd(Constant *C1, Constant *C2) { in getFAdd()
2241 Constant *ConstantExpr::getSub(Constant *C1, Constant *C2, in getSub()
2248 Constant *ConstantExpr::getFSub(Constant *C1, Constant *C2) { in getFSub()
2252 Constant *ConstantExpr::getMul(Constant *C1, Constant *C2, in getMul()
2259 Constant *ConstantExpr::getFMul(Constant *C1, Constant *C2) { in getFMul()
2263 Constant *ConstantExpr::getUDiv(Constant *C1, Constant *C2, bool isExact) { in getUDiv()
2268 Constant *ConstantExpr::getSDiv(Constant *C1, Constant *C2, bool isExact) { in getSDiv()
2273 Constant *ConstantExpr::getFDiv(Constant *C1, Constant *C2) { in getFDiv()
2277 Constant *ConstantExpr::getURem(Constant *C1, Constant *C2) { in getURem()
2281 Constant *ConstantExpr::getSRem(Constant *C1, Constant *C2) { in getSRem()
2285 Constant *ConstantExpr::getFRem(Constant *C1, Constant *C2) { in getFRem()
2289 Constant *ConstantExpr::getAnd(Constant *C1, Constant *C2) { in getAnd()
2293 Constant *ConstantExpr::getOr(Constant *C1, Constant *C2) { in getOr()
2297 Constant *ConstantExpr::getXor(Constant *C1, Constant *C2) { in getXor()
2301 Constant *ConstantExpr::getShl(Constant *C1, Constant *C2, in getShl()
2308 Constant *ConstantExpr::getLShr(Constant *C1, Constant *C2, bool isExact) { in getLShr()
2313 Constant *ConstantExpr::getAShr(Constant *C1, Constant *C2, bool isExact) { in getAShr()
2321 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty) { in getBinOpIdentity()
2344 Constant *ConstantExpr::getBinOpAbsorber(unsigned Opcode, Type *Ty) { in getBinOpAbsorber()
2361 void ConstantExpr::destroyConstant() { in destroyConstant()
2366 const char *ConstantExpr::getOpcodeName() const { in getOpcodeName()
2375 : ConstantExpr(DestTy, Instruction::GetElementPtr, in GetElementPtrConstantExpr()
2946 void ConstantExpr::replaceUsesOfWithOnConstant(Value *From, Value *ToV, in replaceUsesOfWithOnConstant()
2974 Instruction *ConstantExpr::getAsInstruction() { in getAsInstruction()