aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Sparc/SparcInstrInfo.td15
-rw-r--r--lib/Target/SparcV8/SparcV8InstrInfo.td15
2 files changed, 14 insertions, 16 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td
index 3cc43dc1ed..fa088e1d92 100644
--- a/lib/Target/Sparc/SparcInstrInfo.td
+++ b/lib/Target/Sparc/SparcInstrInfo.td
@@ -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:
diff --git a/lib/Target/SparcV8/SparcV8InstrInfo.td b/lib/Target/SparcV8/SparcV8InstrInfo.td
index 3cc43dc1ed..fa088e1d92 100644
--- a/lib/Target/SparcV8/SparcV8InstrInfo.td
+++ b/lib/Target/SparcV8/SparcV8InstrInfo.td
@@ -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: