Add 'lock' prefix output support in assembly printer
authorMichael Liao <michael.liao@intel.com>
Wed, 26 Sep 2012 05:13:44 +0000 (05:13 +0000)
committerMichael Liao <michael.liao@intel.com>
Wed, 26 Sep 2012 05:13:44 +0000 (05:13 +0000)
commit4e9485d7322b6ce925b9390d1459349c1380c9a5
treeb5e622e8bdda0ed7d36000c4764206bc66019bbf
parent1293130f4f53e736678c45e712802f0dd087c80b
Add 'lock' prefix output support in assembly printer

- Instead of embedding 'lock' into each mnemonic of atomic
  instructions except 'xchg', we teach X86 assembly printer to output 'lock'
  prefix similar to or consistent with code emitter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164659 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
lib/Target/X86/X86InstrCompiler.td