[cfe-commits] [PATCH] Allow inline assembly to inherit readnone/readonly attributes from parent function
Chad Rosier
mcrosier at apple.com
Wed May 2 14:10:17 PDT 2012
And please disregard the second CHECK-NOT in the test case. It will be removed from the final commit. :)
On May 2, 2012, at 2:07 PM, Chad Rosier wrote:
> 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)); ).
>
> Chad
>
> <inline-asm-attr.txt>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list