Searched defs:Trunc (Results 1 - 15 of 15) sorted by relevance

/external/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp513 Value *Trunc; local
525 Trunc = Builder.CreateTrunc(ExtRem, RemTy);
527 Rem->replaceAllUsesWith(Trunc);
563 Value *Trunc; local
575 Trunc = Builder.CreateTrunc(ExtRem, RemTy);
577 Rem->replaceAllUsesWith(Trunc);
614 Value *Trunc; local
626 Trunc = Builder.CreateTrunc(ExtDiv, DivTy);
628 Div->replaceAllUsesWith(Trunc);
664 Value *Trunc; local
[all...]
/external/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp593 SDValue Trunc = CurDAG->getNode(ISD::TRUNCATE, DL, VT, Base); local
594 insertDAGNode(CurDAG, Base.getNode(), Trunc);
595 Base = Trunc;
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp2401 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); local
2402 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy);
2408 SrcOp, Trunc, Q, MaxRecurse-1))
2460 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); local
2461 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy);
2466 if (Value *V = SimplifyICmpInst(Pred, SrcOp, Trunc, Q, MaxRecurse-1))
3410 return ConstantFoldInstOperands(Instruction::Trunc, Ty, C, Q.DL, Q.TLI);
3755 case Instruction::Trunc:
H A DScalarEvolution.cpp148 const SCEVTruncateExpr *Trunc = cast<SCEVTruncateExpr>(this); local
149 const SCEV *Op = Trunc->getOperand();
151 << *Trunc->getType() << ")";
2025 const SCEVTruncateExpr *Trunc = cast<SCEVTruncateExpr>(Ops[Idx]); variable
2026 Type *DstType = Trunc->getType();
2027 Type *SrcType = Trunc->getOperand()->getType();
3927 if (const SCEVTruncateExpr *Trunc = dyn_cast<SCEVTruncateExpr>(S)) {
3928 ConstantRange X = getRange(Trunc->getOperand(), SignHint);
3929 return setRange(Trunc, SignHint,
4239 APInt Trunc
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp191 case Instruction::Trunc:
403 case Instruction::Trunc:
671 case Instruction::Trunc: // zext(trunc(x)) -> trunc(x) or zext(x)
837 Value *Trunc = Builder->CreateTrunc(A, CI.getType()); local
839 return BinaryOperator::CreateAnd(Trunc,
840 ConstantInt::get(Trunc->getType(),
1008 case Instruction::Trunc: // sext(trunc(x)) -> trunc(x) or sext(x)
/external/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp950 Value *Trunc = Builder.CreateTrunc(DU.WideDef, DU.NarrowDef->getType()); local
951 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, Trunc);
1001 Value *Trunc = Builder.CreateTrunc(WidePhi, DU.NarrowDef->getType()); local
1002 UsePhi->replaceAllUsesWith(Trunc);
1017 // The cast isn't as wide as the IV, so insert a Trunc.
1060 // follow it. Instead insert a Trunc to kill off the original use,
1066 // insert a Trunc after a terminator if there happens to be a critical edge.
/external/llvm/bindings/ocaml/llvm/
H A Dllvm.ml185 | Trunc Constructor in type:Opcode/t
/external/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1342 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, dl, MinVT, PreExt); local
1344 return DAG.getSetCC(dl, VT, Trunc, C, Cond);
H A DLegalizeIntegerTypes.cpp258 SDValue Trunc = DAG.getNode(ISD::FP_TO_FP16, dl, NOutVT, PromotedOp); local
259 return DAG.getNode(ISD::AssertZext, dl, NOutVT, Trunc,
H A DDAGCombiner.cpp212 SDValue Trunc, SDValue ExtLoad, SDLoc DL,
891 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, dl, VT, SDValue(ExtLoad, 0)); local
896 Trunc.getNode()->dump(&DAG);
899 DAG.ReplaceAllUsesOfValueWith(SDValue(Load, 0), Trunc); local
902 AddToWorklist(Trunc.getNode());
4408 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, SDLoc(N0), TruncVT, local
4411 N->getValueType(0), Trunc);
5415 SDValue Trunc, SDValue ExtLoad, SDLoc DL,
5424 if (SOp == Trunc)
5523 SDValue Trunc local
5414 ExtendSetCCUses(const SmallVectorImpl<SDNode *> &SetCCs, SDValue Trunc, SDValue ExtLoad, SDLoc DL, ISD::NodeType ExtType) argument
5616 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, SDLoc(N0), local
5675 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, local
5912 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, SDLoc(N0), local
5951 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, local
6144 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, SDLoc(N0), local
8403 SDNode *Trunc = nullptr; local
[all...]
/external/llvm/lib/Target/NVPTX/
H A DNVPTXISelLowering.cpp1815 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, DL, MVT::i1, Select); local
1817 return Trunc;
/external/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp2409 // SExt or Trunc instructions.
2485 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); local
2486 if (Instruction *ITrunc = dyn_cast<Instruction>(Trunc)) {
2494 TPT.replaceAllUsesWith(ExtOpnd, Trunc);
/external/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp2299 SDValue Trunc = DAG.getNode(MipsISD::TruncIntFP, SDLoc(Op), FPTy, local
2301 return DAG.getNode(ISD::BITCAST, SDLoc(Op), Op.getValueType(), Trunc);
/external/llvm/lib/Target/R600/
H A DAMDGPUISelLowering.cpp1916 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); local
1924 SDValue NeTrunc = DAG.getSetCC(SL, SetCCVT, Src, Trunc, ISD::SETONE);
1928 return DAG.getNode(ISD::FADD, SL, MVT::f64, Trunc, Add);
2126 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); local
2134 SDValue NeTrunc = DAG.getSetCC(SL, SetCCVT, Src, Trunc, ISD::SETONE);
2138 return DAG.getNode(ISD::FADD, SL, MVT::f64, Trunc, Add);
2205 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); local
2212 SDValue Mul = DAG.getNode(ISD::FMUL, SL, MVT::f64, Trunc, K0);
2217 SDValue Fma = DAG.getNode(ISD::FMA, SL, MVT::f64, FloorMul, K1, Trunc);
/external/deqp/modules/glshared/
H A DglsBuiltinPrecisionTests.cpp3156 class Trunc : public PreciseFunc1 class in namespace:deqp::gls::BuiltinPrecisionTests::Functions
3159 Trunc (void) : PreciseFunc1("trunc", deTrunc) {} function in class:deqp::gls::BuiltinPrecisionTests::Functions::Trunc
5207 addScalarFactory<Trunc>(*funcs);

Completed in 437 milliseconds