Lines Matching refs:ConstantExpr

399   if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) {  in appendsFlatAddressExpressionToPostorderStack()
414 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Op->getOperand(I))) { in appendsFlatAddressExpressionToPostorderStack()
515 return ConstantExpr::getAddrSpaceCast(C, NewPtrTy); in operandWithNewAddressSpaceOrCreateUndef()
635 ConstantExpr *CE, unsigned NewAddrSpace, in cloneConstantExprWithNewAddressSpace()
649 return ConstantExpr::getBitCast(CE->getOperand(0), TargetType); in cloneConstantExprWithNewAddressSpace()
654 return ConstantExpr::getBitCast(cast<Constant>(NewOperand), TargetType); in cloneConstantExprWithNewAddressSpace()
655 return ConstantExpr::getAddrSpaceCast(CE, TargetType); in cloneConstantExprWithNewAddressSpace()
664 return ConstantExpr::getSelect( in cloneConstantExprWithNewAddressSpace()
665 CE->getOperand(0), ConstantExpr::getAddrSpaceCast(Src0, TargetType), in cloneConstantExprWithNewAddressSpace()
666 ConstantExpr::getAddrSpaceCast(Src1, TargetType)); in cloneConstantExprWithNewAddressSpace()
672 Constant *Src = cast<ConstantExpr>(CE->getOperand(0))->getOperand(0); in cloneConstantExprWithNewAddressSpace()
674 return ConstantExpr::getBitCast(Src, TargetType); in cloneConstantExprWithNewAddressSpace()
692 if (auto CExpr = dyn_cast<ConstantExpr>(Operand)) in cloneConstantExprWithNewAddressSpace()
745 cast<ConstantExpr>(V), NewAddrSpace, ValueWithNewAddrSpace, DL, TTI); in cloneValueWithNewAddressSpace()
1081 Constant *Replace = ConstantExpr::getAddrSpaceCast(cast<Constant>(NewV), in rewriteWithNewAddressSpaces()
1149 ConstantExpr::getAddrSpaceCast(KOtherSrc, NewV->getType())); in rewriteWithNewAddressSpaces()
1180 U.set(ConstantExpr::getAddrSpaceCast(cast<Constant>(NewV), in rewriteWithNewAddressSpaces()