OSDN Git Service

[RISCV] Pseudo instructions are isCodeGenOnly, have blank asmstr
authorAlex Bradbury <asb@lowrisc.org>
Tue, 14 Feb 2017 05:17:23 +0000 (05:17 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Tue, 14 Feb 2017 05:17:23 +0000 (05:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295027 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/RISCV/RISCVInstrFormats.td

index 1e9bc3b..3fab712 100644 (file)
@@ -44,8 +44,9 @@ class RISCVInst<dag outs, dag ins, string asmstr, list<dag> pattern>
 
 // Pseudo instructions
 class Pseudo<dag outs, dag ins, string asmstr, list<dag> pattern>
-    : RISCVInst<outs, ins, asmstr, pattern> {
+    : RISCVInst<outs, ins, "", pattern> {
   let isPseudo = 1;
+  let isCodeGenOnly = 1;
 }
 
 class FR<bits<7> funct7, bits<3> funct3, bits<7> opcode, dag outs, dag ins,