diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-16 10:32:10 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-16 10:32:10 +0000 |
commit | 7c4676f341a1abfe555e78fb2aac0a2d7cbe85cf (patch) | |
tree | fc62f12c76d8a4b4055d8bb953a9cf0d323ae43c /lib/Target/Sparc | |
parent | 7d7ac63366956473c8b3ef790447f576315e4c21 (diff) |
Add a class for pseudo-instructions. Use it.
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
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcInstrInfo.td | 15 |
1 files changed, 7 insertions, 8 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: |