From f6a3a06de3d32eaeba1f3c8bbc5faa5ffaeb1128 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Mon, 17 Aug 2026 02:22:27 +0800 Subject: [RISCV][GlobalISel] Generate integer extension selections --- backend/utils/TableGen/Common/CodeGenTarget.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'backend/utils/TableGen/Common/CodeGenTarget.h') diff --git a/backend/utils/TableGen/Common/CodeGenTarget.h b/backend/utils/TableGen/Common/CodeGenTarget.h index 47dd598..d66cfee 100644 --- a/backend/utils/TableGen/Common/CodeGenTarget.h +++ b/backend/utils/TableGen/Common/CodeGenTarget.h @@ -194,14 +194,19 @@ struct NormalizedSelectionIntegerPredicate final { std::uint32_t Predicate = 0; }; -struct NormalizedSelectionOperandDefConstantPredicate final { - struct Range final { - std::int64_t Minimum = 0; - std::int64_t Maximum = 0; - }; +struct NormalizedSelectionConstantRange final { + std::int64_t Minimum = 0; + std::int64_t Maximum = 0; +}; +struct NormalizedSelectionOperandImmediatePredicate final { + std::uint32_t OperandIndex = 0; + std::vector Ranges; +}; + +struct NormalizedSelectionOperandDefConstantPredicate final { std::uint32_t OperandIndex = 0; - std::vector Ranges; + std::vector Ranges; }; struct NormalizedSelectionDefUseCapture final { @@ -259,9 +264,11 @@ struct NormalizedSelectionRule final { std::uint32_t MatchOpcode = 0; std::optional ResultType; std::optional IntegerPredicate; + std::vector TargetPredicates; std::vector OperandTypes; std::vector OperandBanks; std::vector OperandClasses; + std::vector OperandImmediates; std::vector OperandDefConstants; std::vector DefUsePredicates; std::vector Temporaries; -- cgit v1.2.3