[ms-inline asm] Add the convertToMapAndConstraints() function that is used to
authorChad Rosier <mcrosier@apple.com>
Mon, 1 Oct 2012 23:45:51 +0000 (23:45 +0000)
committerChad Rosier <mcrosier@apple.com>
Mon, 1 Oct 2012 23:45:51 +0000 (23:45 +0000)
commit22685876ed7231f32f7d1698c00acab22825b74c
treee2240c27a0c5b7cfd1176155666f250b13127297
parent3fc42fd77c7f8bdb2729ce5405d65297bbfdff84
[ms-inline asm] Add the convertToMapAndConstraints() function that is used to
map constraints and MCInst operands to inline asm operands.  This replaces the
getMCInstOperandNum() function.

The logic to determine the constraints are not in place, so we still default to
a register constraint (i.e., "r"). Also, we no longer build the MCInst but
rather return just the opcode to get the MCInstrDesc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164979 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCTargetAsmParser.h
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/X86/AsmParser/X86AsmParser.cpp
utils/TableGen/AsmMatcherEmitter.cpp