aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86AsmPrinter.h
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-03 22:06:44 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-03 22:06:44 +0000
commit34448ae39398eeb5339a3dc6c669b4ca6791eadc (patch)
tree33e3565df4721abeb19144de019342c080abcc8b /lib/Target/X86/X86AsmPrinter.h
parent42faefc11da326f10a4a52d72953318921d9e43d (diff)
downloadexternal_llvm-34448ae39398eeb5339a3dc6c669b4ca6791eadc.zip
external_llvm-34448ae39398eeb5339a3dc6c669b4ca6791eadc.tar.gz
external_llvm-34448ae39398eeb5339a3dc6c669b4ca6791eadc.tar.bz2
[ms-inline asm] Add support in the X86AsmPrinter for printing memory references
in the Intel syntax. The MC layer supports emitting in the Intel syntax, but this would require the inline assembly MachineInstr to be lowered to an MCInst before emission. This is potential future work, but for now emitting directly from the MachineInstr suffices. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165173 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86AsmPrinter.h')
-rw-r--r--lib/Target/X86/X86AsmPrinter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86AsmPrinter.h b/lib/Target/X86/X86AsmPrinter.h
index 23e31a4..f03b724 100644
--- a/lib/Target/X86/X86AsmPrinter.h
+++ b/lib/Target/X86/X86AsmPrinter.h
@@ -70,6 +70,10 @@ class LLVM_LIBRARY_VISIBILITY X86AsmPrinter : public AsmPrinter {
void printPICLabel(const MachineInstr *MI, unsigned Op, raw_ostream &O);
+ void printIntelMemReference(const MachineInstr *MI, unsigned Op,
+ raw_ostream &O, const char *Modifier=NULL,
+ unsigned AsmVariant = 1);
+
bool runOnMachineFunction(MachineFunction &F);
void PrintDebugValueComment(const MachineInstr *MI, raw_ostream &OS);