示例#1
0
        public static string EmitKernel(ModuleDefinition module, TypeDefinition type, MethodDefinition method)
        {
            ClCompiler compiler = new ClCompiler(module, type, method);

            compiler.Run();
            return(compiler.builder.ToString());
        }
示例#2
0
        public static string EmitKernel(MethodDefinition method)
        {
            ClCompiler compiler = new ClCompiler(method);

            compiler.Run();
            return(compiler.builder.ToString());
        }