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.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4932 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86InstrInfo.h b/lib/Target/X86/X86InstrInfo.h
index ad8fe31..9d26291 100644
--- a/lib/Target/X86/X86InstrInfo.h
+++ b/lib/Target/X86/X86InstrInfo.h
@@ -80,6 +80,17 @@
// 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,
};
}