Codegen: Separate code from Compiler

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Codegen: Convert value defn codegen to use visitor

Signed-off-by: Pekka Enberg <penberg@kernel.org>