Go to file
Chad Rosier 738ea2590f [ms-inline asm] Add a new function, GetMCInstOperandNum, to the
AsmMatcherEmitter.  This function maps inline assembly operands to MCInst
operands.

For example, '__asm mov j, eax' is represented by the follow MCInst:

<MCInst 1460 <MCOperand Reg:0> <MCOperand Imm:1> <MCOperand Reg:0> 
             <MCOperand Expr:(j)> <MCOperand Reg:0> <MCOperand Reg:43>>

The first 5 MCInst operands are a result of j matching as a memory operand
consisting of a BaseReg (Reg:0), MemScale (Imm:1), MemIndexReg(Reg:0), 
Expr (Expr:(j), and a MemSegReg (Reg:0).  The 6th MCInst operand represents
the eax register (Reg:43).

This translation is necessary to determine the Input and Output Exprs.  If a
single asm operand maps to multiple MCInst operands, the index of the first
MCInst operand is returned.  Ideally, it would return the operand we really
care out (i.e., the Expr:(j) in this case), but I haven't found an easy way
of doing this yet.

llvm-svn: 162920
2012-08-30 17:59:25 +00:00
clang Make preprocessor act in a GCC-compatible fashion when a macro is redefined 2012-08-30 13:38:46 +00:00
clang-tools-extra loop-convert, a C++11 for loop modernizer 2012-08-24 23:46:42 +00:00
compiler-rt Whitespace/lint 2012-08-30 14:22:21 +00:00
debuginfo-tests Fix this for gdb 7.4. 2012-07-23 19:41:58 +00:00
libclc Add rsqrt builtin. Based on patch by Cassie Epps! 2012-08-21 10:48:35 +00:00
libcxx Hyeon-bin Jeong: libc++ fails to create any classes inherit from basic_ios if they 2012-08-26 18:05:35 +00:00
libcxxabi Change size of reference count field in __libcpp_nmstr from 32 bits to 64 bits for 64 bit targets. This is controls the data layout of all exceptions defined in <stdexcept>. This aligns the ABI with that of gcc-4.2. 2012-08-08 16:15:16 +00:00
lld Hook up lld-test to llvm check-all. Patch by Andy Gibbs! 2012-07-31 18:44:52 +00:00
lldb Fixed a potential crash in PlatformLinux if 2012-08-29 22:34:39 +00:00
llvm [ms-inline asm] Add a new function, GetMCInstOperandNum, to the 2012-08-30 17:59:25 +00:00
polly Pocc: Fix some bugs in the PoCC optimizer pass 2012-08-30 11:49:38 +00:00