Add a class for pseudo-instructions. Use it.
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 16 Jul 2004 10:32:10 +0000 (10:32 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 16 Jul 2004 10:32:10 +0000 (10:32 +0000)
Add IMPLICIT_USE and IMPLICIT_DEF, a la X86.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14884 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcInstrInfo.td
lib/Target/SparcV8/SparcV8InstrInfo.td

index 3cc43dc1edaed0b549f88e96e2942cb7ff36254d..fa088e1d924b4963c64008b0ab354ea64ac00e66 100644 (file)
@@ -36,15 +36,14 @@ include "SparcV8InstrInfo_F3.td"
 //===----------------------------------------------------------------------===//
 
 // Pseudo instructions.
-def PHI : InstV8 {
-  let Name = "PHI";
-}
-def ADJCALLSTACKDOWN : InstV8 {
-  let Name = "ADJCALLSTACKDOWN";
-}
-def ADJCALLSTACKUP : InstV8 {
-  let Name = "ADJCALLSTACKUP";
+class PseudoInstV8<string nm> : InstV8  {
+  let Name = nm;
 }
+def PHI : PseudoInstV8<"PHI">;
+def ADJCALLSTACKDOWN : PseudoInstV8<"ADJCALLSTACKDOWN">;
+def ADJCALLSTACKUP : PseudoInstV8<"ADJCALLSTACKUP">;
+def IMPLICIT_USE : PseudoInstV8<"IMPLICIT_USE">;
+def IMPLICIT_DEF : PseudoInstV8<"IMPLICIT_DEF">;
 
 // Section A.3 - Synthetic Instructions, p. 85
 // special cases of JMPL:
index 3cc43dc1edaed0b549f88e96e2942cb7ff36254d..fa088e1d924b4963c64008b0ab354ea64ac00e66 100644 (file)
@@ -36,15 +36,14 @@ include "SparcV8InstrInfo_F3.td"
 //===----------------------------------------------------------------------===//
 
 // Pseudo instructions.
-def PHI : InstV8 {
-  let Name = "PHI";
-}
-def ADJCALLSTACKDOWN : InstV8 {
-  let Name = "ADJCALLSTACKDOWN";
-}
-def ADJCALLSTACKUP : InstV8 {
-  let Name = "ADJCALLSTACKUP";
+class PseudoInstV8<string nm> : InstV8  {
+  let Name = nm;
 }
+def PHI : PseudoInstV8<"PHI">;
+def ADJCALLSTACKDOWN : PseudoInstV8<"ADJCALLSTACKDOWN">;
+def ADJCALLSTACKUP : PseudoInstV8<"ADJCALLSTACKUP">;
+def IMPLICIT_USE : PseudoInstV8<"IMPLICIT_USE">;
+def IMPLICIT_DEF : PseudoInstV8<"IMPLICIT_DEF">;
 
 // Section A.3 - Synthetic Instructions, p. 85
 // special cases of JMPL: