Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp915 Constant *TruncC = ConstantExpr::getTrunc(C, X->getType()); in narrowUDivURem() local
916 if (ConstantExpr::getZExt(TruncC, Ty) != C) in narrowUDivURem()
923 Value *NarrowOp = isa<Constant>(D) ? Builder.CreateBinOp(Opcode, X, TruncC) in narrowUDivURem()
924 : Builder.CreateBinOp(Opcode, TruncC, X); in narrowUDivURem()
DInstCombineAndOrXor.cpp1192 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant() local
1193 Constant *ZextTruncC = ConstantExpr::getZExt(TruncC, DestTy); in foldLogicCastConstant()
1196 Value *NewOp = Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
1202 Constant *TruncC = ConstantExpr::getTrunc(C, SrcTy); in foldLogicCastConstant() local
1203 Constant *SextTruncC = ConstantExpr::getSExt(TruncC, DestTy); in foldLogicCastConstant()
1206 Value *NewOp = Builder.CreateBinOp(LogicOpc, X, TruncC); in foldLogicCastConstant()
DInstCombineSelect.cpp1259 Constant *TruncC = ConstantExpr::getTrunc(C, SmallType); in foldSelectExtConst() local
1260 Constant *ExtC = ConstantExpr::getCast(ExtOpcode, TruncC, SelType); in foldSelectExtConst()
1262 Value *TruncCVal = cast<Value>(TruncC); in foldSelectExtConst()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp3274 APInt TruncC = N101C->getAPIntValue(); in visitSHL() local
3275 TruncC = TruncC.trunc(TruncVT.getSizeInBits()); in visitSHL()
3281 DAG.getConstant(TruncC, TruncVT))); in visitSHL()
3459 APInt TruncC = N101C->getAPIntValue(); in visitSRA() local
3460 TruncC = TruncC.trunc(TruncVT.getScalarType().getSizeInBits()); in visitSRA()
3467 DAG.getConstant(TruncC, TruncVT))); in visitSRA()
3646 APInt TruncC = N101C->getAPIntValue(); in visitSRL() local
3647 TruncC = TruncC.trunc(TruncVT.getSizeInBits()); in visitSRL()
3654 DAG.getConstant(TruncC, TruncVT))); in visitSRL()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp4376 APInt TruncC = N01C->getAPIntValue(); in distributeTruncateThroughAnd() local
4377 TruncC = TruncC.trunc(TruncVT.getScalarSizeInBits()); in distributeTruncateThroughAnd()
4382 DAG.getConstant(TruncC, DL, TruncVT)); in distributeTruncateThroughAnd()