Home
last modified time | relevance | path

Searched refs:TLO (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1119 return TLO.CombineTo(Op, TLO.DAG.getUNDEF(VT)); in SimplifyDemandedBits()
1131 return TLO.CombineTo(Op, TLO.DAG.getUNDEF(VT)); in SimplifyDemandedBits()
1419 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, dl, VT)); in SimplifyDemandedBits()
2249 return TLO.CombineTo(Op, TLO.DAG.getBitcast(VT, Src)); in SimplifyDemandedBits()
2286 return TLO.CombineTo(Op, TLO.DAG.getBitcast(VT, Src)); in SimplifyDemandedBits()
2336 return TLO.CombineTo(Op, TLO.DAG.getBitcast(VT, Src)); in SimplifyDemandedBits()
2823 return TLO.CombineTo(Op, TLO.DAG.getUNDEF(VT)); in SimplifyDemandedVectorElts()
2853 return TLO.CombineTo(Op, TLO.DAG.getUNDEF(VT)); in SimplifyDemandedVectorElts()
3268 return TLO.CombineTo(Op, TLO.DAG.getBitcast(VT, Src)); in SimplifyDemandedVectorElts()
3292 return TLO.CombineTo(Op, TLO.DAG.getBitcast(VT, Fold)); in SimplifyDemandedVectorElts()
[all …]
H A DDAGCombiner.cpp332 CommitTargetLoweringOpt(TLO); in SimplifyDemandedBits()
858 CommitTargetLoweringOpt(const TargetLowering::TargetLoweringOpt &TLO) { in CommitTargetLoweringOpt() argument
859 return ((DAGCombiner*)DC)->CommitTargetLoweringOpt(TLO); in CommitTargetLoweringOpt()
1204 LLVM_DEBUG(dbgs() << "\nReplacing.2 "; TLO.Old.dump(&DAG); in CommitTargetLoweringOpt()
1210 DAG.ReplaceAllUsesOfValueWith(TLO.Old, TLO.New); in CommitTargetLoweringOpt()
1213 AddToWorklistWithUsers(TLO.New.getNode()); in CommitTargetLoweringOpt()
1218 if (TLO.Old->use_empty()) in CommitTargetLoweringOpt()
1219 deleteAndRecombine(TLO.Old.getNode()); in CommitTargetLoweringOpt()
1236 CommitTargetLoweringOpt(TLO); in SimplifyDemandedBits()
1249 TLO, 0, AssumeSingleUse)) in SimplifyDemandedVectorElts()
[all …]
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DAArch64SelectionDAGTest.cpp179 TargetLowering::TargetLoweringOpt TLO(*DAG, false, false); in TEST_F() local
181 KnownZero, TLO), in TEST_F()
206 TargetLowering::TargetLoweringOpt TLO(*DAG, false, false); in TEST_F() local
207 EXPECT_TRUE(TL.SimplifyDemandedBits(Op, DemandedBits, Known, TLO)); in TEST_F()
229 TargetLowering::TargetLoweringOpt TLO(*DAG, false, false); in TEST_F() local
230 EXPECT_FALSE(TL.SimplifyDemandedBits(Op, DemandedBits, Known, TLO)); in TEST_F()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DTargetLowering.h3576 TargetLoweringOpt &TLO) const;
3580 TargetLoweringOpt &TLO) const;
3588 TargetLoweringOpt &TLO) const { in targetShrinkDemandedConstant() argument
3596 TargetLoweringOpt &TLO) const;
3613 TargetLoweringOpt &TLO, unsigned Depth = 0,
3619 KnownBits &Known, TargetLoweringOpt &TLO,
3671 TargetLoweringOpt &TLO, unsigned Depth = 0,
3683 const TargetLoweringOpt &TLO) const { in shouldSimplifyDemandedVectorElts() argument
3749 APInt &KnownZero, TargetLoweringOpt &TLO, unsigned Depth = 0) const;
3760 TargetLoweringOpt &TLO,
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.h1119 TargetLoweringOpt &TLO) const override;
1139 TargetLoweringOpt &TLO,
1145 TargetLoweringOpt &TLO,
1152 TargetLoweringOpt &TLO,
H A DX86ISelLowering.cpp41336 return TLO.CombineTo(Op, TLO.DAG.getNode(Opc, SDLoc(Op), VT, NewSrc)); in SimplifyDemandedVectorEltsForTargetNode()
41381 return TLO.CombineTo(Op, insertSubVector(TLO.DAG.getUNDEF(VT), Bcst, 0, in SimplifyDemandedVectorEltsForTargetNode()
41396 return TLO.CombineTo(Op, insertSubVector(TLO.DAG.getUNDEF(VT), Bcst, 0, in SimplifyDemandedVectorEltsForTargetNode()
41555 return TLO.CombineTo(Op, TLO.DAG.getUNDEF(VT)); in SimplifyDemandedVectorEltsForTargetNode()
41564 return TLO.CombineTo(Op, TLO.DAG.getBitcast(VT, OpInputs[Src])); in SimplifyDemandedVectorEltsForTargetNode()
41827 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, SDLoc(Op), VT)); in SimplifyDemandedBitsForTargetNode()
41931 return TLO.CombineTo(Op, TLO.DAG.getBitcast(VT, NewBcst)); in SimplifyDemandedBitsForTargetNode()
41950 return TLO.CombineTo(Op, TLO.DAG.getConstant(0, SDLoc(Op), VT)); in SimplifyDemandedBitsForTargetNode()
41956 return TLO.CombineTo(Op, TLO.DAG.getNode(Opc, SDLoc(Op), VT, NewSrc)); in SimplifyDemandedBitsForTargetNode()
41984 return TLO.CombineTo(Op, TLO.DAG.getNode(Opc, SDLoc(Op), VT, NewSrc)); in SimplifyDemandedBitsForTargetNode()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dsimplifydemandedbits-recursion.ll5 ; to use return value of TLO.DAG.UpdateNodeOperands()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.h118 const TargetLoweringOpt &TLO) const override;
H A DWebAssemblyISelLowering.cpp911 SDValue Op, const TargetLoweringOpt &TLO) const { in shouldSimplifyDemandedVectorElts()
929 if (Op.getOpcode() == ISD::BUILD_VECTOR && TLO.LegalOps && TLO.LegalTys) in shouldSimplifyDemandedVectorElts()
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1604 TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in PerformDAGCombine() local
1607 if (TLI.ShrinkDemandedConstant(OutVal, DemandedMask, TLO) || in PerformDAGCombine()
1608 TLI.SimplifyDemandedBits(OutVal, DemandedMask, Known, TLO)) in PerformDAGCombine()
1609 DCI.CommitTargetLoweringOpt(TLO); in PerformDAGCombine()
1620 TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in PerformDAGCombine() local
1623 if (TLI.ShrinkDemandedConstant(Time, DemandedMask, TLO) || in PerformDAGCombine()
1624 TLI.SimplifyDemandedBits(Time, DemandedMask, Known, TLO)) in PerformDAGCombine()
1625 DCI.CommitTargetLoweringOpt(TLO); in PerformDAGCombine()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMISelLowering.h437 TargetLoweringOpt &TLO,
520 TargetLoweringOpt &TLO) const override;
H A DARMISelLowering.cpp19896 TargetLoweringOpt &TLO) const { in targetShrinkDemandedConstant()
19899 if (!TLO.LegalOps) in targetShrinkDemandedConstant()
19934 return TLO.CombineTo(Op, Op.getOperand(0)); in targetShrinkDemandedConstant()
19939 auto UseMask = [Mask, Op, VT, &TLO](unsigned NewMask) -> bool { in targetShrinkDemandedConstant()
19943 SDValue NewC = TLO.DAG.getConstant(NewMask, DL, VT); in targetShrinkDemandedConstant()
19945 return TLO.CombineTo(Op, NewOp); in targetShrinkDemandedConstant()
19993 return TLO.CombineTo( in SimplifyDemandedBitsForTargetNode()
19994 Op, TLO.DAG.getNode( in SimplifyDemandedBitsForTargetNode()
19996 TLO.DAG.getConstant(32 - ShAmt, SDLoc(Op), MVT::i32))); in SimplifyDemandedBitsForTargetNode()
20006 return TLO.CombineTo(Op, Op0); in SimplifyDemandedBitsForTargetNode()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.h515 TargetLoweringOpt &TLO) const override;
1142 TargetLoweringOpt &TLO,
H A DAArch64ISelLowering.cpp1736 TargetLowering::TargetLoweringOpt &TLO, in optimizeLogicalImm() argument
1815 New = TLO.DAG.getNode(Op.getOpcode(), DL, VT, Op.getOperand(0), in optimizeLogicalImm()
1816 TLO.DAG.getConstant(NewImm, DL, VT)); in optimizeLogicalImm()
1821 SDValue EncConst = TLO.DAG.getTargetConstant(Enc, DL, VT); in optimizeLogicalImm()
1826 return TLO.CombineTo(Op, New); in optimizeLogicalImm()
1831 TargetLoweringOpt &TLO) const { in targetShrinkDemandedConstant()
1833 if (!TLO.LegalOps) in targetShrinkDemandedConstant()
1869 return optimizeLogicalImm(Op, Size, Imm, DemandedBits, TLO, NewOpc); in targetShrinkDemandedConstant()
17538 if (TLI.SimplifyDemandedBits(Addr, DemandedMask, Known, TLO)) { in performTBISimplification()
17539 DCI.CommitTargetLoweringOpt(TLO); in performTBISimplification()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.h415 TargetLoweringOpt &TLO) const override;
H A DRISCVISelLowering.cpp9436 TargetLoweringOpt &TLO) const { in targetShrinkDemandedConstant()
9438 if (!TLO.LegalOps) in targetShrinkDemandedConstant()
9466 auto UseMask = [Mask, Op, &TLO](const APInt &NewMask) -> bool { in targetShrinkDemandedConstant()
9470 SDValue NewC = TLO.DAG.getConstant(NewMask, DL, Op.getValueType()); in targetShrinkDemandedConstant()
9471 SDValue NewOp = TLO.DAG.getNode(Op.getOpcode(), DL, Op.getValueType(), in targetShrinkDemandedConstant()
9473 return TLO.CombineTo(Op, NewOp); in targetShrinkDemandedConstant()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp4121 TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in PerformDAGCombine() local
4124 if (TLI.ShrinkDemandedConstant(BitsFrom, Demanded, TLO) || in PerformDAGCombine()
4125 TLI.SimplifyDemandedBits(BitsFrom, Demanded, Known, TLO)) { in PerformDAGCombine()
4126 DCI.CommitTargetLoweringOpt(TLO); in PerformDAGCombine()