Home
last modified time | relevance | path

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

12

/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp489 TargetLoweringOpt &TLO) const { in ShrinkDemandedConstant()
494 if (targetShrinkDemandedConstant(Op, DemandedBits, DemandedElts, TLO)) in ShrinkDemandedConstant()
495 return TLO.New.getNode(); in ShrinkDemandedConstant()
515 SDValue NewC = TLO.DAG.getConstant(DemandedBits & C, DL, VT); in ShrinkDemandedConstant()
516 SDValue NewOp = TLO.DAG.getNode(Opcode, DL, VT, Op.getOperand(0), NewC); in ShrinkDemandedConstant()
517 return TLO.CombineTo(Op, NewOp); in ShrinkDemandedConstant()
529 TargetLoweringOpt &TLO) const { in ShrinkDemandedConstant()
534 return ShrinkDemandedConstant(Op, DemandedBits, DemandedElts, TLO); in ShrinkDemandedConstant()
542 TargetLoweringOpt &TLO) const { in ShrinkDemandedOp()
548 SelectionDAG &DAG = TLO.DAG; in ShrinkDemandedOp()
[all …]
DDAGCombiner.cpp312 void CommitTargetLoweringOpt(const TargetLowering::TargetLoweringOpt &TLO);
327 TargetLowering::TargetLoweringOpt TLO(DAG, LegalTypes, LegalOperations); in SimplifyDemandedBits() local
329 if (!TLI.SimplifyDemandedBits(Op, DemandedBits, Known, TLO, 0, false)) in SimplifyDemandedBits()
335 CommitTargetLoweringOpt(TLO); in SimplifyDemandedBits()
855 CommitTargetLoweringOpt(const TargetLowering::TargetLoweringOpt &TLO) { in CommitTargetLoweringOpt() argument
856 return ((DAGCombiner*)DC)->CommitTargetLoweringOpt(TLO); in CommitTargetLoweringOpt()
1144 CommitTargetLoweringOpt(const TargetLowering::TargetLoweringOpt &TLO) { in CommitTargetLoweringOpt() argument
1147 LLVM_DEBUG(dbgs() << "\nReplacing.2 "; TLO.Old.getNode()->dump(&DAG); in CommitTargetLoweringOpt()
1148 dbgs() << "\nWith: "; TLO.New.getNode()->dump(&DAG); in CommitTargetLoweringOpt()
1154 DAG.ReplaceAllUsesOfValueWith(TLO.Old, TLO.New); in CommitTargetLoweringOpt()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp495 TargetLoweringOpt &TLO) const { in ShrinkDemandedConstant()
500 if (targetShrinkDemandedConstant(Op, Demanded, TLO)) in ShrinkDemandedConstant()
501 return TLO.New.getNode(); in ShrinkDemandedConstant()
521 SDValue NewC = TLO.DAG.getConstant(Demanded & C, DL, VT); in ShrinkDemandedConstant()
522 SDValue NewOp = TLO.DAG.getNode(Opcode, DL, VT, Op.getOperand(0), NewC); in ShrinkDemandedConstant()
523 return TLO.CombineTo(Op, NewOp); in ShrinkDemandedConstant()
538 TargetLoweringOpt &TLO) const { in ShrinkDemandedOp()
544 SelectionDAG &DAG = TLO.DAG; in ShrinkDemandedOp()
574 return TLO.CombineTo(Op, Z); in ShrinkDemandedOp()
583 TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in SimplifyDemandedBits() local
[all …]
DDAGCombiner.cpp295 void CommitTargetLoweringOpt(const TargetLowering::TargetLoweringOpt &TLO);
779 CommitTargetLoweringOpt(const TargetLowering::TargetLoweringOpt &TLO) { in CommitTargetLoweringOpt() argument
780 return ((DAGCombiner*)DC)->CommitTargetLoweringOpt(TLO); in CommitTargetLoweringOpt()
1031 CommitTargetLoweringOpt(const TargetLowering::TargetLoweringOpt &TLO) { in CommitTargetLoweringOpt() argument
1035 DAG.ReplaceAllUsesOfValueWith(TLO.Old, TLO.New); in CommitTargetLoweringOpt()
1038 AddToWorklistWithUsers(TLO.New.getNode()); in CommitTargetLoweringOpt()
1043 if (TLO.Old.getNode()->use_empty()) in CommitTargetLoweringOpt()
1044 deleteAndRecombine(TLO.Old.getNode()); in CommitTargetLoweringOpt()
1051 TargetLowering::TargetLoweringOpt TLO(DAG, LegalTypes, LegalOperations); in SimplifyDemandedBits() local
1053 if (!TLI.SimplifyDemandedBits(Op, DemandedBits, DemandedElts, Known, TLO)) in SimplifyDemandedBits()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp432 TargetLoweringOpt &TLO, in SimplifyDemandedBits() argument
439 auto &DL = TLO.DAG.getDataLayout(); in SimplifyDemandedBits()
449 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth); in SimplifyDemandedBits()
458 return TLO.CombineTo(Op, TLO.DAG.getUNDEF(Op.getValueType())); in SimplifyDemandedBits()
479 TLO.DAG.computeKnownBits(Op.getOperand(0), LHSZero, LHSOne, Depth); in SimplifyDemandedBits()
482 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
485 if (TLO.ShrinkDemandedConstant(Op, ~LHSZero & NewMask)) in SimplifyDemandedBits()
490 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits()
494 KnownZero2, KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
501 return TLO.CombineTo(Op, Op.getOperand(0)); in SimplifyDemandedBits()
[all …]
DDAGCombiner.cpp176 void CommitTargetLoweringOpt(const TargetLowering::TargetLoweringOpt &TLO);
560 CommitTargetLoweringOpt(const TargetLowering::TargetLoweringOpt &TLO) { in CommitTargetLoweringOpt() argument
561 return ((DAGCombiner*)DC)->CommitTargetLoweringOpt(TLO); in CommitTargetLoweringOpt()
897 CommitTargetLoweringOpt(const TargetLowering::TargetLoweringOpt &TLO) { in CommitTargetLoweringOpt() argument
901 DAG.ReplaceAllUsesOfValueWith(TLO.Old, TLO.New); in CommitTargetLoweringOpt()
904 AddToWorklist(TLO.New.getNode()); in CommitTargetLoweringOpt()
905 AddUsersToWorklist(TLO.New.getNode()); in CommitTargetLoweringOpt()
910 if (TLO.Old.getNode()->use_empty()) in CommitTargetLoweringOpt()
911 deleteAndRecombine(TLO.Old.getNode()); in CommitTargetLoweringOpt()
917 TargetLowering::TargetLoweringOpt TLO(DAG, LegalTypes, LegalOperations); in SimplifyDemandedBits() local
[all …]
/external/llvm-project/llvm/unittests/CodeGen/
DAArch64SelectionDAGTest.cpp194 TargetLowering::TargetLoweringOpt TLO(*DAG, false, false); in TEST_F() local
196 KnownZero, TLO), in TEST_F()
224 TargetLowering::TargetLoweringOpt TLO(*DAG, false, false); in TEST_F() local
225 EXPECT_TRUE(TL.SimplifyDemandedBits(Op, DemandedBits, Known, TLO)); in TEST_F()
250 TargetLowering::TargetLoweringOpt TLO(*DAG, false, false); in TEST_F() local
251 EXPECT_FALSE(TL.SimplifyDemandedBits(Op, DemandedBits, Known, TLO)); in TEST_F()
/external/llvm-project/llvm/include/llvm/CodeGen/
DTargetLowering.h3281 TargetLoweringOpt &TLO) const;
3285 TargetLoweringOpt &TLO) const;
3293 TargetLoweringOpt &TLO) const { in targetShrinkDemandedConstant() argument
3301 TargetLoweringOpt &TLO) const;
3318 TargetLoweringOpt &TLO, unsigned Depth = 0,
3324 KnownBits &Known, TargetLoweringOpt &TLO,
3370 TargetLoweringOpt &TLO, unsigned Depth = 0,
3441 APInt &KnownZero, TargetLoweringOpt &TLO, unsigned Depth = 0) const;
3452 TargetLoweringOpt &TLO,
3505 void CommitTargetLoweringOpt(const TargetLoweringOpt &TLO);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DTargetLowering.h3106 TargetLoweringOpt &TLO) const;
3112 TargetLoweringOpt &TLO) const { in targetShrinkDemandedConstant() argument
3120 TargetLoweringOpt &TLO) const;
3137 TargetLoweringOpt &TLO, unsigned Depth = 0,
3143 KnownBits &Known, TargetLoweringOpt &TLO,
3176 TargetLoweringOpt &TLO, unsigned Depth = 0,
3229 APInt &KnownZero, TargetLoweringOpt &TLO, unsigned Depth = 0) const;
3240 TargetLoweringOpt &TLO,
3293 void CommitTargetLoweringOpt(const TargetLoweringOpt &TLO);
/external/llvm-project/llvm/lib/Target/X86/
DX86ISelLowering.h1051 TargetLoweringOpt &TLO) const override;
1071 TargetLoweringOpt &TLO,
1077 TargetLoweringOpt &TLO,
1084 TargetLoweringOpt &TLO,
DX86ISelLowering.cpp33959 TargetLoweringOpt &TLO) const { in targetShrinkDemandedConstant()
33987 EVT ExtSVT = EVT::getIntegerVT(*TLO.DAG.getContext(), ActiveBits); in targetShrinkDemandedConstant()
33988 EVT ExtVT = EVT::getVectorVT(*TLO.DAG.getContext(), ExtSVT, in targetShrinkDemandedConstant()
33991 TLO.DAG.getNode(ISD::SIGN_EXTEND_INREG, SDLoc(Op), VT, in targetShrinkDemandedConstant()
33992 Op.getOperand(1), TLO.DAG.getValueType(ExtVT)); in targetShrinkDemandedConstant()
33994 TLO.DAG.getNode(Opcode, SDLoc(Op), VT, Op.getOperand(0), NewC); in targetShrinkDemandedConstant()
33995 return TLO.CombineTo(Op, NewOp); in targetShrinkDemandedConstant()
34042 SDValue NewC = TLO.DAG.getConstant(ZeroExtendMask, DL, VT); in targetShrinkDemandedConstant()
34043 SDValue NewOp = TLO.DAG.getNode(ISD::AND, DL, VT, Op.getOperand(0), NewC); in targetShrinkDemandedConstant()
34044 return TLO.CombineTo(Op, NewOp); in targetShrinkDemandedConstant()
[all …]
/external/llvm-project/llvm/test/CodeGen/AMDGPU/
Dsimplifydemandedbits-recursion.ll5 ; to use return value of TLO.DAG.UpdateNodeOperands()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp1607 TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in PerformDAGCombine() local
1610 if (TLI.ShrinkDemandedConstant(OutVal, DemandedMask, TLO) || in PerformDAGCombine()
1611 TLI.SimplifyDemandedBits(OutVal, DemandedMask, Known, TLO)) in PerformDAGCombine()
1612 DCI.CommitTargetLoweringOpt(TLO); in PerformDAGCombine()
1623 TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in PerformDAGCombine() local
1626 if (TLI.ShrinkDemandedConstant(Time, DemandedMask, TLO) || in PerformDAGCombine()
1627 TLI.SimplifyDemandedBits(Time, DemandedMask, Known, TLO)) in PerformDAGCombine()
1628 DCI.CommitTargetLoweringOpt(TLO); in PerformDAGCombine()
/external/llvm-project/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp1606 TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in PerformDAGCombine() local
1609 if (TLI.ShrinkDemandedConstant(OutVal, DemandedMask, TLO) || in PerformDAGCombine()
1610 TLI.SimplifyDemandedBits(OutVal, DemandedMask, Known, TLO)) in PerformDAGCombine()
1611 DCI.CommitTargetLoweringOpt(TLO); in PerformDAGCombine()
1622 TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in PerformDAGCombine() local
1625 if (TLI.ShrinkDemandedConstant(Time, DemandedMask, TLO) || in PerformDAGCombine()
1626 TLI.SimplifyDemandedBits(Time, DemandedMask, Known, TLO)) in PerformDAGCombine()
1627 DCI.CommitTargetLoweringOpt(TLO); in PerformDAGCombine()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp1619 TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in PerformDAGCombine() local
1622 if (TLO.ShrinkDemandedConstant(OutVal, DemandedMask) || in PerformDAGCombine()
1624 TLO)) in PerformDAGCombine()
1625 DCI.CommitTargetLoweringOpt(TLO); in PerformDAGCombine()
1636 TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in PerformDAGCombine() local
1639 if (TLO.ShrinkDemandedConstant(Time, DemandedMask) || in PerformDAGCombine()
1641 TLO)) in PerformDAGCombine()
1642 DCI.CommitTargetLoweringOpt(TLO); in PerformDAGCombine()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86ISelLowering.h938 TargetLoweringOpt &TLO) const override;
958 TargetLoweringOpt &TLO,
965 TargetLoweringOpt &TLO,
DX86ISelLowering.cpp32484 TargetLoweringOpt &TLO) const { in targetShrinkDemandedConstant()
32535 SDValue NewC = TLO.DAG.getConstant(ZeroExtendMask, DL, VT); in targetShrinkDemandedConstant()
32536 SDValue NewOp = TLO.DAG.getNode(ISD::AND, DL, VT, Op.getOperand(0), NewC); in targetShrinkDemandedConstant()
32537 return TLO.CombineTo(Op, NewOp); in targetShrinkDemandedConstant()
35359 TargetLoweringOpt &TLO, unsigned Depth) const { in SimplifyDemandedVectorEltsForTargetNode() argument
35372 if (SimplifyDemandedVectorElts(LHS, DemandedElts, LHSUndef, LHSZero, TLO, in SimplifyDemandedVectorEltsForTargetNode()
35375 if (SimplifyDemandedVectorElts(RHS, DemandedElts, RHSUndef, RHSZero, TLO, in SimplifyDemandedVectorEltsForTargetNode()
35402 if (SimplifyDemandedVectorElts(Amt, AmtElts, AmtUndef, AmtZero, TLO, in SimplifyDemandedVectorEltsForTargetNode()
35412 if (SimplifyDemandedVectorElts(Src, DemandedElts, SrcUndef, KnownZero, TLO, in SimplifyDemandedVectorEltsForTargetNode()
35425 return TLO.CombineTo(Op, Src); in SimplifyDemandedVectorEltsForTargetNode()
[all …]
/external/llvm-project/llvm/lib/Target/ARM/
DARMISelLowering.h390 TargetLoweringOpt &TLO,
472 TargetLoweringOpt &TLO) const override;
/external/python/pybind11/tools/
Dpybind11Config.cmake.in152 Use thin TLO instead of regular if there's a choice (pybind11's selection
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp2144 TargetLowering::TargetLoweringOpt TLO(DAG, true, true); in simplifyI24() local
2145 if (TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) in simplifyI24()
2146 DCI.CommitTargetLoweringOpt(TLO); in simplifyI24()
2709 TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in PerformDAGCombine() local
2712 if (TLO.ShrinkDemandedConstant(BitsFrom, Demanded) || in PerformDAGCombine()
2714 KnownZero, KnownOne, TLO)) { in PerformDAGCombine()
2715 DCI.CommitTargetLoweringOpt(TLO); in PerformDAGCombine()
DSIISelLowering.cpp2908 TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(), in PerformDAGCombine() local
2911 if (TLO.ShrinkDemandedConstant(Src, Demanded) || in PerformDAGCombine()
2912 TLI.SimplifyDemandedBits(Src, Demanded, KnownZero, KnownOne, TLO)) { in PerformDAGCombine()
2913 DCI.CommitTargetLoweringOpt(TLO); in PerformDAGCombine()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMISelLowering.h418 TargetLoweringOpt &TLO) const override;
/external/llvm/include/llvm/Target/
DTargetLowering.h2296 TargetLoweringOpt &TLO, unsigned Depth = 0) const;
2336 void CommitTargetLoweringOpt(const TargetLoweringOpt &TLO);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h329 TargetLoweringOpt &TLO) const override;
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h473 TargetLoweringOpt &TLO) const override;

12