[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)
commitf4e35dc672496310d76b395ee60fd80db8db9db7
treeb29d48d472f2fe03742b5ac12b5d78594a105ed6
parent101290bcef968380b3eed3241fc53a29e1a91a66
[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.

llvm-svn: 164979
llvm/include/llvm/MC/MCTargetAsmParser.h
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/utils/TableGen/AsmMatcherEmitter.cpp