Lines Matching +full:intel +full:- +full:clc
3 * Copyright 2020 Intel Corporation
4 * SPDX-License-Identifier: MIT
8 #include "compiler/clc/clc.h"
14 #include "util/mesa-sha1.h"
68 if (instr->type != nir_instr_type_call) in lower_builtins()
72 nir_function *func = call->callee; in lower_builtins()
74 if (strcmp(func->name, "nir_interleave_agx") == 0) { in lower_builtins()
75 b->cursor = nir_instr_remove(&call->instr); in lower_builtins()
77 b, nir_src_as_deref(call->params[0]), in lower_builtins()
78 nir_interleave_agx(b, call->params[1].ssa, call->params[2].ssa), 1); in lower_builtins()
81 } else if (strcmp(func->name, "nir_doorbell_agx") == 0) { in lower_builtins()
82 b->cursor = nir_instr_remove(&call->instr); in lower_builtins()
83 nir_doorbell_agx(b, call->params[0].ssa); in lower_builtins()
85 } else if (strcmp(func->name, "nir_stack_map_agx") == 0) { in lower_builtins()
86 b->cursor = nir_instr_remove(&call->instr); in lower_builtins()
87 nir_stack_map_agx(b, call->params[0].ssa, call->params[1].ssa); in lower_builtins()
89 } else if (strcmp(func->name, "nir_stack_unmap_agx") == 0) { in lower_builtins()
90 b->cursor = nir_instr_remove(&call->instr); in lower_builtins()
91 nir_store_deref(b, nir_src_as_deref(call->params[0]), in lower_builtins()
92 nir_stack_unmap_agx(b, call->params[1].ssa), 1); in lower_builtins()
94 } else if (strcmp(func->name, "nir_load_core_id_agx") == 0) { in lower_builtins()
95 b->cursor = nir_instr_remove(&call->instr); in lower_builtins()
96 nir_store_deref(b, nir_src_as_deref(call->params[0]), in lower_builtins()
99 } else if (strcmp(func->name, "nir_load_helper_op_id_agx") == 0) { in lower_builtins()
100 b->cursor = nir_instr_remove(&call->instr); in lower_builtins()
101 nir_store_deref(b, nir_src_as_deref(call->params[0]), in lower_builtins()
104 } else if (strcmp(func->name, "nir_load_helper_arg_lo_agx") == 0) { in lower_builtins()
105 b->cursor = nir_instr_remove(&call->instr); in lower_builtins()
106 nir_store_deref(b, nir_src_as_deref(call->params[0]), in lower_builtins()
109 } else if (strcmp(func->name, "nir_load_helper_arg_hi_agx") == 0) { in lower_builtins()
110 b->cursor = nir_instr_remove(&call->instr); in lower_builtins()
111 nir_store_deref(b, nir_src_as_deref(call->params[0]), in lower_builtins()
114 } else if (strcmp(func->name, "nir_fence_helper_exit_agx") == 0) { in lower_builtins()
115 b->cursor = nir_instr_remove(&call->instr); in lower_builtins()
193 * LOT of vec4->vec3 casts on loads and stores. One solution to this in compile()
212 /* Lower again, this time after dead-variables to get more compact variable in compile()
219 if (nir->constant_data_size > 0) { in compile()
220 assert(nir->constant_data == NULL); in compile()
221 nir->constant_data = rzalloc_size(nir, nir->constant_data_size); in compile()
222 nir_gather_explicit_io_initializers(nir, nir->constant_data, in compile()
223 nir->constant_data_size, in compile()
278 "Usage: %s [options] -- [clang args]\n" in print_usage()
280 " -h --help Print this help.\n" in print_usage()
281 " --prefix <prefix> Prefix for variable names in generated C code.\n" in print_usage()
282 " -o, --out <filename> Specify the output filename.\n" in print_usage()
283 " -i, --in <filename> Specify one input filename. Accepted multiple times.\n" in print_usage()
284 " -s, --spv <filename> Specify the output filename for spirv.\n" in print_usage()
285 " -v, --verbose Print more information during compilation.\n", in print_usage()
335 -1) { in main()
366 return -1; in main()
372 return -1; in main()
437 /* The SPIRV-Tools linker started checking that all modules have the same in main()
438 * version. But SPIRV-LLVM-Translator picks the lower required version for in main()
440 * the max found to make SPIRV-Tools link our modules. in main()
442 * TODO: This is not the correct thing to do. We need SPIRV-LLVM-Translator in main()
446 * https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/1445 in main()
452 get_module_spirv_version((*module)->data, (*module)->size)); in main()
457 set_module_spirv_version((*module)->data, (*module)->size, in main()
487 fprintf(fp, " * SPDX-License-Identifier: MIT\n"); in main()
493 /* Compile SPIR-V to NIR */ in main()
529 exec_node_remove(&func->node); in main()