From bebaa1737200e4944be71bcab4137a3774c2d07e Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sun, 16 Aug 2026 20:13:50 +0800 Subject: [RISCV][GlobalISel] Generate shift selections --- backend/include/rcc/TableGen/Record.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'backend/include/rcc/TableGen') 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 Captures; + std::vector 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 OperandIndex; + std::optional ComplexOperandIndex; std::string PhysicalRegisterSymbol; + std::string ComplexRendererSymbol; std::string TemporarySymbol; + std::string CapturedOperandSymbol; std::optional CapturedImmediateOperand; std::optional Immediate; std::string ImmediateTransform; @@ -281,6 +298,7 @@ struct SourceSelectionRule final { std::vector OperandBanks; std::vector OperandClasses; std::vector OperandDefConstants; + std::vector DefUsePredicates; std::vector Temporaries; std::vector Actions; std::vector EraseOperandDefinitions; -- cgit v1.2.3