Lines Matching refs:ConstantExpr

300   Constant *C0 = ConstantExpr::getBitCast(const_cast<Constant *>(this), IntTy);  in isElementWiseEqual()
301 Constant *C1 = ConstantExpr::getBitCast(cast<Constant>(Y), IntTy); in isElementWiseEqual()
302 Constant *CmpEq = ConstantExpr::getICmp(ICmpInst::ICMP_EQ, C0, C1); in isElementWiseEqual()
341 if (isa<ConstantExpr>(getAggregateElement(i))) in containsConstantExpression()
397 C = ConstantExpr::getIntToPtr(C, PTy); in getIntegerValue()
576 SmallPtrSetImpl<const ConstantExpr *> &NonTrappingOps) { in canTrapImpl()
579 const ConstantExpr *CE = dyn_cast<ConstantExpr>(C); in canTrapImpl()
585 if (ConstantExpr *Op = dyn_cast<ConstantExpr>(CE->getOperand(i))) { in canTrapImpl()
607 SmallPtrSet<const ConstantExpr *, 4> NonTrappingOps; in canTrap()
677 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(this)) { in getRelocationInfo()
679 ConstantExpr *LHS = dyn_cast<ConstantExpr>(CE->getOperand(0)); in getRelocationInfo()
680 ConstantExpr *RHS = dyn_cast<ConstantExpr>(CE->getOperand(1)); in getRelocationInfo()
831 if (isa<ConstantAggregate>(this) || isa<ConstantExpr>(this)) { in isManifestConstant()
1436 V = ConstantExpr::getInsertElement(UndefV, V, ConstantInt::get(I32Ty, 0)); in getSplat()
1440 return ConstantExpr::getShuffleVector(V, UndefV, Zeros); in getSplat()
1458 bool ConstantExpr::isCast() const { in isCast()
1462 bool ConstantExpr::isCompare() const { in isCompare()
1466 bool ConstantExpr::isGEPWithNoNotionalOverIndexing() const { in isGEPWithNoNotionalOverIndexing()
1488 bool ConstantExpr::hasIndices() const { in hasIndices()
1493 ArrayRef<unsigned> ConstantExpr::getIndices() const { in getIndices()
1501 unsigned ConstantExpr::getPredicate() const { in getPredicate()
1505 ArrayRef<int> ConstantExpr::getShuffleMask() const { in getShuffleMask()
1509 Constant *ConstantExpr::getShuffleMaskForBitcode() const { in getShuffleMaskForBitcode()
1514 ConstantExpr::getWithOperandReplaced(unsigned OpNo, Constant *Op) const { in getWithOperandReplaced()
1518 return const_cast<ConstantExpr*>(this); in getWithOperandReplaced()
1527 Constant *ConstantExpr::getWithOperands(ArrayRef<Constant *> Ops, Type *Ty, in getWithOperands()
1533 return const_cast<ConstantExpr*>(this); in getWithOperands()
1550 return ConstantExpr::getCast(getOpcode(), Ops[0], Ty, OnlyIfReduced); in getWithOperands()
1552 return ConstantExpr::getSelect(Ops[0], Ops[1], Ops[2], OnlyIfReducedTy); in getWithOperands()
1554 return ConstantExpr::getInsertElement(Ops[0], Ops[1], Ops[2], in getWithOperands()
1557 return ConstantExpr::getExtractElement(Ops[0], Ops[1], OnlyIfReducedTy); in getWithOperands()
1559 return ConstantExpr::getInsertValue(Ops[0], Ops[1], getIndices(), in getWithOperands()
1562 return ConstantExpr::getExtractValue(Ops[0], getIndices(), OnlyIfReducedTy); in getWithOperands()
1564 return ConstantExpr::getFNeg(Ops[0]); in getWithOperands()
1566 return ConstantExpr::getShuffleVector(Ops[0], Ops[1], getShuffleMask(), in getWithOperands()
1571 return ConstantExpr::getGetElementPtr( in getWithOperands()
1577 return ConstantExpr::getCompare(getPredicate(), Ops[0], Ops[1], in getWithOperands()
1581 return ConstantExpr::get(getOpcode(), Ops[0], Ops[1], SubclassOptionalData, in getWithOperands()
1712 const auto *Shuf = dyn_cast<ConstantExpr>(this); in getSplatValue()
1716 const auto *IElt = dyn_cast<ConstantExpr>(Shuf->getOperand(0)); in getSplatValue()
1927 return llvm::ConstantExpr::getBitCast(NewEquiv, getType()); in handleOperandChangeImpl()
1940 return llvm::ConstantExpr::getBitCast(NewEquiv, getType()); in handleOperandChangeImpl()
1978 Constant *ConstantExpr::getCast(unsigned oc, Constant *C, Type *Ty, in getCast()
2017 Constant *ConstantExpr::getZExtOrBitCast(Constant *C, Type *Ty) { in getZExtOrBitCast()
2023 Constant *ConstantExpr::getSExtOrBitCast(Constant *C, Type *Ty) { in getSExtOrBitCast()
2029 Constant *ConstantExpr::getTruncOrBitCast(Constant *C, Type *Ty) { in getTruncOrBitCast()
2035 Constant *ConstantExpr::getPointerCast(Constant *S, Type *Ty) { in getPointerCast()
2050 Constant *ConstantExpr::getPointerBitCastOrAddrSpaceCast(Constant *S, in getPointerBitCastOrAddrSpaceCast()
2061 Constant *ConstantExpr::getIntegerCast(Constant *C, Type *Ty, bool isSigned) { in getIntegerCast()
2073 Constant *ConstantExpr::getFPCast(Constant *C, Type *Ty) { in getFPCast()
2085 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc()
2099 Constant *ConstantExpr::getSExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSExt()
2113 Constant *ConstantExpr::getZExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getZExt()
2127 Constant *ConstantExpr::getFPTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPTrunc()
2139 Constant *ConstantExpr::getFPExtend(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPExtend()
2151 Constant *ConstantExpr::getUIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getUIToFP()
2162 Constant *ConstantExpr::getSIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSIToFP()
2173 Constant *ConstantExpr::getFPToUI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToUI()
2184 Constant *ConstantExpr::getFPToSI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToSI()
2195 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy, in getPtrToInt()
2209 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy, in getIntToPtr()
2223 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy, in getBitCast()
2235 Constant *ConstantExpr::getAddrSpaceCast(Constant *C, Type *DstTy, in getAddrSpaceCast()
2257 Constant *ConstantExpr::get(unsigned Opcode, Constant *C, unsigned Flags, in get()
2288 Constant *ConstantExpr::get(unsigned Opcode, Constant *C1, Constant *C2, in get()
2347 Constant *ConstantExpr::getSizeOf(Type* Ty) { in getSizeOf()
2357 Constant *ConstantExpr::getAlignOf(Type* Ty) { in getAlignOf()
2370 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { in getOffsetOf()
2375 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf()
2388 Constant *ConstantExpr::getCompare(unsigned short Predicate, Constant *C1, in getCompare()
2410 Constant *ConstantExpr::getSelect(Constant *C, Constant *V1, Constant *V2, in getSelect()
2427 Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C, in getGetElementPtr()
2492 Constant *ConstantExpr::getICmp(unsigned short pred, Constant *LHS, in getICmp()
2517 Constant *ConstantExpr::getFCmp(unsigned short pred, Constant *LHS, in getFCmp()
2542 Constant *ConstantExpr::getExtractElement(Constant *Val, Constant *Idx, in getExtractElement()
2564 Constant *ConstantExpr::getInsertElement(Constant *Val, Constant *Elt, in getInsertElement()
2587 Constant *ConstantExpr::getShuffleVector(Constant *V1, Constant *V2, in getShuffleVector()
2613 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue()
2637 Constant *ConstantExpr::getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, in getExtractValue()
2661 Constant *ConstantExpr::getNeg(Constant *C, bool HasNUW, bool HasNSW) { in getNeg()
2668 Constant *ConstantExpr::getFNeg(Constant *C) { in getFNeg()
2674 Constant *ConstantExpr::getNot(Constant *C) { in getNot()
2680 Constant *ConstantExpr::getAdd(Constant *C1, Constant *C2, in getAdd()
2687 Constant *ConstantExpr::getFAdd(Constant *C1, Constant *C2) { in getFAdd()
2691 Constant *ConstantExpr::getSub(Constant *C1, Constant *C2, in getSub()
2698 Constant *ConstantExpr::getFSub(Constant *C1, Constant *C2) { in getFSub()
2702 Constant *ConstantExpr::getMul(Constant *C1, Constant *C2, in getMul()
2709 Constant *ConstantExpr::getFMul(Constant *C1, Constant *C2) { in getFMul()
2713 Constant *ConstantExpr::getUDiv(Constant *C1, Constant *C2, bool isExact) { in getUDiv()
2718 Constant *ConstantExpr::getSDiv(Constant *C1, Constant *C2, bool isExact) { in getSDiv()
2723 Constant *ConstantExpr::getFDiv(Constant *C1, Constant *C2) { in getFDiv()
2727 Constant *ConstantExpr::getURem(Constant *C1, Constant *C2) { in getURem()
2731 Constant *ConstantExpr::getSRem(Constant *C1, Constant *C2) { in getSRem()
2735 Constant *ConstantExpr::getFRem(Constant *C1, Constant *C2) { in getFRem()
2739 Constant *ConstantExpr::getAnd(Constant *C1, Constant *C2) { in getAnd()
2743 Constant *ConstantExpr::getOr(Constant *C1, Constant *C2) { in getOr()
2747 Constant *ConstantExpr::getXor(Constant *C1, Constant *C2) { in getXor()
2751 Constant *ConstantExpr::getUMin(Constant *C1, Constant *C2) { in getUMin()
2752 Constant *Cmp = ConstantExpr::getICmp(CmpInst::ICMP_ULT, C1, C2); in getUMin()
2756 Constant *ConstantExpr::getShl(Constant *C1, Constant *C2, in getShl()
2763 Constant *ConstantExpr::getLShr(Constant *C1, Constant *C2, bool isExact) { in getLShr()
2768 Constant *ConstantExpr::getAShr(Constant *C1, Constant *C2, bool isExact) { in getAShr()
2773 Constant *ConstantExpr::getExactLogBase2(Constant *C) { in getExactLogBase2()
2802 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty, in getBinOpIdentity()
2848 Constant *ConstantExpr::getBinOpAbsorber(unsigned Opcode, Type *Ty) { in getBinOpAbsorber()
2864 void ConstantExpr::destroyConstantImpl() { in destroyConstantImpl()
2868 const char *ConstantExpr::getOpcodeName() const { in getOpcodeName()
2874 : ConstantExpr(DestTy, Instruction::GetElementPtr, in GetElementPtrConstantExpr()
3459 Value *ConstantExpr::handleOperandChangeImpl(Value *From, Value *ToV) { in handleOperandChangeImpl()
3485 Instruction *ConstantExpr::getAsInstruction() const { in getAsInstruction()