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.h225 Constant *TruncC = ConstantExpr::getTrunc(C, TruncTy); in getLosslessTrunc() local
227 ConstantFoldCastOperand(ExtOp, TruncC, C->getType(), DL); in getLosslessTrunc()
229 return TruncC; in getLosslessTrunc()
H A DInstCombineMulDivRem.cpp1491 Constant *TruncC = IC.getLosslessUnsignedTrunc(C, X->getType()); in narrowUDivURem() local
1492 if (!TruncC) in narrowUDivURem()
1497 return new ZExtInst(IC.Builder.CreateBinOp(Opcode, X, TruncC), Ty); in narrowUDivURem()
1502 Constant *TruncC = IC.getLosslessUnsignedTrunc(C, X->getType()); in narrowUDivURem() local
1503 if (!TruncC) in narrowUDivURem()
1508 return new ZExtInst(IC.Builder.CreateBinOp(Opcode, TruncC, X), Ty); in narrowUDivURem()
H A DInstCombineAndOrXor.cpp1724 if (Constant *TruncC = IC.getLosslessUnsignedTrunc(C, SrcTy)) { in foldLogicCastConstant() local
1726 Value *NewOp = IC.Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
1732 if (Constant *TruncC = IC.getLosslessSignedTrunc(C, SrcTy)) { in foldLogicCastConstant() local
1734 Value *NewOp = IC.Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
2461 Constant *TruncC = ConstantInt::get(X->getType(), C->trunc(XWidth)); in visitAnd() local
2462 Value *And = Builder.CreateAnd(BinOp, TruncC); in visitAnd()
H A DInstCombineSelect.cpp2241 Constant *TruncC = getLosslessTrunc(C, SmallType, ExtOpcode); in foldSelectExtConst() local
2242 if (TruncC && ExtInst->hasOneUse()) { in foldSelectExtConst()
2243 Value *TruncCVal = cast<Value>(TruncC); in foldSelectExtConst()
H A DInstCombineCompares.cpp8279 APFloat TruncC = *C; in visitFCmpInst() local
8280 TruncC.convert(FPSem, APFloat::rmNearestTiesToEven, &Lossy); in visitFCmpInst()
8309 APFloat Fabs = TruncC; in visitFCmpInst()
8313 Constant *NewC = ConstantFP::get(X->getType(), TruncC); in visitFCmpInst()