Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp991 Constant *TruncC = ConstantExpr::getTrunc(C, X->getType()); in narrowUDivURem() local
992 if (ConstantExpr::getZExt(TruncC, Ty) != C) in narrowUDivURem()
999 Value *NarrowOp = isa<Constant>(D) ? Builder.CreateBinOp(Opcode, X, TruncC) in narrowUDivURem()
1000 : Builder.CreateBinOp(Opcode, TruncC, X); in narrowUDivURem()
H A DInstCombineAndOrXor.cpp1584 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant() local
1585 Constant *ZextTruncC = ConstantExpr::getZExt(TruncC, DestTy); in foldLogicCastConstant()
1588 Value *NewOp = Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
1594 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant() local
1595 Constant *SextTruncC = ConstantExpr::getSExt(TruncC, DestTy); in foldLogicCastConstant()
1598 Value *NewOp = Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
H A DInstCombineSelect.cpp1940 Constant *TruncC = ConstantExpr::getTrunc(C, SmallType); in foldSelectExtConst() local
1941 Constant *ExtC = ConstantExpr::getCast(ExtOpcode, TruncC, SelType); in foldSelectExtConst()
1943 Value *TruncCVal = cast<Value>(TruncC); in foldSelectExtConst()
H A DInstCombineCompares.cpp6400 APFloat TruncC = *C; in visitFCmpInst() local
6401 TruncC.convert(FPSem, APFloat::rmNearestTiesToEven, &Lossy); in visitFCmpInst()
6405 APFloat Fabs = TruncC; in visitFCmpInst()
6409 Constant *NewC = ConstantFP::get(X->getType(), TruncC); in visitFCmpInst()