[tuples] adding gimple_asm
Christopher Matthews
chrismatthews@google.com
Fri Aug 3 04:06:00 GMT 2007
This patch adds support to the gimplifier for asm statements.
* gimplify.c (gimplify_asm_expr): Created new gimple tuple.
* gimple-pretty-printer.c (dump_gimple_asm): Added function to dump a
GIMPLE_ASM statement.
(dump_gimple_stmt): Updated to use the dump_gimple_asm function.
* gimple.c (gss_for_code): Made asm statements return as with_mem_ops.
(build_gimple_with_ops): Asm statements are added as a specal case for
allocation because they have extra fields that are not allocated correctly
in the current generic op allocator.
(build_gimple_asm_1): Added a helper function to setup the basics of a
GIMPLE_ASM tuple.
(build_gimple_asm_vec): Create a GIMPLE_ASM tuple from vector arguments.
(build_gimple_asm): Changed to call the new helper function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gimple_asm.diff
Type: text/x-patch
Size: 10687 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070803/7955ea53/attachment.bin>
More information about the Gcc-patches
mailing list