[llvm] b77be0b - [RISCV] Be more explicit string replacements in RISCVInstrInfoVPseudos.td. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 22 13:00:44 PST 2023
Author: Craig Topper
Date: 2023-02-22T12:56:16-08:00
New Revision: b77be0bd54685df284d5e66f8c54fb3b5437a0eb
URL: https://github.com/llvm/llvm-project/commit/b77be0bd54685df284d5e66f8c54fb3b5437a0eb
DIFF: https://github.com/llvm/llvm-project/commit/b77be0bd54685df284d5e66f8c54fb3b5437a0eb.diff
LOG: [RISCV] Be more explicit string replacements in RISCVInstrInfoVPseudos.td. NFC
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.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
index 9d763df01553..45ccbb7dd6ce 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
@@ -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", ""],
More information about the llvm-commits
mailing list