Home
last modified time | relevance | path

Searched refs:TruncC (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h226 Constant *TruncC = ConstantExpr::getTrunc(C, TruncTy); in getLosslessTrunc() local
228 ConstantFoldCastOperand(ExtOp, TruncC, C->getType(), DL); in getLosslessTrunc()
230 return TruncC; in getLosslessTrunc()
H A DInstCombineMulDivRem.cpp1648 Constant *TruncC = IC.getLosslessUnsignedTrunc(C, X->getType()); in narrowUDivURem() local
1649 if (!TruncC) in narrowUDivURem()
1654 return new ZExtInst(IC.Builder.CreateBinOp(Opcode, X, TruncC), Ty); in narrowUDivURem()
1659 Constant *TruncC = IC.getLosslessUnsignedTrunc(C, X->getType()); in narrowUDivURem() local
1660 if (!TruncC) in narrowUDivURem()
1665 return new ZExtInst(IC.Builder.CreateBinOp(Opcode, TruncC, X), Ty); in narrowUDivURem()
H A DInstCombineAndOrXor.cpp1765 if (Constant *TruncC = IC.getLosslessUnsignedTrunc(C, SrcTy)) { in foldLogicCastConstant() local
1767 Value *NewOp = IC.Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
1773 if (Constant *TruncC = IC.getLosslessSignedTrunc(C, SrcTy)) { in foldLogicCastConstant() local
1775 Value *NewOp = IC.Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
2538 Constant *TruncC = ConstantInt::get(X->getType(), C->trunc(XWidth)); in visitAnd() local
2539 Value *And = Builder.CreateAnd(BinOp, TruncC); in visitAnd()
H A DInstCombineSelect.cpp2295 Constant *TruncC = getLosslessTrunc(C, SmallType, ExtOpcode); in foldSelectExtConst() local
2296 if (TruncC && ExtInst->hasOneUse()) { in foldSelectExtConst()
2297 Value *TruncCVal = cast<Value>(TruncC); in foldSelectExtConst()
H A DInstCombineCompares.cpp8750 APFloat TruncC = *C; in visitFCmpInst() local
8751 TruncC.convert(FPSem, APFloat::rmNearestTiesToEven, &Lossy); in visitFCmpInst()
8780 APFloat Fabs = TruncC; in visitFCmpInst()
8784 Constant *NewC = ConstantFP::get(X->getType(), TruncC); in visitFCmpInst()