[llvm] 0f1847c - [RISCV] Use RISCVSubtarget::hasStdExtCOrZcd() in HasStdExtCOrZcd tablgen Predicate. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 15 10:45:04 PST 2024
Author: Craig Topper
Date: 2024-02-15T10:44:54-08:00
New Revision: 0f1847cb2c5462a09d65a9b5ac24904ac3c15a0f
URL: https://github.com/llvm/llvm-project/commit/0f1847cb2c5462a09d65a9b5ac24904ac3c15a0f
DIFF: https://github.com/llvm/llvm-project/commit/0f1847cb2c5462a09d65a9b5ac24904ac3c15a0f.diff
LOG: [RISCV] Use RISCVSubtarget::hasStdExtCOrZcd() in HasStdExtCOrZcd tablgen Predicate. NFC
Added:
Modified:
llvm/lib/Target/RISCV/RISCVFeatures.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVFeatures.td b/llvm/lib/Target/RISCV/RISCVFeatures.td
index 5b8d51ff6f61a9..bcaf4477749494 100644
--- a/llvm/lib/Target/RISCV/RISCVFeatures.td
+++ b/llvm/lib/Target/RISCV/RISCVFeatures.td
@@ -350,7 +350,7 @@ def FeatureStdExtZcd
[FeatureStdExtZca]>;
def HasStdExtCOrZcd
- : Predicate<"Subtarget->hasStdExtC() || Subtarget->hasStdExtZcd()">,
+ : Predicate<"Subtarget->hasStdExtCOrZcd()">,
AssemblerPredicate<(any_of FeatureStdExtC, FeatureStdExtZcd),
"'C' (Compressed Instructions) or "
"'Zcd' (Compressed Double-Precision Floating-Point Instructions)">;
More information about the llvm-commits
mailing list