From 219b315373ef34ca20cc78b89bf3c3d19442ffbd Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Wed, 19 Aug 2026 03:41:05 +0800 Subject: [RISCV][GlobalISel] Generate integer load selection --- backend/include/rcc/CodeGen/GlobalISel/GIMatchTableExecutor.h | 1 + backend/include/rcc/TableGen/Record.h | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'backend/include/rcc') diff --git a/backend/include/rcc/CodeGen/GlobalISel/GIMatchTableExecutor.h b/backend/include/rcc/CodeGen/GlobalISel/GIMatchTableExecutor.h index a8b4f44..31966fe 100644 --- a/backend/include/rcc/CodeGen/GlobalISel/GIMatchTableExecutor.h +++ b/backend/include/rcc/CodeGen/GlobalISel/GIMatchTableExecutor.h @@ -38,6 +38,7 @@ enum class GIMatchTableOpcode : std::uint8_t { CheckOperandClass, CheckIntegerPredicate, CheckFloatingPredicate, + CheckMemorySize, CheckTargetPredicate, CheckOperandImmediateRanges, CheckOperandDefConstantRanges, diff --git a/backend/include/rcc/TableGen/Record.h b/backend/include/rcc/TableGen/Record.h index 7039d9d..b5abc23 100644 --- a/backend/include/rcc/TableGen/Record.h +++ b/backend/include/rcc/TableGen/Record.h @@ -247,6 +247,12 @@ struct SourceSelectionTargetPredicate final { TextRange Range; }; +struct SourceSelectionMemoryPredicate final { + std::uint32_t MemoryOperandIndex = 0; + std::uint32_t Bytes = 0; + TextRange Range; +}; + struct SourceSelectionConstantRange final { std::int64_t Minimum = 0; std::int64_t Maximum = 0; @@ -314,6 +320,7 @@ struct SourceSelectionRule final { std::optional ResultType; std::optional IntegerPredicate; std::optional FloatingPredicate; + std::optional MemoryPredicate; std::vector TargetPredicates; std::vector OperandTypes; std::vector OperandBanks; -- cgit v1.2.3