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

/external/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp442 Constant *Trunc = ConstantExpr::getTrunc(C, NarrowType); local
443 if (ConstantExpr::getZExt(Trunc, C->getType()) != C)
445 NewIncoming.push_back(Trunc);
H A DInstCombineCasts.cpp190 case Instruction::Trunc:
402 case Instruction::Trunc:
439 static Instruction *foldVecTruncToExtElt(TruncInst &Trunc, InstCombiner &IC, argument
441 Value *TruncOp = Trunc.getOperand(0);
442 Type *DestType = Trunc.getType();
746 case Instruction::Trunc: // zext(trunc(x)) -> trunc(x) or zext(x)
912 Value *Trunc = Builder->CreateTrunc(A, CI.getType()); local
914 return BinaryOperator::CreateAnd(Trunc,
915 ConstantInt::get(Trunc->getType(),
1081 case Instruction::Trunc
[all...]
H A DInstCombineCompares.cpp1219 case Instruction::Trunc:
1539 Value *Trunc = Builder->CreateTrunc(LHSI->getOperand(0), NTy); local
1543 Trunc, Constant::getNullValue(NTy));
2398 if (TruncInst *Trunc = dyn_cast<TruncInst>(ZextArg))
2399 if (Trunc->getType()->getPrimitiveSizeInBits() == MulWidth)
/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.cpp609 SDValue Trunc = CurDAG->getNode(ISD::TRUNCATE, DL, VT, Base); local
610 insertDAGNode(CurDAG, Base.getNode(), Trunc);
611 Base = Trunc;
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp2465 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); local
2466 Constant *RExt = ConstantExpr::getCast(CastInst::ZExt, Trunc, DstTy);
2472 SrcOp, Trunc, Q, MaxRecurse-1))
2524 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); local
2525 Constant *RExt = ConstantExpr::getCast(CastInst::SExt, Trunc, DstTy);
2530 if (Value *V = SimplifyICmpInst(Pred, SrcOp, Trunc, Q, MaxRecurse-1))
3684 return ConstantFoldInstOperands(Instruction::Trunc, Ty, C, Q.DL, Q.TLI);
4079 case Instruction::Trunc:
H A DScalarEvolution.cpp139 const SCEVTruncateExpr *Trunc = cast<SCEVTruncateExpr>(this); local
140 const SCEV *Op = Trunc->getOperand();
142 << *Trunc->getType() << ")";
2056 const SCEVTruncateExpr *Trunc = cast<SCEVTruncateExpr>(Ops[Idx]); variable
2057 Type *DstType = Trunc->getType();
2058 Type *SrcType = Trunc->getOperand()->getType();
4276 if (const SCEVTruncateExpr *Trunc = dyn_cast<SCEVTruncateExpr>(S)) {
4277 ConstantRange X = getRange(Trunc->getOperand(), SignHint);
4278 return setRange(Trunc, SignHint,
4675 APInt Trunc
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp1182 Value *Trunc = Builder.CreateTrunc(DU.WideDef, DU.NarrowDef->getType()); local
1183 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, Trunc);
1248 Value *Trunc = Builder.CreateTrunc(WidePhi, DU.NarrowDef->getType()); local
1249 UsePhi->replaceAllUsesWith(Trunc);
1264 // The cast isn't as wide as the IV, so insert a Trunc.
1307 // follow it. Instead insert a Trunc to kill off the original use,
1313 // 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.cpp1385 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, dl, MinVT, PreExt); local
1387 return DAG.getSetCC(dl, VT, Trunc, C, Cond);
H A DDAGCombiner.cpp215 SDValue Trunc, SDValue ExtLoad, SDLoc DL,
948 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, dl, VT, SDValue(ExtLoad, 0)); local
953 Trunc.getNode()->dump(&DAG);
956 DAG.ReplaceAllUsesOfValueWith(SDValue(Load, 0), Trunc); local
959 AddToWorklist(Trunc.getNode());
4657 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, DL, TruncVT, local
4660 N->getValueType(0), Trunc);
5843 SDValue Trunc, SDValue ExtLoad, SDLoc DL,
5852 if (SOp == Trunc)
5951 SDValue Trunc local
5842 ExtendSetCCUses(const SmallVectorImpl<SDNode *> &SetCCs, SDValue Trunc, SDValue ExtLoad, SDLoc DL, ISD::NodeType ExtType) argument
6043 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, SDLoc(N0), local
6103 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, local
6353 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, SDLoc(N0), local
6406 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, local
6601 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, SDLoc(N0), local
9344 SDNode *Trunc = nullptr; local
[all...]
/external/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp1924 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); local
1933 SDValue NeTrunc = DAG.getSetCC(SL, SetCCVT, Src, Trunc, ISD::SETONE);
1938 return DAG.getNode(ISD::FADD, SL, MVT::f64, Trunc, Add);
2145 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); local
2154 SDValue NeTrunc = DAG.getSetCC(SL, SetCCVT, Src, Trunc, ISD::SETONE);
2159 return DAG.getNode(ISD::FADD, SL, MVT::f64, Trunc, Add);
2227 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); local
2234 SDValue Mul = DAG.getNode(ISD::FMUL, SL, MVT::f64, Trunc, K0);
2239 SDValue Fma = DAG.getNode(ISD::FMA, SL, MVT::f64, FloorMul, K1, Trunc);
/external/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp2345 SDValue Trunc = DAG.getNode(MipsISD::TruncIntFP, SDLoc(Op), FPTy, local
2347 return DAG.getNode(ISD::BITCAST, SDLoc(Op), Op.getValueType(), Trunc);
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
H A DvktShaderBuiltinPrecisionTests.cpp3144 class Trunc : public PreciseFunc1 class in namespace:vkt::shaderexecutor::Functions
3147 Trunc (void) : PreciseFunc1("trunc", deTrunc) {} function in class:vkt::shaderexecutor::Functions::Trunc
5153 addScalarFactory<Trunc>(*funcs);
/external/deqp/modules/glshared/
H A DglsBuiltinPrecisionTests.cpp3195 class Trunc : public PreciseFunc1 class in namespace:deqp::gls::BuiltinPrecisionTests::Functions
3198 Trunc (void) : PreciseFunc1("trunc", deTrunc) {} function in class:deqp::gls::BuiltinPrecisionTests::Functions::Trunc
5249 addScalarFactory<Trunc>(*funcs);
/external/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp2887 // SExt or Trunc instructions.
2963 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); local
2964 if (Instruction *ITrunc = dyn_cast<Instruction>(Trunc)) {
2972 TPT.replaceAllUsesWith(ExtOpnd, Trunc);
4388 case llvm::Instruction::Trunc: {
/external/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp3201 case Instruction::Trunc:
3393 Value *Trunc = Builder.CreateTrunc(RdxParts[part], RdxVecTy); local
3394 Value *Extnd = RdxDesc.isSigned() ? Builder.CreateSExt(Trunc, VecTy)
3395 : Builder.CreateZExt(Trunc, VecTy);
3398 if (*UI != Trunc) {
3841 case Instruction::Trunc:
3851 it->getOpcode() == Instruction::Trunc) {
5534 case Instruction::Trunc:
5539 if (I->getOpcode() == Instruction::Trunc &&
5553 if (I->getOpcode() == Instruction::Trunc) {
[all...]

Completed in 323 milliseconds