Lines Matching refs:ConstantExpr

302   Constant *C0 = ConstantExpr::getBitCast(const_cast<Constant *>(this), IntTy);  in isElementWiseEqual()
303 Constant *C1 = ConstantExpr::getBitCast(cast<Constant>(Y), IntTy); in isElementWiseEqual()
304 Constant *CmpEq = ConstantExpr::getICmp(ICmpInst::ICMP_EQ, C0, C1); in isElementWiseEqual()
349 if (isa<ConstantExpr>(getAggregateElement(i))) in containsConstantExpression()
394 C = ConstantExpr::getIntToPtr(C, PTy); in getIntegerValue()
634 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(this)) { in getRelocationInfo()
636 ConstantExpr *LHS = dyn_cast<ConstantExpr>(CE->getOperand(0)); in getRelocationInfo()
637 ConstantExpr *RHS = dyn_cast<ConstantExpr>(CE->getOperand(1)); in getRelocationInfo()
815 if (isa<ConstantAggregate>(this) || isa<ConstantExpr>(this)) { in isManifestConstant()
1408 V = ConstantExpr::getInsertElement(PoisonV, V, ConstantInt::get(IdxTy, 0)); in getSplat()
1412 return ConstantExpr::getShuffleVector(V, PoisonV, Zeros); in getSplat()
1430 bool ConstantExpr::isCast() const { in isCast()
1434 bool ConstantExpr::isCompare() const { in isCompare()
1438 unsigned ConstantExpr::getPredicate() const { in getPredicate()
1442 ArrayRef<int> ConstantExpr::getShuffleMask() const { in getShuffleMask()
1446 Constant *ConstantExpr::getShuffleMaskForBitcode() const { in getShuffleMaskForBitcode()
1450 Constant *ConstantExpr::getWithOperands(ArrayRef<Constant *> Ops, Type *Ty, in getWithOperands()
1456 return const_cast<ConstantExpr*>(this); in getWithOperands()
1473 return ConstantExpr::getCast(getOpcode(), Ops[0], Ty, OnlyIfReduced); in getWithOperands()
1475 return ConstantExpr::getInsertElement(Ops[0], Ops[1], Ops[2], in getWithOperands()
1478 return ConstantExpr::getExtractElement(Ops[0], Ops[1], OnlyIfReducedTy); in getWithOperands()
1480 return ConstantExpr::getShuffleVector(Ops[0], Ops[1], getShuffleMask(), in getWithOperands()
1485 return ConstantExpr::getGetElementPtr( in getWithOperands()
1491 return ConstantExpr::getCompare(getPredicate(), Ops[0], Ops[1], in getWithOperands()
1495 return ConstantExpr::get(getOpcode(), Ops[0], Ops[1], SubclassOptionalData, in getWithOperands()
1626 const auto *Shuf = dyn_cast<ConstantExpr>(this); in getSplatValue()
1630 const auto *IElt = dyn_cast<ConstantExpr>(Shuf->getOperand(0)); in getSplatValue()
1678 if (isa<ConstantExpr>(this)) in getUniqueInteger()
1865 return llvm::ConstantExpr::getBitCast(NewEquiv, getType()); in handleOperandChangeImpl()
1878 return llvm::ConstantExpr::getBitCast(NewEquiv, getType()); in handleOperandChangeImpl()
1922 return llvm::ConstantExpr::getBitCast(NewNC, getType()); in handleOperandChangeImpl()
1957 Constant *ConstantExpr::getCast(unsigned oc, Constant *C, Type *Ty, in getCast()
1982 Constant *ConstantExpr::getTruncOrBitCast(Constant *C, Type *Ty) { in getTruncOrBitCast()
1988 Constant *ConstantExpr::getPointerCast(Constant *S, Type *Ty) { in getPointerCast()
2003 Constant *ConstantExpr::getPointerBitCastOrAddrSpaceCast(Constant *S, in getPointerBitCastOrAddrSpaceCast()
2014 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc()
2028 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy, in getPtrToInt()
2042 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy, in getIntToPtr()
2056 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy, in getBitCast()
2068 Constant *ConstantExpr::getAddrSpaceCast(Constant *C, Type *DstTy, in getAddrSpaceCast()
2075 Constant *ConstantExpr::get(unsigned Opcode, Constant *C1, Constant *C2, in get()
2123 bool ConstantExpr::isDesirableBinOp(unsigned Opcode) { in isDesirableBinOp()
2150 bool ConstantExpr::isSupportedBinOp(unsigned Opcode) { in isSupportedBinOp()
2177 bool ConstantExpr::isDesirableCastOp(unsigned Opcode) { in isDesirableCastOp()
2199 bool ConstantExpr::isSupportedCastOp(unsigned Opcode) { in isSupportedCastOp()
2221 Constant *ConstantExpr::getSizeOf(Type* Ty) { in getSizeOf()
2231 Constant *ConstantExpr::getAlignOf(Type* Ty) { in getAlignOf()
2244 Constant *ConstantExpr::getCompare(unsigned short Predicate, Constant *C1, in getCompare()
2266 Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C, in getGetElementPtr()
2320 Constant *ConstantExpr::getICmp(unsigned short pred, Constant *LHS, in getICmp()
2345 Constant *ConstantExpr::getFCmp(unsigned short pred, Constant *LHS, in getFCmp()
2370 Constant *ConstantExpr::getExtractElement(Constant *Val, Constant *Idx, in getExtractElement()
2392 Constant *ConstantExpr::getInsertElement(Constant *Val, Constant *Elt, in getInsertElement()
2415 Constant *ConstantExpr::getShuffleVector(Constant *V1, Constant *V2, in getShuffleVector()
2441 Constant *ConstantExpr::getNeg(Constant *C, bool HasNUW, bool HasNSW) { in getNeg()
2447 Constant *ConstantExpr::getNot(Constant *C) { in getNot()
2453 Constant *ConstantExpr::getAdd(Constant *C1, Constant *C2, in getAdd()
2460 Constant *ConstantExpr::getSub(Constant *C1, Constant *C2, in getSub()
2467 Constant *ConstantExpr::getMul(Constant *C1, Constant *C2, in getMul()
2474 Constant *ConstantExpr::getXor(Constant *C1, Constant *C2) { in getXor()
2478 Constant *ConstantExpr::getShl(Constant *C1, Constant *C2, in getShl()
2485 Constant *ConstantExpr::getExactLogBase2(Constant *C) { in getExactLogBase2()
2514 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty, in getBinOpIdentity()
2559 Constant *ConstantExpr::getIntrinsicIdentity(Intrinsic::ID ID, Type *Ty) { in getIntrinsicIdentity()
2576 Constant *ConstantExpr::getIdentity(Instruction *I, Type *Ty, in getIdentity()
2585 Constant *ConstantExpr::getBinOpAbsorber(unsigned Opcode, Type *Ty) { in getBinOpAbsorber()
2601 void ConstantExpr::destroyConstantImpl() { in destroyConstantImpl()
2605 const char *ConstantExpr::getOpcodeName() const { in getOpcodeName()
2611 : ConstantExpr(DestTy, Instruction::GetElementPtr, in GetElementPtrConstantExpr()
3196 Value *ConstantExpr::handleOperandChangeImpl(Value *From, Value *ToV) { in handleOperandChangeImpl()
3222 Instruction *ConstantExpr::getAsInstruction(Instruction *InsertBefore) const { in getAsInstruction()