[RISCV] Be more explicit string replacements in RISCVInstrInfoVPseudos.td. NFC
authorCraig Topper <craig.topper@sifive.com>
Wed, 22 Feb 2023 20:53:57 +0000 (12:53 -0800)
committerCraig Topper <craig.topper@sifive.com>
Wed, 22 Feb 2023 20:56:16 +0000 (12:56 -0800)
Instead of replacing "F16", "F32", "F64" anywhere in the string.
Only replace them when proceeded by a "_", "_V", or "_W".

This allows F16/F32/F64 to appear in the instruction name.
This is needed for some vendor instructions in our downstream. We
may be upstreaming them in the future.

llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

index 9d763df..45ccbb7 100644 (file)
@@ -49,9 +49,15 @@ defvar TA_MA = 3;
 
 class PseudoToVInst<string PseudoInst> {
   defvar AffixSubsts = [["Pseudo", ""],
-                        ["F64", "F"],
-                        ["F32", "F"],
-                        ["F16", "F"],
+                        ["_F64", "_F"],
+                        ["_F32", "_F"],
+                        ["_F16", "_F"],
+                        ["_VF64", "_VF"],
+                        ["_VF32", "_VF"],
+                        ["_VF16", "_VF"],
+                        ["_WF64", "_WF"],
+                        ["_WF32", "_WF"],
+                        ["_WF16", "_WF"],
                         ["_TU", ""],
                         ["_TIED", ""],
                         ["_MASK", ""],