Пример #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());
        }