Lines Matching refs:ConstantExpr

316   Constant *C0 = ConstantExpr::getBitCast(const_cast<Constant *>(this), IntTy);  in isElementWiseEqual()
317 Constant *C1 = ConstantExpr::getBitCast(cast<Constant>(Y), IntTy); in isElementWiseEqual()
363 if (isa<ConstantExpr>(getAggregateElement(i))) in containsConstantExpression()
408 C = ConstantExpr::getIntToPtr(C, PTy); in getIntegerValue()
649 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(this)) { in getRelocationInfo()
651 ConstantExpr *LHS = dyn_cast<ConstantExpr>(CE->getOperand(0)); in getRelocationInfo()
652 ConstantExpr *RHS = dyn_cast<ConstantExpr>(CE->getOperand(1)); in getRelocationInfo()
830 if (isa<ConstantAggregate>(this) || isa<ConstantExpr>(this)) { in isManifestConstant()
1493 V = ConstantExpr::getInsertElement(PoisonV, V, ConstantInt::get(IdxTy, 0)); in getSplat()
1497 return ConstantExpr::getShuffleVector(V, PoisonV, Zeros); in getSplat()
1515 bool ConstantExpr::isCast() const { return Instruction::isCast(getOpcode()); } in isCast()
1517 ArrayRef<int> ConstantExpr::getShuffleMask() const { in getShuffleMask()
1521 Constant *ConstantExpr::getShuffleMaskForBitcode() const { in getShuffleMaskForBitcode()
1525 Constant *ConstantExpr::getWithOperands(ArrayRef<Constant *> Ops, Type *Ty, in getWithOperands()
1531 return const_cast<ConstantExpr*>(this); in getWithOperands()
1548 return ConstantExpr::getCast(getOpcode(), Ops[0], Ty, OnlyIfReduced); in getWithOperands()
1550 return ConstantExpr::getInsertElement(Ops[0], Ops[1], Ops[2], in getWithOperands()
1553 return ConstantExpr::getExtractElement(Ops[0], Ops[1], OnlyIfReducedTy); in getWithOperands()
1555 return ConstantExpr::getShuffleVector(Ops[0], Ops[1], getShuffleMask(), in getWithOperands()
1560 return ConstantExpr::getGetElementPtr( in getWithOperands()
1566 return ConstantExpr::get(getOpcode(), Ops[0], Ops[1], SubclassOptionalData, in getWithOperands()
1697 const auto *Shuf = dyn_cast<ConstantExpr>(this); in getSplatValue()
1701 const auto *IElt = dyn_cast<ConstantExpr>(Shuf->getOperand(0)); in getSplatValue()
1749 if (isa<ConstantExpr>(this)) in getUniqueInteger()
1974 return llvm::ConstantExpr::getBitCast(NewEquiv, getType()); in handleOperandChangeImpl()
1987 return llvm::ConstantExpr::getBitCast(NewEquiv, getType()); in handleOperandChangeImpl()
2031 return llvm::ConstantExpr::getBitCast(NewNC, getType()); in handleOperandChangeImpl()
2184 Constant *ConstantExpr::getCast(unsigned oc, Constant *C, Type *Ty, in getCast()
2209 Constant *ConstantExpr::getTruncOrBitCast(Constant *C, Type *Ty) { in getTruncOrBitCast()
2215 Constant *ConstantExpr::getPointerCast(Constant *S, Type *Ty) { in getPointerCast()
2230 Constant *ConstantExpr::getPointerBitCastOrAddrSpaceCast(Constant *S, in getPointerBitCastOrAddrSpaceCast()
2241 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc()
2255 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy, in getPtrToInt()
2269 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy, in getIntToPtr()
2283 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy, in getBitCast()
2295 Constant *ConstantExpr::getAddrSpaceCast(Constant *C, Type *DstTy, in getAddrSpaceCast()
2302 Constant *ConstantExpr::get(unsigned Opcode, Constant *C1, Constant *C2, in get()
2344 bool ConstantExpr::isDesirableBinOp(unsigned Opcode) { in isDesirableBinOp()
2371 bool ConstantExpr::isSupportedBinOp(unsigned Opcode) { in isSupportedBinOp()
2398 bool ConstantExpr::isDesirableCastOp(unsigned Opcode) { in isDesirableCastOp()
2420 bool ConstantExpr::isSupportedCastOp(unsigned Opcode) { in isSupportedCastOp()
2442 Constant *ConstantExpr::getSizeOf(Type* Ty) { in getSizeOf()
2452 Constant *ConstantExpr::getAlignOf(Type* Ty) { in getAlignOf()
2465 Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C, in getGetElementPtr()
2516 Constant *ConstantExpr::getExtractElement(Constant *Val, Constant *Idx, in getExtractElement()
2538 Constant *ConstantExpr::getInsertElement(Constant *Val, Constant *Elt, in getInsertElement()
2561 Constant *ConstantExpr::getShuffleVector(Constant *V1, Constant *V2, in getShuffleVector()
2587 Constant *ConstantExpr::getNeg(Constant *C, bool HasNSW) { in getNeg()
2593 Constant *ConstantExpr::getNot(Constant *C) { in getNot()
2599 Constant *ConstantExpr::getAdd(Constant *C1, Constant *C2, in getAdd()
2606 Constant *ConstantExpr::getSub(Constant *C1, Constant *C2, in getSub()
2613 Constant *ConstantExpr::getMul(Constant *C1, Constant *C2, in getMul()
2620 Constant *ConstantExpr::getXor(Constant *C1, Constant *C2) { in getXor()
2624 Constant *ConstantExpr::getExactLogBase2(Constant *C) { in getExactLogBase2()
2653 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty, in getBinOpIdentity()
2698 Constant *ConstantExpr::getIntrinsicIdentity(Intrinsic::ID ID, Type *Ty) { in getIntrinsicIdentity()
2715 Constant *ConstantExpr::getIdentity(Instruction *I, Type *Ty, in getIdentity()
2724 Constant *ConstantExpr::getBinOpAbsorber(unsigned Opcode, Type *Ty) { in getBinOpAbsorber()
2740 void ConstantExpr::destroyConstantImpl() { in destroyConstantImpl()
2744 const char *ConstantExpr::getOpcodeName() const { in getOpcodeName()
2751 : ConstantExpr(DestTy, Instruction::GetElementPtr, in GetElementPtrConstantExpr()
3341 Value *ConstantExpr::handleOperandChangeImpl(Value *From, Value *ToV) { in handleOperandChangeImpl()
3367 Instruction *ConstantExpr::getAsInstruction() const { in getAsInstruction()