//===----------------------------------------------------------------------===//
// 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:
//===----------------------------------------------------------------------===//
// 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: