[PATCH] D156200: [RISCV] Don't print a tab after mnemonics that don't have operands.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 25 00:10:48 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7084c3ee93e2: [RISCV] Don't print a tab after mnemonics that don't have operands. (authored by craig.topper).
Changed prior to commit:
https://reviews.llvm.org/D156200?vs=543808&id=543853#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156200/new/
https://reviews.llvm.org/D156200
Files:
llvm/lib/Target/RISCV/RISCVInstrFormats.td
Index: llvm/lib/Target/RISCV/RISCVInstrFormats.td
===================================================================
--- llvm/lib/Target/RISCV/RISCVInstrFormats.td
+++ llvm/lib/Target/RISCV/RISCVInstrFormats.td
@@ -162,7 +162,7 @@
dag OutOperandList = outs;
dag InOperandList = ins;
- let AsmString = opcodestr # "\t" # argstr;
+ let AsmString = opcodestr # !if(!empty(argstr), "", "\t" # argstr);
let Pattern = pattern;
let TSFlags{4-0} = format.Value;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156200.543853.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230725/9cfeb936/attachment.bin>
More information about the llvm-commits
mailing list