Home
last modified time | relevance | path

Searched refs:Trunc (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMCodeGenPrepare.cpp242 return EqualTypeSize(Trunc); in isSource()
641 if (Trunc) in TruncateSinks()
642 NewInsts.insert(Trunc); in TruncateSinks()
643 return Trunc; in TruncateSinks()
657 Trunc->moveBefore(Call); in TruncateSinks()
668 Trunc->moveBefore(Switch); in TruncateSinks()
669 Switch->setCondition(Trunc); in TruncateSinks()
678 Trunc->moveBefore(I); in TruncateSinks()
679 I->setOperand(i, Trunc); in TruncateSinks()
733 auto *Trunc = cast<TruncInst>(V); in ConvertTruncs() local
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp509 Value *Trunc; in expandRemainderUpTo32Bits() local
521 Trunc = Builder.CreateTrunc(ExtRem, RemTy); in expandRemainderUpTo32Bits()
523 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo32Bits()
557 Value *Trunc; in expandRemainderUpTo64Bits() local
569 Trunc = Builder.CreateTrunc(ExtRem, RemTy); in expandRemainderUpTo64Bits()
571 Rem->replaceAllUsesWith(Trunc); in expandRemainderUpTo64Bits()
606 Value *Trunc; in expandDivisionUpTo32Bits() local
618 Trunc = Builder.CreateTrunc(ExtDiv, DivTy); in expandDivisionUpTo32Bits()
620 Div->replaceAllUsesWith(Trunc); in expandDivisionUpTo32Bits()
655 Value *Trunc; in expandDivisionUpTo64Bits() local
[all …]
H A DBypassSlowDivision.cpp295 Builder.CreateCast(Instruction::Trunc, Divisor, BypassType); in createFastBB()
297 Builder.CreateCast(Instruction::Trunc, Dividend, BypassType); in createFastBB()
H A DLocal.cpp2764 if (TruncInst *Trunc = dyn_cast<TruncInst>(I->user_back())) { in recognizeBSwapOrBitReverseIdiom() local
2765 DemandedTy = cast<IntegerType>(Trunc->getType()); in recognizeBSwapOrBitReverseIdiom()
2801 auto *Trunc = CastInst::Create(Instruction::Trunc, Provider, DemandedTy, in recognizeBSwapOrBitReverseIdiom() local
2803 InsertedInsts.push_back(Trunc); in recognizeBSwapOrBitReverseIdiom()
2804 Provider = Trunc; in recognizeBSwapOrBitReverseIdiom()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp193 case Instruction::Trunc: in EvaluateInDifferentType()
420 case Instruction::Trunc: in canEvaluateTruncated()
458 Value *TruncOp = Trunc.getOperand(0); in foldVecTruncToExtElt()
459 Type *DestType = Trunc.getType(); in foldVecTruncToExtElt()
497 assert((isa<VectorType>(Trunc.getSrcTy()) || in narrowRotate()
498 shouldChangeType(Trunc.getSrcTy(), Trunc.getType())) && in narrowRotate()
503 Type *DestTy = Trunc.getType(); in narrowRotate()
581 Type *SrcTy = Trunc.getSrcTy(); in narrowBinOp()
582 Type *DestTy = Trunc.getType(); in narrowBinOp()
668 Type *DestTy = Trunc.getType(); in shrinkInsertElt()
[all …]
H A DInstCombineInternal.h562 Instruction *narrowBinOp(TruncInst &Trunc);
565 Instruction *narrowRotate(TruncInst &Trunc);
873 Instruction *foldICmpTruncConstant(ICmpInst &Cmp, TruncInst *Trunc,
H A DInstCombinePHI.cpp689 Constant *Trunc = ConstantExpr::getTrunc(C, NarrowType); in FoldPHIArgZextsIntoPHI() local
690 if (ConstantExpr::getZExt(Trunc, C->getType()) != C) in FoldPHIArgZextsIntoPHI()
692 NewIncoming.push_back(Trunc); in FoldPHIArgZextsIntoPHI()
/freebsd-12.1/contrib/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp45 case Instruction::Trunc: in getRelevantOperands()
105 case Instruction::Trunc: in buildTruncExpressionDag()
312 case Instruction::Trunc: in ReduceExpressionDag()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp209 Value *Trunc = Builder.CreateTrunc(ExtractBits, ArgIntTy); in runOnFunction() local
210 Value *NewVal = Builder.CreateBitCast(Trunc, ArgTy, in runOnFunction()
H A DAMDGPUISelLowering.cpp1624 SDValue Trunc = DAG.getNode(ISD::FTRUNC, DL, MVT::f32, Mul2); in LowerUDIVREM64() local
1625 SDValue Mad2 = DAG.getNode(FMAD, DL, MVT::f32, Trunc, in LowerUDIVREM64()
1981 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); in LowerFCEIL() local
1995 return DAG.getNode(ISD::FADD, SL, MVT::f64, Trunc, Add); in LowerFCEIL()
2207 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); in LowerFFLOOR() local
2221 return DAG.getNode(ISD::FADD, SL, MVT::f64, Trunc, Add); in LowerFFLOOR()
2514 SDValue Trunc = DAG.getNode(ISD::FTRUNC, SL, MVT::f64, Src); in LowerFP64_TO_INT() local
2521 SDValue Mul = DAG.getNode(ISD::FMUL, SL, MVT::f64, Trunc, K0); in LowerFP64_TO_INT()
3151 SDValue Trunc = DAG.getNode(ISD::TRUNCATE, SL, MidVT, in performTruncateCombine() local
3153 DCI.AddToWorklist(Trunc.getNode()); in performTruncateCombine()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp1024 if (!Trunc) in isOptimizableIVTruncate()
1646 Instruction *EntryVal = Trunc ? cast<Instruction>(Trunc) : IV; in widenIntOrFpInduction()
1693 if (Trunc) { in widenIntOrFpInduction()
1711 if (Trunc) in widenIntOrFpInduction()
3188 case Instruction::Trunc: in truncateToMinimalBitwidths()
3582 if (*UI != Trunc) { in fixReduction()
4050 case Instruction::Trunc: in widenInstruction()
5960 case Instruction::Trunc: in getInstructionCost()
5968 return TTI.getCastInstrCost(Instruction::Trunc, Trunc->getDestTy(), in getInstructionCost()
5969 Trunc->getSrcTy(), Trunc); in getInstructionCost()
[all …]
H A DVPlan.h727 TruncInst *Trunc; variable
730 VPWidenIntOrFpInductionRecipe(PHINode *IV, TruncInst *Trunc = nullptr)
731 : VPRecipeBase(VPWidenIntOrFpInductionSC), IV(IV), Trunc(Trunc) {} in VPRecipeBase()
H A DVPlan.cpp631 if (Trunc) { in print()
634 O << " +\n" << Indent << "\" " << VPlanIngredient(Trunc) << "\\l\""; in print()
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp932 const TruncInst *Trunc = cast<TruncInst>(I); in selectTrunc() local
934 unsigned Reg = getRegForValue(Trunc->getOperand(0)); in selectTrunc()
938 if (Trunc->getOperand(0)->getType()->isIntegerTy(64)) { in selectTrunc()
946 updateValueMap(Trunc, Reg); in selectTrunc()
1369 case Instruction::Trunc: in fastSelectInstruction()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp171 Trunc, enumerator
498 pushBOperation(Trunc, APInt(sizeof(n) * 8, n)); in sextOrTrunc()
596 case Trunc: in print()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DInstructions.cpp2282 case Instruction::Trunc: in isIntegerCast()
2321 case Instruction::Trunc: in isNoopCast()
2600 case Trunc: return new TruncInst (S, Ty, Name, InsertAtEnd); in Create()
2654 return Create(Instruction::Trunc, S, Ty, Name, InsertBefore); in CreateTruncOrBitCast()
2662 return Create(Instruction::Trunc, S, Ty, Name, InsertAtEnd); in CreateTruncOrBitCast()
2746 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
2760 (SrcBits > DstBits ? Instruction::Trunc : in CreateIntegerCast()
2939 return Trunc; // int -> smaller int in getCastOpcode()
3037 case Instruction::Trunc: in castIsValid()
3130 ) : CastInst(Ty, Trunc, S, Name, InsertBefore) { in TruncInst()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp108 case Instruction::Trunc: in createReplacementInstr()
/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h409 case Instruction::Trunc: in getOperationCost()
647 if (Opcode == Instruction::BitCast || Opcode == Instruction::Trunc)
651 if (Opcode == Instruction::Trunc &&
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp167 case Instruction::Trunc: in getIntImmCost()
662 if (Opcode == Instruction::Trunc) { in getCastInstrCost()
H A DSystemZISelDAGToDAG.cpp631 SDValue Trunc = CurDAG->getNode(ISD::TRUNCATE, DL, VT, Base); in getAddressOperands() local
632 insertDAGNode(CurDAG, Base.getNode(), Trunc); in getAddressOperands()
633 Base = Trunc; in getAddressOperands()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DInstruction.def184 HANDLE_CAST_INST(37, Trunc , TruncInst ) // Truncate integers
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DDemandedBits.cpp264 case Instruction::Trunc: in determineLiveOperandBits()
H A DCFLGraph.h529 case Instruction::Trunc: in visitConstantExpr()
H A DObjCARCInstKind.cpp273 case Instruction::Trunc: in GetARCInstKind()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp1307 Value *Trunc = Builder.CreateTrunc(DU.WideDef, DU.NarrowDef->getType()); in truncateIVUse() local
1308 DU.NarrowUse->replaceUsesOfWith(DU.NarrowDef, Trunc); in truncateIVUse()
1521 Value *Trunc = Builder.CreateTrunc(WidePhi, DU.NarrowDef->getType()); in widenIVUse() local
1522 UsePhi->replaceAllUsesWith(Trunc); in widenIVUse()

1234