Lines Matching refs:ConstantExpr

310     C = ConstantExpr::getIntToPtr(C, PTy);  in getIntegerValue()
403 SmallPtrSetImpl<const ConstantExpr *> &NonTrappingOps) { in canTrapImpl()
406 const ConstantExpr *CE = dyn_cast<ConstantExpr>(C); in canTrapImpl()
412 if (ConstantExpr *Op = dyn_cast<ConstantExpr>(CE->getOperand(i))) { in canTrapImpl()
434 SmallPtrSet<const ConstantExpr *, 4> NonTrappingOps; in canTrap()
500 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(this)) in needsRelocation()
502 ConstantExpr *LHS = dyn_cast<ConstantExpr>(CE->getOperand(0)); in needsRelocation()
503 ConstantExpr *RHS = dyn_cast<ConstantExpr>(CE->getOperand(1)); in needsRelocation()
1145 bool ConstantExpr::isCast() const { in isCast()
1149 bool ConstantExpr::isCompare() const { in isCompare()
1153 bool ConstantExpr::isGEPWithNoNotionalOverIndexing() const { in isGEPWithNoNotionalOverIndexing()
1175 bool ConstantExpr::hasIndices() const { in hasIndices()
1180 ArrayRef<unsigned> ConstantExpr::getIndices() const { in getIndices()
1188 unsigned ConstantExpr::getPredicate() const { in getPredicate()
1193 ConstantExpr::getWithOperandReplaced(unsigned OpNo, Constant *Op) const { in getWithOperandReplaced()
1197 return const_cast<ConstantExpr*>(this); in getWithOperandReplaced()
1206 Constant *ConstantExpr::getWithOperands(ArrayRef<Constant *> Ops, Type *Ty, in getWithOperands()
1212 return const_cast<ConstantExpr*>(this); in getWithOperands()
1229 return ConstantExpr::getCast(getOpcode(), Ops[0], Ty, OnlyIfReduced); in getWithOperands()
1231 return ConstantExpr::getSelect(Ops[0], Ops[1], Ops[2], OnlyIfReducedTy); in getWithOperands()
1233 return ConstantExpr::getInsertElement(Ops[0], Ops[1], Ops[2], in getWithOperands()
1236 return ConstantExpr::getExtractElement(Ops[0], Ops[1], OnlyIfReducedTy); in getWithOperands()
1238 return ConstantExpr::getInsertValue(Ops[0], Ops[1], getIndices(), in getWithOperands()
1241 return ConstantExpr::getExtractValue(Ops[0], getIndices(), OnlyIfReducedTy); in getWithOperands()
1243 return ConstantExpr::getShuffleVector(Ops[0], Ops[1], Ops[2], in getWithOperands()
1248 return ConstantExpr::getGetElementPtr( in getWithOperands()
1254 return ConstantExpr::getCompare(getPredicate(), Ops[0], Ops[1], in getWithOperands()
1258 return ConstantExpr::get(getOpcode(), Ops[0], Ops[1], SubclassOptionalData, in getWithOperands()
1530 Constant *ConstantExpr::getCast(unsigned oc, Constant *C, Type *Ty, in getCast()
1569 Constant *ConstantExpr::getZExtOrBitCast(Constant *C, Type *Ty) { in getZExtOrBitCast()
1575 Constant *ConstantExpr::getSExtOrBitCast(Constant *C, Type *Ty) { in getSExtOrBitCast()
1581 Constant *ConstantExpr::getTruncOrBitCast(Constant *C, Type *Ty) { in getTruncOrBitCast()
1587 Constant *ConstantExpr::getPointerCast(Constant *S, Type *Ty) { in getPointerCast()
1602 Constant *ConstantExpr::getPointerBitCastOrAddrSpaceCast(Constant *S, in getPointerBitCastOrAddrSpaceCast()
1613 Constant *ConstantExpr::getIntegerCast(Constant *C, Type *Ty, bool isSigned) { in getIntegerCast()
1625 Constant *ConstantExpr::getFPCast(Constant *C, Type *Ty) { in getFPCast()
1637 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc()
1651 Constant *ConstantExpr::getSExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSExt()
1665 Constant *ConstantExpr::getZExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getZExt()
1679 Constant *ConstantExpr::getFPTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPTrunc()
1691 Constant *ConstantExpr::getFPExtend(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPExtend()
1703 Constant *ConstantExpr::getUIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getUIToFP()
1714 Constant *ConstantExpr::getSIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSIToFP()
1725 Constant *ConstantExpr::getFPToUI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToUI()
1736 Constant *ConstantExpr::getFPToSI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToSI()
1747 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy, in getPtrToInt()
1760 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy, in getIntToPtr()
1773 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy, in getBitCast()
1785 Constant *ConstantExpr::getAddrSpaceCast(Constant *C, Type *DstTy, in getAddrSpaceCast()
1806 Constant *ConstantExpr::get(unsigned Opcode, Constant *C, unsigned Flags, in get()
1836 Constant *ConstantExpr::get(unsigned Opcode, Constant *C1, Constant *C2, in get()
1915 Constant *ConstantExpr::getSizeOf(Type* Ty) { in getSizeOf()
1925 Constant *ConstantExpr::getAlignOf(Type* Ty) { in getAlignOf()
1938 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { in getOffsetOf()
1943 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf()
1956 Constant *ConstantExpr::getCompare(unsigned short Predicate, Constant *C1, in getCompare()
1978 Constant *ConstantExpr::getSelect(Constant *C, Constant *V1, Constant *V2, in getSelect()
1995 Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C, in getGetElementPtr()
2053 Constant *ConstantExpr::getICmp(unsigned short pred, Constant *LHS, in getICmp()
2078 Constant *ConstantExpr::getFCmp(unsigned short pred, Constant *LHS, in getFCmp()
2103 Constant *ConstantExpr::getExtractElement(Constant *Val, Constant *Idx, in getExtractElement()
2125 Constant *ConstantExpr::getInsertElement(Constant *Val, Constant *Elt, in getInsertElement()
2148 Constant *ConstantExpr::getShuffleVector(Constant *V1, Constant *V2, in getShuffleVector()
2171 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue()
2195 Constant *ConstantExpr::getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, in getExtractValue()
2219 Constant *ConstantExpr::getNeg(Constant *C, bool HasNUW, bool HasNSW) { in getNeg()
2226 Constant *ConstantExpr::getFNeg(Constant *C) { in getFNeg()
2232 Constant *ConstantExpr::getNot(Constant *C) { in getNot()
2238 Constant *ConstantExpr::getAdd(Constant *C1, Constant *C2, in getAdd()
2245 Constant *ConstantExpr::getFAdd(Constant *C1, Constant *C2) { in getFAdd()
2249 Constant *ConstantExpr::getSub(Constant *C1, Constant *C2, in getSub()
2256 Constant *ConstantExpr::getFSub(Constant *C1, Constant *C2) { in getFSub()
2260 Constant *ConstantExpr::getMul(Constant *C1, Constant *C2, in getMul()
2267 Constant *ConstantExpr::getFMul(Constant *C1, Constant *C2) { in getFMul()
2271 Constant *ConstantExpr::getUDiv(Constant *C1, Constant *C2, bool isExact) { in getUDiv()
2276 Constant *ConstantExpr::getSDiv(Constant *C1, Constant *C2, bool isExact) { in getSDiv()
2281 Constant *ConstantExpr::getFDiv(Constant *C1, Constant *C2) { in getFDiv()
2285 Constant *ConstantExpr::getURem(Constant *C1, Constant *C2) { in getURem()
2289 Constant *ConstantExpr::getSRem(Constant *C1, Constant *C2) { in getSRem()
2293 Constant *ConstantExpr::getFRem(Constant *C1, Constant *C2) { in getFRem()
2297 Constant *ConstantExpr::getAnd(Constant *C1, Constant *C2) { in getAnd()
2301 Constant *ConstantExpr::getOr(Constant *C1, Constant *C2) { in getOr()
2305 Constant *ConstantExpr::getXor(Constant *C1, Constant *C2) { in getXor()
2309 Constant *ConstantExpr::getShl(Constant *C1, Constant *C2, in getShl()
2316 Constant *ConstantExpr::getLShr(Constant *C1, Constant *C2, bool isExact) { in getLShr()
2321 Constant *ConstantExpr::getAShr(Constant *C1, Constant *C2, bool isExact) { in getAShr()
2326 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty, in getBinOpIdentity()
2372 Constant *ConstantExpr::getBinOpAbsorber(unsigned Opcode, Type *Ty) { in getBinOpAbsorber()
2388 void ConstantExpr::destroyConstantImpl() { in destroyConstantImpl()
2392 const char *ConstantExpr::getOpcodeName() const { in getOpcodeName()
2398 : ConstantExpr(DestTy, Instruction::GetElementPtr, in GetElementPtrConstantExpr()
2947 Value *ConstantExpr::handleOperandChangeImpl(Value *From, Value *ToV) { in handleOperandChangeImpl()
2973 Instruction *ConstantExpr::getAsInstruction() { in getAsInstruction()