gpu: create ppcg_kernel objects before the AST generation
commit3cd319bb190f654869802b00025d9833ffc9238a
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 8 Oct 2013 08:39:17 +0000 (8 10:39 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 16 Mar 2015 13:35:01 +0000 (16 14:35 +0100)
tree63069c0d57c465cccd7baaf7d8c8cf0b2a868542
parent8adb531384693c22f746d7df20ddf7fc7e2f72e1
gpu: create ppcg_kernel objects before the AST generation

In the end, we want to construct a single schedule tree that contains
both the host and the device code.  The analysis of the kernels
is currently performed within the leaves of the host code AST generation.
We start by creating the ppcg_kernel object up front so that we can
move the analysis of the kernels before the AST generation.
gen->kernel_id now no longer refers to the sequence number
of the current kernel inside create_host_leaf since all kernels
have now been created before any create_host_leaf call.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
gpu.c
gpu.h