public static string EmitKernel(ModuleDefinition module, TypeDefinition type, MethodDefinition method) { ClCompiler compiler = new ClCompiler(module, type, method); compiler.Run(); return(compiler.builder.ToString()); }
public static string EmitKernel(MethodDefinition method) { ClCompiler compiler = new ClCompiler(method); compiler.Run(); return(compiler.builder.ToString()); }