diff options
author | Christopher Lamb <christopher.lamb@gmail.com> | 2008-03-10 06:12:08 +0000 |
---|---|---|
committer | Christopher Lamb <christopher.lamb@gmail.com> | 2008-03-10 06:12:08 +0000 |
commit | 3feb0170a8d65984ce5c01a85e7dfd4005f8bb35 (patch) | |
tree | ca6ec84f80cafe500a012b1aab9a96e34a305084 /lib/Target/X86/X86RegisterInfo.h | |
parent | 7e93e16193553419a7e9907d6dbe41e6393aff4e (diff) | |
download | llvm-3feb0170a8d65984ce5c01a85e7dfd4005f8bb35.tar.gz llvm-3feb0170a8d65984ce5c01a85e7dfd4005f8bb35.tar.bz2 llvm-3feb0170a8d65984ce5c01a85e7dfd4005f8bb35.tar.xz |
Allow insert_subreg into implicit, target-specific values.
Change insert/extract subreg instructions to be able to be used in TableGen patterns.
Use the above features to reimplement an x86-64 pseudo instruction as a pattern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86RegisterInfo.h')
-rw-r--r-- | lib/Target/X86/X86RegisterInfo.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/X86/X86RegisterInfo.h b/lib/Target/X86/X86RegisterInfo.h index 8b010a9240..1c8f5e28b9 100644 --- a/lib/Target/X86/X86RegisterInfo.h +++ b/lib/Target/X86/X86RegisterInfo.h @@ -32,6 +32,15 @@ namespace N86 { }; } +namespace X86 { + /// SubregIndex - The index of various sized subregister classes. Note that + /// these indices must be kept in sync with the class indices in the + /// X86RegisterInfo.td file. + enum SubregIndex { + SUBREG_8BIT = 1, SUBREG_16BIT = 2, SUBREG_32BIT = 3 + }; +} + /// DWARFFlavour - Flavour of dwarf regnumbers /// namespace DWARFFlavour { |