copy text from input file based on file offsets rather than location of pragmas
commit64fc4213d3b880eac81c0665eb145b02f0e2cf61
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 7 Feb 2013 13:59:17 +0000 (7 14:59 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 10 Feb 2013 18:20:27 +0000 (10 19:20 +0100)
tree2efb0ef5ad9a2dea32d94d2a1233845d1189bf1b
parent5cd6687eedef1703d503d771f342beb25b16ade8
copy text from input file based on file offsets rather than location of pragmas

If the --pet-autodetect option is specified, then there may be no pragmas
in the input file and the transformed code could get inserted at the
end or at some other incorrect position.

Note that if a scop is detected based on the scop and endscop pragmas
(i.e., if the --pet-autodetect option is not specified), then
the offsets of the scop as returned by pet include the pragmas.
Since PPCG replaces the entire scop, these pragmas will no longer appear
in the output.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
cpu.c
cuda.c
cuda_common.c
cuda_common.h
ppcg.c
ppcg.h
rewrite.c
rewrite.h