diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2002-12-05 08:30:40 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2002-12-05 08:30:40 +0000 |
| commit | a4a10fe88bca186ef451e7f0a0a8acc6b8e19965 (patch) | |
| tree | 6bde534c4ff4935cd7e170a3eb4384d93290d430 /llvm/lib/Target/X86/X86InstrInfo.h | |
| parent | 6e2b097d26662d766b9284d1b4cde662d3491702 (diff) | |
| download | bcm5719-llvm-a4a10fe88bca186ef451e7f0a0a8acc6b8e19965.tar.gz bcm5719-llvm-a4a10fe88bca186ef451e7f0a0a8acc6b8e19965.zip | |
Target/X86/Printer.cpp: Add sizePtr function, and use it instead of
" <SIZE> PTR " string when emitting assembly.
Target/X86/X86InstrInfo.def: Tidy up a bit:
Squashed everything down to 118 chars wide, wrapping lines so that
comment is at the same point on each line. Rename "NoImpRegs" as
"NoIR". (most instructions have NoImpRegs twice on a line, so this
saves 10 columns).
Also, annotate various instructions with flags for size of memory operand.
(MemArg16, MemArg32, MemArg64, etc.)
Target/X86/X86InstrInfo.h: Define flags for size of memory operand.
(MemArg16, MemArg32, MemArg64, etc.)
llvm-svn: 4932
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.h')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.h b/llvm/lib/Target/X86/X86InstrInfo.h index ad8fe3181a0..9d2629120ef 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.h +++ b/llvm/lib/Target/X86/X86InstrInfo.h @@ -80,6 +80,17 @@ namespace X86II { // which most often indicates that the instruction operates on 16 bit data // instead of 32 bit data. OpSize = 1 << 7, + + // This three-bit field describes the size of a memory operand. + // I'm just being paranoid not using the zero value; there's + // probably no reason you couldn't use it. + MemArg8 = 0x1 << 8, + MemArg16 = 0x2 << 8, + MemArg32 = 0x3 << 8, + MemArg64 = 0x4 << 8, + MemArg80 = 0x5 << 8, + MemArg128 = 0x6 << 8, + MemArgMask = 0x7 << 8, }; } |

