/external/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 513 Value *Trunc; in expandRemainderUpTo32Bits() local 525 Trunc = Builder.CreateTrunc(ExtRem, RemTy); in expandRemainderUpTo32Bits() 527 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo32Bits() 563 Value *Trunc; in expandRemainderUpTo64Bits() local 575 Trunc = Builder.CreateTrunc(ExtRem, RemTy); in expandRemainderUpTo64Bits() 577 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo64Bits() 614 Value *Trunc; in expandDivisionUpTo32Bits() local 626 Trunc = Builder.CreateTrunc(ExtDiv, DivTy); in expandDivisionUpTo32Bits() 628 Div->replaceAllUsesWith(Trunc); in expandDivisionUpTo32Bits() 664 Value *Trunc; in expandDivisionUpTo64Bits() local [all …]
|
D | BypassSlowDivision.cpp | 122 Value *ShortDivisorV = FastBuilder.CreateCast(Instruction::Trunc, Divisor, in insertFastDiv() 124 Value *ShortDividendV = FastBuilder.CreateCast(Instruction::Trunc, Dividend, in insertFastDiv()
|
/external/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 209 case Instruction::Trunc: { in getOperationCost() 360 if (Opcode == Instruction::BitCast || Opcode == Instruction::Trunc) in getCastInstrCost() 364 if (Opcode == Instruction::Trunc && in getCastInstrCost()
|
/external/llvm/test/CodeGen/X86/ |
D | x86-64-jumps.ll | 18 ; PR5930 - Trunc of block address differences.
|
D | fast-isel-x86-64.ll | 132 ; rdar://9297006 - Trunc to bool.
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 191 case Instruction::Trunc: in EvaluateInDifferentType() 403 case Instruction::Trunc: in CanEvaluateTruncated() 671 case Instruction::Trunc: // zext(trunc(x)) -> trunc(x) or zext(x) in CanEvaluateZExtd() 837 Value *Trunc = Builder->CreateTrunc(A, CI.getType()); in visitZExt() local 839 return BinaryOperator::CreateAnd(Trunc, in visitZExt() 840 ConstantInt::get(Trunc->getType(), in visitZExt() 1008 case Instruction::Trunc: // sext(trunc(x)) -> trunc(x) or sext(x) in CanEvaluateSExtd()
|
D | InstCombineVectorOps.cpp | 630 case Instruction::Trunc: in CanEvaluateShuffled() 715 case Instruction::Trunc: in BuildNew() 793 case Instruction::Trunc: in EvaluateInDifferentElementOrder()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 167 case Instruction::Trunc: in getIntImmCost()
|
D | SystemZISelDAGToDAG.cpp | 593 SDValue Trunc = CurDAG->getNode(ISD::TRUNCATE, DL, VT, Base); in getAddressOperands() local 594 insertDAGNode(CurDAG, Base.getNode(), Trunc); in getAddressOperands() 595 Base = Trunc; in getAddressOperands()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 1990 case Instruction::Trunc: in isIntegerCast() 2029 case Instruction::Trunc: in isNoopCast() 2302 case Trunc: return new TruncInst (S, Ty, Name, InsertBefore); in Create() 2324 case Trunc: return new TruncInst (S, Ty, Name, InsertAtEnd); in Create() 2378 return Create(Instruction::Trunc, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast() 2386 return Create(Instruction::Trunc, S, Ty, Name, InsertAtEnd); in CreateTruncOrBitCast() 2470 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast() 2484 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast() 2660 return Trunc; // int -> smaller int in getCastOpcode() 2759 case Instruction::Trunc: in castIsValid() [all …]
|
D | Instruction.cpp | 224 case Trunc: return "trunc"; in getOpcodeName()
|
D | Constants.cpp | 1225 case Instruction::Trunc: in getWithOperands() 1576 case Instruction::Trunc: in getCast() 1657 (SrcBits > DstBits ? Instruction::Trunc : in getIntegerCast() 1685 return getFoldedCast(Instruction::Trunc, C, Ty, OnlyIfReduced); in getTrunc() 2979 case Instruction::Trunc: in getAsInstruction()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreLowerThreadLocal.cpp | 108 case Instruction::Trunc: in createReplacementInstr()
|
/external/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 950 Value *Trunc = Builder.CreateTrunc(DU.WideDef, DU.NarrowDef->getType()); in truncateIVUse() local 951 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, Trunc); in truncateIVUse() 1001 Value *Trunc = Builder.CreateTrunc(WidePhi, DU.NarrowDef->getType()); in WidenIVUse() local 1002 UsePhi->replaceAllUsesWith(Trunc); in WidenIVUse()
|
D | BDCE.cpp | 238 case Instruction::Trunc: in determineLiveOperandBits()
|
D | LoopRotation.cpp | 258 case Instruction::Trunc: in shouldSpeculateInstrs()
|
/external/llvm/include/llvm/IR/ |
D | Instruction.def | 145 HANDLE_CAST_INST(33, Trunc , TruncInst ) // Truncate integers
|
/external/llvm/lib/Target/R600/ |
D | AMDGPUISelLowering.cpp | 1916 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); in LowerFCEIL() local 1924 SDValue NeTrunc = DAG.getSetCC(SL, SetCCVT, Src, Trunc, ISD::SETONE); in LowerFCEIL() 1928 return DAG.getNode(ISD::FADD, SL, MVT::f64, Trunc, Add); in LowerFCEIL() 2126 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); in LowerFFLOOR() local 2134 SDValue NeTrunc = DAG.getSetCC(SL, SetCCVT, Src, Trunc, ISD::SETONE); in LowerFFLOOR() 2138 return DAG.getNode(ISD::FADD, SL, MVT::f64, Trunc, Add); in LowerFFLOOR() 2205 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); in LowerFP64_TO_INT() local 2212 SDValue Mul = DAG.getNode(ISD::FMUL, SL, MVT::f64, Trunc, K0); in LowerFP64_TO_INT() 2217 SDValue Fma = DAG.getNode(ISD::FMA, SL, MVT::f64, FloorMul, K1, Trunc); in LowerFP64_TO_INT()
|
/external/llvm/include/llvm/Analysis/ |
D | TargetTransformInfoImpl.h | 100 case Instruction::Trunc: in getOperationCost()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 212 SDValue Trunc, SDValue ExtLoad, SDLoc DL, 891 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, dl, VT, SDValue(ExtLoad, 0)); in ReplaceLoadWithPromotedLoad() local 896 Trunc.getNode()->dump(&DAG); in ReplaceLoadWithPromotedLoad() 899 DAG.ReplaceAllUsesOfValueWith(SDValue(Load, 0), Trunc); in ReplaceLoadWithPromotedLoad() 902 AddToWorklist(Trunc.getNode()); in ReplaceLoadWithPromotedLoad() 4408 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, SDLoc(N0), TruncVT, in visitSRA() local 4411 N->getValueType(0), Trunc); in visitSRA() 5415 SDValue Trunc, SDValue ExtLoad, SDLoc DL, in ExtendSetCCUses() argument 5424 if (SOp == Trunc) in ExtendSetCCUses() 5523 SDValue Trunc = in CombineExtLoad() local [all …]
|
/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 453 case Instruction::Trunc: in getInstructionCost()
|
D | InstructionSimplify.cpp | 2401 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst() local 2402 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy); in SimplifyICmpInst() 2408 SrcOp, Trunc, Q, MaxRecurse-1)) in SimplifyICmpInst() 2460 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst() local 2461 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy); in SimplifyICmpInst() 2466 if (Value *V = SimplifyICmpInst(Pred, SrcOp, Trunc, Q, MaxRecurse-1)) in SimplifyICmpInst() 3410 return ConstantFoldInstOperands(Instruction::Trunc, Ty, C, Q.DL, Q.TLI); in SimplifyTruncInst() 3755 case Instruction::Trunc: in SimplifyInstruction()
|
D | ScalarEvolution.cpp | 148 const SCEVTruncateExpr *Trunc = cast<SCEVTruncateExpr>(this); in print() local 149 const SCEV *Op = Trunc->getOperand(); in print() 151 << *Trunc->getType() << ")"; in print() 2025 const SCEVTruncateExpr *Trunc = cast<SCEVTruncateExpr>(Ops[Idx]); in getAddExpr() local 2026 Type *DstType = Trunc->getType(); in getAddExpr() 2027 Type *SrcType = Trunc->getOperand()->getType(); in getAddExpr() 3927 if (const SCEVTruncateExpr *Trunc = dyn_cast<SCEVTruncateExpr>(S)) { in getRange() local 3928 ConstantRange X = getRange(Trunc->getOperand(), SignHint); in getRange() 3929 return setRange(Trunc, SignHint, in getRange() 4239 APInt Trunc = CI->getValue().trunc(Z0TySize); in createSCEV() local [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.cpp | 106 case Instruction::Trunc: in getIntImmCost()
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ARCInstKind.cpp | 285 case Instruction::Trunc: in GetARCInstKind()
|