Codegen is used to parse the ImplGraph generated by Schedule and generate executable code, including the code to be run on the host and device (kernel code).