[llvm] 079b8ba - [RISCV][NFC] Remove rdty arg of PseudoLoad and the default rdty value of PseudoFloatLoad (#67014)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 10:21:32 PDT 2023
Author: Wang Pengcheng
Date: 2023-09-23T01:21:28+08:00
New Revision: 079b8bae2c845506ab5d6fd77ff9904c1ef8410c
URL: https://github.com/llvm/llvm-project/commit/079b8bae2c845506ab5d6fd77ff9904c1ef8410c
DIFF: https://github.com/llvm/llvm-project/commit/079b8bae2c845506ab5d6fd77ff9904c1ef8410c.diff
LOG: [RISCV][NFC] Remove rdty arg of PseudoLoad and the default rdty value of PseudoFloatLoad (#67014)
`rdty` of `PseudoLoad` is always `GPR` and it will never be `GPR` for
`PseudoFloatLoad`.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInstrFormats.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInstrFormats.td b/llvm/lib/Target/RISCV/RISCVInstrFormats.td
index f19a0b356aafbca..e80ba26800a131e 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrFormats.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrFormats.td
@@ -241,8 +241,8 @@ class PseudoQuietFCMP<DAGOperand Ty>
}
// Pseudo load instructions.
-class PseudoLoad<string opcodestr, RegisterClass rdty = GPR>
- : Pseudo<(outs rdty:$rd), (ins bare_symbol:$addr), [], opcodestr, "$rd, $addr"> {
+class PseudoLoad<string opcodestr>
+ : Pseudo<(outs GPR:$rd), (ins bare_symbol:$addr), [], opcodestr, "$rd, $addr"> {
let hasSideEffects = 0;
let mayLoad = 1;
let mayStore = 0;
@@ -250,7 +250,7 @@ class PseudoLoad<string opcodestr, RegisterClass rdty = GPR>
let isAsmParserOnly = 1;
}
-class PseudoFloatLoad<string opcodestr, RegisterClass rdty = GPR>
+class PseudoFloatLoad<string opcodestr, RegisterClass rdty>
: Pseudo<(outs GPR:$tmp, rdty:$rd), (ins bare_symbol:$addr), [], opcodestr, "$rd, $addr, $tmp"> {
let hasSideEffects = 0;
let mayLoad = 1;
More information about the llvm-commits
mailing list