diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-12 17:49:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-12 17:49:27 +0000 |
commit | 33e4869ba0345e5cb2c661b265928f2cd75caa7c (patch) | |
tree | 0ce79daf5c6a5174acbf260a67e62651f3e534e2 | |
parent | 6ec3626be40963fa405992e219f94d9524fb6c15 (diff) |
Move the Imp tblgen class from the X86 backend to common code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30907 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Target.td | 7 | ||||
-rw-r--r-- | lib/Target/X86/X86InstrInfo.td | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/Target/Target.td b/lib/Target/Target.td index 75d3d7b4f8..bb87265be3 100644 --- a/lib/Target/Target.td +++ b/lib/Target/Target.td @@ -173,6 +173,13 @@ class Instruction { InstrItinClass Itinerary = NoItinerary;// Execution steps used for scheduling. } +/// Imp - Helper class for specifying the implicit uses/defs set for an +/// instruction. +class Imp<list<Register> uses, list<Register> defs> { + list<Register> Uses = uses; + list<Register> Defs = defs; +} + /// Predicates - These are extra conditionals which are turned into instruction /// selector matching code. Currently each predicate is just a string. class Predicate<string cond> { diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index f7a5af20f9..ac3a985344 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -228,11 +228,6 @@ class X86Inst<bits<8> opcod, Format f, ImmType i, dag ops, string AsmStr> bits<3> FPFormBits = 0; } -class Imp<list<Register> uses, list<Register> defs> { - list<Register> Uses = uses; - list<Register> Defs = defs; -} - // Prefix byte classes which are used to indicate to the ad-hoc machine code // emitter that various prefix bytes are required. |