aboutsummaryrefslogtreecommitdiff
path: root/backend/utils/TableGen/Common/CodeGenTarget.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-19 03:19:40 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-19 03:19:40 +0800
commit69e1baa931dfa63838683378fa20ed9c46c68a70 (patch)
treed8ae9222ed52c3036b30371241bd593e0324ce6c /backend/utils/TableGen/Common/CodeGenTarget.h
parentc0f2700e0c7effc5da267bf501232ff4bfea63bc (diff)
downloadrcc-project-69e1baa931dfa63838683378fa20ed9c46c68a70.tar.gz
rcc-project-69e1baa931dfa63838683378fa20ed9c46c68a70.tar.xz
[RISCV][GlobalISel] Match floating comparisons
Diffstat (limited to 'backend/utils/TableGen/Common/CodeGenTarget.h')
-rw-r--r--backend/utils/TableGen/Common/CodeGenTarget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/utils/TableGen/Common/CodeGenTarget.h b/backend/utils/TableGen/Common/CodeGenTarget.h
index 9a7c0a2..020bb88 100644
--- a/backend/utils/TableGen/Common/CodeGenTarget.h
+++ b/backend/utils/TableGen/Common/CodeGenTarget.h
@@ -195,6 +195,11 @@ struct NormalizedSelectionIntegerPredicate final {
std::uint32_t Predicate = 0;
};
+struct NormalizedSelectionFloatingPredicate final {
+ std::uint32_t OperandIndex = 0;
+ std::uint32_t Predicate = 0;
+};
+
struct NormalizedSelectionConstantRange final {
std::int64_t Minimum = 0;
std::int64_t Maximum = 0;
@@ -266,6 +271,7 @@ struct NormalizedSelectionRule final {
std::uint32_t MatchOpcode = 0;
std::optional<NormalizedSelectionTypePredicate> ResultType;
std::optional<NormalizedSelectionIntegerPredicate> IntegerPredicate;
+ std::optional<NormalizedSelectionFloatingPredicate> FloatingPredicate;
std::vector<std::string> TargetPredicates;
std::vector<NormalizedSelectionOperandTypePredicate> OperandTypes;
std::vector<NormalizedSelectionOperandBankPredicate> OperandBanks;