Lines Matching refs:ConstantExpr
240 C = ConstantExpr::getIntToPtr(C, PTy); in getIntegerValue()
329 SmallPtrSetImpl<const ConstantExpr *> &NonTrappingOps) { in canTrapImpl()
332 const ConstantExpr *CE = dyn_cast<ConstantExpr>(C); in canTrapImpl()
338 if (ConstantExpr *Op = dyn_cast<ConstantExpr>(CE->getOperand(i))) { in canTrapImpl()
362 SmallPtrSet<const ConstantExpr *, 4> NonTrappingOps; in canTrap()
428 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(this)) in needsRelocation()
430 ConstantExpr *LHS = dyn_cast<ConstantExpr>(CE->getOperand(0)); in needsRelocation()
431 ConstantExpr *RHS = dyn_cast<ConstantExpr>(CE->getOperand(1)); in needsRelocation()
1064 bool ConstantExpr::isCast() const { in isCast()
1068 bool ConstantExpr::isCompare() const { in isCompare()
1072 bool ConstantExpr::isGEPWithNoNotionalOverIndexing() const { in isGEPWithNoNotionalOverIndexing()
1097 bool ConstantExpr::hasIndices() const { in hasIndices()
1102 ArrayRef<unsigned> ConstantExpr::getIndices() const { in getIndices()
1110 unsigned ConstantExpr::getPredicate() const { in getPredicate()
1115 ConstantExpr::getWithOperandReplaced(unsigned OpNo, Constant *Op) const { in getWithOperandReplaced()
1119 return const_cast<ConstantExpr*>(this); in getWithOperandReplaced()
1128 Constant *ConstantExpr::getWithOperands(ArrayRef<Constant *> Ops, Type *Ty, in getWithOperands()
1134 return const_cast<ConstantExpr*>(this); in getWithOperands()
1151 return ConstantExpr::getCast(getOpcode(), Ops[0], Ty, OnlyIfReduced); in getWithOperands()
1153 return ConstantExpr::getSelect(Ops[0], Ops[1], Ops[2], OnlyIfReducedTy); in getWithOperands()
1155 return ConstantExpr::getInsertElement(Ops[0], Ops[1], Ops[2], in getWithOperands()
1158 return ConstantExpr::getExtractElement(Ops[0], Ops[1], OnlyIfReducedTy); in getWithOperands()
1160 return ConstantExpr::getInsertValue(Ops[0], Ops[1], getIndices(), in getWithOperands()
1163 return ConstantExpr::getExtractValue(Ops[0], getIndices(), OnlyIfReducedTy); in getWithOperands()
1165 return ConstantExpr::getShuffleVector(Ops[0], Ops[1], Ops[2], in getWithOperands()
1170 return ConstantExpr::getGetElementPtr( in getWithOperands()
1176 return ConstantExpr::getCompare(getPredicate(), Ops[0], Ops[1], in getWithOperands()
1180 return ConstantExpr::get(getOpcode(), Ops[0], Ops[1], SubclassOptionalData, in getWithOperands()
1457 Constant *ConstantExpr::getCast(unsigned oc, Constant *C, Type *Ty, in getCast()
1496 Constant *ConstantExpr::getZExtOrBitCast(Constant *C, Type *Ty) { in getZExtOrBitCast()
1502 Constant *ConstantExpr::getSExtOrBitCast(Constant *C, Type *Ty) { in getSExtOrBitCast()
1508 Constant *ConstantExpr::getTruncOrBitCast(Constant *C, Type *Ty) { in getTruncOrBitCast()
1514 Constant *ConstantExpr::getPointerCast(Constant *S, Type *Ty) { in getPointerCast()
1529 Constant *ConstantExpr::getPointerBitCastOrAddrSpaceCast(Constant *S, in getPointerBitCastOrAddrSpaceCast()
1540 Constant *ConstantExpr::getIntegerCast(Constant *C, Type *Ty, bool isSigned) { in getIntegerCast()
1552 Constant *ConstantExpr::getFPCast(Constant *C, Type *Ty) { in getFPCast()
1564 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc()
1578 Constant *ConstantExpr::getSExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSExt()
1592 Constant *ConstantExpr::getZExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getZExt()
1606 Constant *ConstantExpr::getFPTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPTrunc()
1618 Constant *ConstantExpr::getFPExtend(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPExtend()
1630 Constant *ConstantExpr::getUIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getUIToFP()
1641 Constant *ConstantExpr::getSIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSIToFP()
1652 Constant *ConstantExpr::getFPToUI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToUI()
1663 Constant *ConstantExpr::getFPToSI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToSI()
1674 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy, in getPtrToInt()
1687 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy, in getIntToPtr()
1700 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy, in getBitCast()
1712 Constant *ConstantExpr::getAddrSpaceCast(Constant *C, Type *DstTy, in getAddrSpaceCast()
1733 Constant *ConstantExpr::get(unsigned Opcode, Constant *C1, Constant *C2, in get()
1813 Constant *ConstantExpr::getSizeOf(Type* Ty) { in getSizeOf()
1823 Constant *ConstantExpr::getAlignOf(Type* Ty) { in getAlignOf()
1837 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { in getOffsetOf()
1842 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf()
1855 Constant *ConstantExpr::getCompare(unsigned short Predicate, Constant *C1, in getCompare()
1877 Constant *ConstantExpr::getSelect(Constant *C, Constant *V1, Constant *V2, in getSelect()
1894 Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C, in getGetElementPtr()
1948 Constant *ConstantExpr::getICmp(unsigned short pred, Constant *LHS, in getICmp()
1973 Constant *ConstantExpr::getFCmp(unsigned short pred, Constant *LHS, in getFCmp()
1997 Constant *ConstantExpr::getExtractElement(Constant *Val, Constant *Idx, in getExtractElement()
2019 Constant *ConstantExpr::getInsertElement(Constant *Val, Constant *Elt, in getInsertElement()
2042 Constant *ConstantExpr::getShuffleVector(Constant *V1, Constant *V2, in getShuffleVector()
2065 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue()
2089 Constant *ConstantExpr::getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, in getExtractValue()
2113 Constant *ConstantExpr::getNeg(Constant *C, bool HasNUW, bool HasNSW) { in getNeg()
2120 Constant *ConstantExpr::getFNeg(Constant *C) { in getFNeg()
2126 Constant *ConstantExpr::getNot(Constant *C) { in getNot()
2132 Constant *ConstantExpr::getAdd(Constant *C1, Constant *C2, in getAdd()
2139 Constant *ConstantExpr::getFAdd(Constant *C1, Constant *C2) { in getFAdd()
2143 Constant *ConstantExpr::getSub(Constant *C1, Constant *C2, in getSub()
2150 Constant *ConstantExpr::getFSub(Constant *C1, Constant *C2) { in getFSub()
2154 Constant *ConstantExpr::getMul(Constant *C1, Constant *C2, in getMul()
2161 Constant *ConstantExpr::getFMul(Constant *C1, Constant *C2) { in getFMul()
2165 Constant *ConstantExpr::getUDiv(Constant *C1, Constant *C2, bool isExact) { in getUDiv()
2170 Constant *ConstantExpr::getSDiv(Constant *C1, Constant *C2, bool isExact) { in getSDiv()
2175 Constant *ConstantExpr::getFDiv(Constant *C1, Constant *C2) { in getFDiv()
2179 Constant *ConstantExpr::getURem(Constant *C1, Constant *C2) { in getURem()
2183 Constant *ConstantExpr::getSRem(Constant *C1, Constant *C2) { in getSRem()
2187 Constant *ConstantExpr::getFRem(Constant *C1, Constant *C2) { in getFRem()
2191 Constant *ConstantExpr::getAnd(Constant *C1, Constant *C2) { in getAnd()
2195 Constant *ConstantExpr::getOr(Constant *C1, Constant *C2) { in getOr()
2199 Constant *ConstantExpr::getXor(Constant *C1, Constant *C2) { in getXor()
2203 Constant *ConstantExpr::getShl(Constant *C1, Constant *C2, in getShl()
2210 Constant *ConstantExpr::getLShr(Constant *C1, Constant *C2, bool isExact) { in getLShr()
2215 Constant *ConstantExpr::getAShr(Constant *C1, Constant *C2, bool isExact) { in getAShr()
2220 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty) { in getBinOpIdentity()
2239 Constant *ConstantExpr::getBinOpAbsorber(unsigned Opcode, Type *Ty) { in getBinOpAbsorber()
2255 void ConstantExpr::destroyConstantImpl() { in destroyConstantImpl()
2259 const char *ConstantExpr::getOpcodeName() const { in getOpcodeName()
2265 : ConstantExpr(DestTy, Instruction::GetElementPtr, in GetElementPtrConstantExpr()
2823 Value *ConstantExpr::handleOperandChangeImpl(Value *From, Value *ToV) { in handleOperandChangeImpl()
2849 Instruction *ConstantExpr::getAsInstruction() { in getAsInstruction()