diff options
Diffstat (limited to 'backend/include')
| -rw-r--r-- | backend/include/rcc/CodeGen/GlobalISel/GIMatchTableExecutor.h | 1 | ||||
| -rw-r--r-- | backend/include/rcc/TableGen/Record.h | 7 |
2 files changed, 8 insertions, 0 deletions
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<SourceSelectionTypePredicate> ResultType; std::optional<SourceSelectionIntegerPredicate> IntegerPredicate; std::optional<SourceSelectionFloatingPredicate> FloatingPredicate; + std::optional<SourceSelectionMemoryPredicate> MemoryPredicate; std::vector<SourceSelectionTargetPredicate> TargetPredicates; std::vector<SourceSelectionOperandTypePredicate> OperandTypes; std::vector<SourceSelectionOperandBankPredicate> OperandBanks; |
