[cfe-commits] [PATCH] Allow inline assembly to inherit readnone/readonly attributes from parent function

Chad Rosier mcrosier at apple.com
Wed May 2 14:07:08 PDT 2012

The attached patch allows inline assembly to inherit the readnone/readonly function attribute from the caller.  This allows the attributes to be retained after function inlining.  In turn, CSE is able to do it's magic on inline assembly statements.

An orthogonal solution would be to add support for the const keyword for inline assembly (e.g., asm const("mov $0x12345678, %0" : "=r" (ptr)); ).


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inline-asm-attr.txt
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120502/94894c18/attachment.txt>

More information about the cfe-commits mailing list