diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2013-01-08 18:02:19 -0600 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-01-13 12:27:30 +0100 |
commit | 19e7d419f9d3b5cc9333b58859d9e215c8c40150 (patch) | |
tree | 0672cfcca59b4974422bd11428c94af048039111 /lib/CodeGen/MachineInstr.cpp | |
parent | ab38b966e20ecfc5ea0fd6ea1576eb8925071a62 (diff) | |
download | llvm-19e7d419f9d3b5cc9333b58859d9e215c8c40150.tar.gz llvm-19e7d419f9d3b5cc9333b58859d9e215c8c40150.tar.bz2 llvm-19e7d419f9d3b5cc9333b58859d9e215c8c40150.tar.xz |
Properly recognize "memory" constraint in clobber list of inline asm.embtoolkit-1.1.0
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index ce8d52000b..4a6a484af4 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -1545,10 +1545,14 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const { OS << " "; getOperand(InlineAsm::MIOp_AsmString).print(OS, TM); - // Print HasSideEffects, IsAlignStack + // Print HasSideEffects, MayLoad, MayStore, IsAlignStack unsigned ExtraInfo = getOperand(InlineAsm::MIOp_ExtraInfo).getImm(); if (ExtraInfo & InlineAsm::Extra_HasSideEffects) OS << " [sideeffect]"; + if (ExtraInfo & InlineAsm::Extra_MayLoad) + OS << " [mayload]"; + if (ExtraInfo & InlineAsm::Extra_MayStore) + OS << " [maystore]"; if (ExtraInfo & InlineAsm::Extra_IsAlignStack) OS << " [alignstack]"; if (getInlineAsmDialect() == InlineAsm::AD_ATT) |