diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-16 20:13:50 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-16 20:13:50 +0800 |
| commit | bebaa1737200e4944be71bcab4137a3774c2d07e (patch) | |
| tree | 16a4c1307722f0e894385bc90736abec31b6b511 /backend/include/rcc/TableGen/Record.h | |
| parent | 2d05768bedb7f4209038330bebab270a7f1b558d (diff) | |
| download | rcc-project-bebaa1737200e4944be71bcab4137a3774c2d07e.tar.gz rcc-project-bebaa1737200e4944be71bcab4137a3774c2d07e.tar.xz | |
[RISCV][GlobalISel] Generate shift selections
Diffstat (limited to 'backend/include/rcc/TableGen/Record.h')
| -rw-r--r-- | backend/include/rcc/TableGen/Record.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/backend/include/rcc/TableGen/Record.h b/backend/include/rcc/TableGen/Record.h index 57e5832..6575b82 100644 --- a/backend/include/rcc/TableGen/Record.h +++ b/backend/include/rcc/TableGen/Record.h @@ -247,6 +247,20 @@ struct SourceSelectionOperandDefConstantPredicate final { TextRange Range; }; +struct SourceSelectionDefUseCapture final { + std::string Symbol; + std::uint32_t OperandIndex = 0; + TextRange Range; +}; + +struct SourceSelectionDefUsePredicate final { + std::uint32_t RootOperandIndex = 0; + std::string OpcodeSymbol; + std::vector<SourceSelectionDefUseCapture> Captures; + std::vector<SourceSelectionOperandDefConstantPredicate> OperandDefConstants; + TextRange Range; +}; + struct SourceSelectionTemporary final { std::string Symbol; std::uint32_t TypeFromOperand = 0; @@ -255,8 +269,11 @@ struct SourceSelectionTemporary final { struct SourceSelectionOperandRenderer final { std::optional<std::uint32_t> OperandIndex; + std::optional<std::uint32_t> ComplexOperandIndex; std::string PhysicalRegisterSymbol; + std::string ComplexRendererSymbol; std::string TemporarySymbol; + std::string CapturedOperandSymbol; std::optional<std::uint32_t> CapturedImmediateOperand; std::optional<std::int64_t> Immediate; std::string ImmediateTransform; @@ -281,6 +298,7 @@ struct SourceSelectionRule final { std::vector<SourceSelectionOperandBankPredicate> OperandBanks; std::vector<SourceSelectionOperandClassPredicate> OperandClasses; std::vector<SourceSelectionOperandDefConstantPredicate> OperandDefConstants; + std::vector<SourceSelectionDefUsePredicate> DefUsePredicates; std::vector<SourceSelectionTemporary> Temporaries; std::vector<SourceSelectionAction> Actions; std::vector<std::uint32_t> EraseOperandDefinitions; |
