diff options
author | Craig Topper <craig.topper@sifive.com> | 2024-01-22 13:06:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 13:06:37 -0800 |
commit | 7c8030e9bbad913a6a87ddf9ea4d69ab33ffb6c4 (patch) | |
tree | 5c2010d72b1c0b7c679a48feebdb5c0bba196d2e /llvm/lib/Target/RISCV/RISCVFeatures.td | |
parent | 80b67eebd2ca55c571031ee8a6d23ce3c24a86db (diff) | |
download | llvm-7c8030e9bbad913a6a87ddf9ea4d69ab33ffb6c4.zip llvm-7c8030e9bbad913a6a87ddf9ea4d69ab33ffb6c4.tar.gz llvm-7c8030e9bbad913a6a87ddf9ea4d69ab33ffb6c4.tar.bz2 |
[RISCV] Combine HasStdExtZfhOrZfhmin and HasStdExtZfhmin. NFC (#78826)
I kept the AssemblerPredicate and diagnostic from HasStdExtZfhOrZfhmin
that mentions both extensions, but replaced all uses with
HasStdExtZfhmin.
Same for the Zhinxmin equivalent.
Diffstat (limited to 'llvm/lib/Target/RISCV/RISCVFeatures.td')
-rw-r--r-- | llvm/lib/Target/RISCV/RISCVFeatures.td | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/llvm/lib/Target/RISCV/RISCVFeatures.td b/llvm/lib/Target/RISCV/RISCVFeatures.td index cbb096b..c84436c 100644 --- a/llvm/lib/Target/RISCV/RISCVFeatures.td +++ b/llvm/lib/Target/RISCV/RISCVFeatures.td @@ -214,6 +214,7 @@ def FeatureStdExtZfhmin [FeatureStdExtF]>; def HasStdExtZfhmin : Predicate<"Subtarget->hasStdExtZfhmin()">, AssemblerPredicate<(all_of FeatureStdExtZfhmin), + "'Zfh' (Half-Precision Floating-Point) or " "'Zfhmin' (Half-Precision Floating-Point Minimal)">; def FeatureStdExtZfh @@ -225,13 +226,6 @@ def HasStdExtZfh : Predicate<"Subtarget->hasStdExtZfh()">, "'Zfh' (Half-Precision Floating-Point)">; def NoStdExtZfh : Predicate<"!Subtarget->hasStdExtZfh()">; -// FIXME: Remove this. -def HasStdExtZfhOrZfhmin - : Predicate<"Subtarget->hasStdExtZfhmin()">, - AssemblerPredicate<(all_of FeatureStdExtZfhmin), - "'Zfh' (Half-Precision Floating-Point) or " - "'Zfhmin' (Half-Precision Floating-Point Minimal)">; - def FeatureStdExtZfbfmin : SubtargetFeature<"experimental-zfbfmin", "HasStdExtZfbfmin", "true", "'Zfbfmin' (Scalar BF16 Converts)", @@ -278,6 +272,7 @@ def FeatureStdExtZhinxmin [FeatureStdExtZfinx]>; def HasStdExtZhinxmin : Predicate<"Subtarget->hasStdExtZhinxmin()">, AssemblerPredicate<(all_of FeatureStdExtZhinxmin), + "'Zhinx' (Half Float in Integer) or " "'Zhinxmin' (Half Float in Integer Minimal)">; def FeatureStdExtZhinx @@ -289,12 +284,6 @@ def HasStdExtZhinx : Predicate<"Subtarget->hasStdExtZhinx()">, "'Zhinx' (Half Float in Integer)">; def NoStdExtZhinx : Predicate<"!Subtarget->hasStdExtZhinx()">; -def HasStdExtZhinxOrZhinxmin - : Predicate<"Subtarget->hasStdExtZhinxmin()">, - AssemblerPredicate<(all_of FeatureStdExtZhinxmin), - "'Zhinx' (Half Float in Integer) or " - "'Zhinxmin' (Half Float in Integer Minimal)">; - // Compressed Extensions def FeatureStdExtC |