[cfe-commits] [Patch] CodeWarrior/MS-style inline assembly asm function

Chad Rosier mcrosier at apple.com
Mon Jan 7 12:52:34 PST 2013


All,
The attached patch add support for CodeWarrior style asm functions.

static asm void t1() {
  mov eax, 0
}

This is a WIP.  The current implementation only works when there is an additional function specifier (e.g., static, const) before the asm keyword.  The parser needs to be enhanced to differentiate between module-level assembly and asm functions.   

module asm "inline asm here"

vs

__asm void t2() {
  mov eax, 0
}

  Chad

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms-inline-asm-functions.patch
Type: application/octet-stream
Size: 59233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130107/bd957279/attachment.obj>


More information about the cfe-commits mailing list