/third_party/mesa3d/src/compiler/glsl/ |
D | ir_optimization.h | 100 bool do_rebalance_tree(exec_list *instructions); 101 bool do_algebraic(exec_list *instructions, bool native_integers, 103 bool opt_conditional_discard(exec_list *instructions); 104 bool do_constant_folding(exec_list *instructions); 105 bool do_constant_variable(exec_list *instructions); 106 bool do_constant_variable_unlinked(exec_list *instructions); 107 bool do_copy_propagation_elements(exec_list *instructions); 108 bool do_constant_propagation(exec_list *instructions); 114 bool do_dead_code(exec_list *instructions, bool uniform_locations_assigned); 115 bool do_dead_code_local(exec_list *instructions); [all …]
|
D | builtin_int64.h | 89 exec_list *const f0013_parent_instructions = body.instructions; in udivmod64() 92 body.instructions = &f0013->then_instructions; in udivmod64() 105 exec_list *const f0019_parent_instructions = body.instructions; in udivmod64() 107 body.instructions = &f0019->body_instructions; in udivmod64() 112 exec_list *const f001A_parent_instructions = body.instructions; in udivmod64() 115 body.instructions = &f001A->then_instructions; in udivmod64() 120 body.instructions = f001A_parent_instructions; in udivmod64() 132 exec_list *const f001C_parent_instructions = body.instructions; in udivmod64() 135 body.instructions = &f001C->then_instructions; in udivmod64() 144 body.instructions = f001C_parent_instructions; in udivmod64() [all …]
|
D | lower_const_arrays_to_uniforms.cpp | 51 instructions = insts; in lower_const_array_visitor() 60 visit_list_elements(this, instructions); in run() 68 exec_list *instructions; member in __anon32642d950111::lower_const_array_visitor 122 instructions->push_head(uni); in handle_rvalue() 133 count_uniforms(exec_list *instructions) in count_uniforms() argument 137 foreach_in_list(ir_instruction, node, instructions) { in count_uniforms() 149 lower_const_arrays_to_uniforms(exec_list *instructions, unsigned stage, in lower_const_arrays_to_uniforms() argument 152 unsigned uniform_components = count_uniforms(instructions); in lower_const_arrays_to_uniforms() 155 lower_const_array_visitor v(instructions, stage, free_uniform_slots); in lower_const_arrays_to_uniforms()
|
D | ast.h | 63 virtual ir_rvalue *hir(exec_list *instructions, 240 virtual ir_rvalue *hir(exec_list *instructions, 243 virtual void hir_no_rvalue(exec_list *instructions, 248 ir_rvalue *do_hir(exec_list *instructions, 327 virtual ir_rvalue *hir(exec_list *instructions, 330 virtual void hir_no_rvalue(exec_list *instructions, 341 handle_method(exec_list *instructions, 429 virtual ir_rvalue *hir(exec_list *instructions, 432 virtual void hir_no_rvalue(exec_list *instructions, 442 virtual ir_rvalue *hir(exec_list *instructions, [all …]
|
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/ |
D | spirv_builder.c | 265 spirv_buffer_prepare(&b->instructions, b->mem_ctx, words); in spirv_builder_emit_vertex() 266 spirv_buffer_emit_word(&b->instructions, op | (words << 16)); in spirv_builder_emit_vertex() 268 spirv_buffer_emit_word(&b->instructions, spirv_builder_const_uint(b, 32, stream)); in spirv_builder_emit_vertex() 280 spirv_buffer_prepare(&b->instructions, b->mem_ctx, words); in spirv_builder_end_primitive() 281 spirv_buffer_emit_word(&b->instructions, op | (words << 16)); in spirv_builder_end_primitive() 283 spirv_buffer_emit_word(&b->instructions, spirv_builder_const_uint(b, 32, stream)); in spirv_builder_end_primitive() 378 spirv_buffer_prepare(&b->instructions, b->mem_ctx, 3); in spirv_builder_emit_undef() 379 spirv_buffer_emit_word(&b->instructions, SpvOpUndef | (3 << 16)); in spirv_builder_emit_undef() 380 spirv_buffer_emit_word(&b->instructions, result_type); in spirv_builder_emit_undef() 381 spirv_buffer_emit_word(&b->instructions, result); in spirv_builder_emit_undef() [all …]
|
/third_party/mesa3d/src/panfrost/midgard/ |
D | midgard_schedule.c | 66 …dynarray *table, unsigned index, uint16_t mask, midgard_instruction **instructions, unsigned child) in add_dependency() argument 75 BITSET_WORD *dependents = instructions[*parent]->dependents; in add_dependency() 82 instructions[child]->nr_dependencies++; in add_dependency() 99 mir_create_dependency_graph(midgard_instruction **instructions, unsigned count, unsigned node_count) in mir_create_dependency_graph() argument 113 instructions[i]->dependents = in mir_create_dependency_graph() 116 instructions[i]->nr_dependencies = 0; in mir_create_dependency_graph() 123 if (instructions[i]->compact_branch) in mir_create_dependency_graph() 126 unsigned dest = instructions[i]->dest; in mir_create_dependency_graph() 127 unsigned mask = mir_bytemask(instructions[i]); in mir_create_dependency_graph() 129 mir_foreach_src((*instructions), s) { in mir_create_dependency_graph() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/ |
D | transformation_add_function_test.cpp | 583 std::vector<protobufs::Instruction> instructions; in TEST() local 584 instructions.push_back(MakeInstructionMessage( in TEST() 588 instructions.push_back(MakeInstructionMessage(SpvOpLabel, 0, 31, {})); in TEST() 589 instructions.push_back( in TEST() 591 instructions.push_back(MakeInstructionMessage(SpvOpLabel, 0, 20, {})); in TEST() 592 instructions.push_back(MakeInstructionMessage( in TEST() 597 instructions.push_back(MakeInstructionMessage(SpvOpBranchConditional, 0, 0, in TEST() 601 instructions.push_back(MakeInstructionMessage(SpvOpLabel, 0, 23, {})); in TEST() 602 instructions.push_back(MakeInstructionMessage( in TEST() 607 instructions.push_back( in TEST() [all …]
|
/third_party/spirv-tools/test/fuzz/ |
D | transformation_add_function_test.cpp | 583 std::vector<protobufs::Instruction> instructions; in TEST() local 584 instructions.push_back(MakeInstructionMessage( in TEST() 588 instructions.push_back(MakeInstructionMessage(SpvOpLabel, 0, 31, {})); in TEST() 589 instructions.push_back( in TEST() 591 instructions.push_back(MakeInstructionMessage(SpvOpLabel, 0, 20, {})); in TEST() 592 instructions.push_back(MakeInstructionMessage( in TEST() 597 instructions.push_back(MakeInstructionMessage(SpvOpBranchConditional, 0, 0, in TEST() 601 instructions.push_back(MakeInstructionMessage(SpvOpLabel, 0, 23, {})); in TEST() 602 instructions.push_back(MakeInstructionMessage( in TEST() 607 instructions.push_back( in TEST() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/ |
D | transformation_add_function_test.cpp | 583 std::vector<protobufs::Instruction> instructions; in TEST() local 584 instructions.push_back(MakeInstructionMessage( in TEST() 588 instructions.push_back(MakeInstructionMessage(SpvOpLabel, 0, 31, {})); in TEST() 589 instructions.push_back( in TEST() 591 instructions.push_back(MakeInstructionMessage(SpvOpLabel, 0, 20, {})); in TEST() 592 instructions.push_back(MakeInstructionMessage( in TEST() 597 instructions.push_back(MakeInstructionMessage(SpvOpBranchConditional, 0, 0, in TEST() 601 instructions.push_back(MakeInstructionMessage(SpvOpLabel, 0, 23, {})); in TEST() 602 instructions.push_back(MakeInstructionMessage( in TEST() 607 instructions.push_back( in TEST() [all …]
|
/third_party/mesa3d/src/compiler/glsl/tests/ |
D | lower_int64_test.cpp | 51 exec_list instructions; member in expand_source 65 instructions.make_empty(); in SetUp() 66 body = new ir_factory(&instructions, mem_ctx); in SetUp() 126 check_instructions(exec_list *instructions, in check_instructions() argument 153 ASSERT_FALSE(instructions->is_empty()); in check_instructions() 154 ir = (ir_instruction *) instructions->pop_head(); in check_instructions() 163 ASSERT_FALSE(instructions->is_empty()); in check_instructions() 164 ir = (ir_instruction *) instructions->pop_head(); in check_instructions() 172 ASSERT_FALSE(instructions->is_empty()); in check_instructions() 173 ir = (ir_instruction *) instructions->pop_head(); in check_instructions() [all …]
|
D | opt_add_neg_to_sub_test.cpp | 35 exec_list instructions; member in add_neg_to_sub 51 instructions.make_empty(); in SetUp() 52 body = new ir_factory(&instructions, mem_ctx); in SetUp() 83 visit_list_elements(&v, &instructions); in TEST_F() 85 ASSERT_FALSE(instructions.is_empty()); in TEST_F() 87 ir_instruction *const ir = (ir_instruction *) instructions.pop_head(); in TEST_F() 89 EXPECT_TRUE(instructions.is_empty()); in TEST_F() 116 visit_list_elements(&v, &instructions); in TEST_F() 118 ASSERT_FALSE(instructions.is_empty()); in TEST_F() 120 ir_instruction *const ir = (ir_instruction *) instructions.pop_head(); in TEST_F() [all …]
|
/third_party/mesa3d/src/amd/compiler/ |
D | aco_reduce_assign.cpp | 47 for (aco_ptr<Instruction>& instr : block.instructions) { in setup_reduce_temp() 79 std::vector<aco_ptr<Instruction>>::iterator it = block.instructions.begin(); in setup_reduce_temp() 82 block.instructions.insert(it, std::move(end)); in setup_reduce_temp() 93 for (it = block.instructions.begin(); it != block.instructions.end(); ++it) { in setup_reduce_temp() 109 it = block.instructions.insert(it, std::move(create)); in setup_reduce_temp() 116 std::vector<aco_ptr<Instruction>>& instructions = in setup_reduce_temp() local 117 program->blocks[last_top_level_block_idx].instructions; in setup_reduce_temp() 118 instructions.insert(std::next(instructions.begin(), instructions.size() - 1), in setup_reduce_temp() 149 it = block.instructions.insert(it, std::move(create)); in setup_reduce_temp() 153 std::vector<aco_ptr<Instruction>>& instructions = in setup_reduce_temp() local [all …]
|
D | aco_ssa_elimination.cpp | 59 for (aco_ptr<Instruction>& phi : block.instructions) { in collect_phi_info() 93 unsigned idx = block.instructions.size() - 1; in insert_parallelcopies() 94 while (block.instructions[idx]->opcode != aco_opcode::p_logical_end) { in insert_parallelcopies() 99 std::vector<aco_ptr<Instruction>>::iterator it = std::next(block.instructions.begin(), idx); in insert_parallelcopies() 111 block.instructions.insert(it, std::move(pc)); in insert_parallelcopies() 121 std::vector<aco_ptr<Instruction>>::iterator it = block.instructions.end(); in insert_parallelcopies() 135 block.instructions.insert(it, std::move(pc)); in insert_parallelcopies() 143 for (aco_ptr<Instruction>& instr : block->instructions) { in is_empty_block() 183 aco_ptr<Instruction> branch = std::move(block->instructions.back()); in try_remove_merge_block() 184 block->instructions.clear(); in try_remove_merge_block() [all …]
|
D | aco_spill.cpp | 182 it->second.second = it->second.second + block->instructions.size(); in next_uses_per_block() 184 int idx = block->instructions.size() - 1; in next_uses_per_block() 186 aco_ptr<Instruction>& instr = block->instructions[idx]; in next_uses_per_block() 211 aco_ptr<Instruction>& instr = block->instructions[idx]; in next_uses_per_block() 362 for (aco_ptr<Instruction>& instr : block.instructions) { in get_rematerialize_info() 383 if (local_next_uses.size() < block->instructions.size()) { in update_local_next_uses() 386 local_next_uses.resize(block->instructions.size()); in update_local_next_uses() 389 local_next_uses[block->instructions.size() - 1].clear(); in update_local_next_uses() 392 local_next_uses[block->instructions.size() - 1].push_back(std::make_pair<Temp, uint32_t>( in update_local_next_uses() 393 (Temp)pair.first, pair.second.second + block->instructions.size())); in update_local_next_uses() [all …]
|
/third_party/spirv-tools/source/val/ |
D | validate_adjacency.cpp | 43 const auto& instructions = _.ordered_instructions(); in ValidateAdjacency() local 46 for (size_t i = 0; i < instructions.size(); ++i) { in ValidateAdjacency() 47 const auto& inst = instructions[i]; in ValidateAdjacency() 80 if (i != (instructions.size() - 1)) { in ValidateAdjacency() 81 switch (instructions[i + 1].opcode()) { in ValidateAdjacency() 96 if (i != (instructions.size() - 1)) { in ValidateAdjacency() 97 switch (instructions[i + 1].opcode()) { in ValidateAdjacency()
|
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
D | validate_adjacency.cpp | 43 const auto& instructions = _.ordered_instructions(); in ValidateAdjacency() local 46 for (size_t i = 0; i < instructions.size(); ++i) { in ValidateAdjacency() 47 const auto& inst = instructions[i]; in ValidateAdjacency() 83 if (i != (instructions.size() - 1)) { in ValidateAdjacency() 84 switch (instructions[i + 1].opcode()) { in ValidateAdjacency() 99 if (i != (instructions.size() - 1)) { in ValidateAdjacency() 100 switch (instructions[i + 1].opcode()) { in ValidateAdjacency()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
D | validate_adjacency.cpp | 43 const auto& instructions = _.ordered_instructions(); in ValidateAdjacency() local 46 for (size_t i = 0; i < instructions.size(); ++i) { in ValidateAdjacency() 47 const auto& inst = instructions[i]; in ValidateAdjacency() 83 if (i != (instructions.size() - 1)) { in ValidateAdjacency() 84 switch (instructions[i + 1].opcode()) { in ValidateAdjacency() 99 if (i != (instructions.size() - 1)) { in ValidateAdjacency() 100 switch (instructions[i + 1].opcode()) { in ValidateAdjacency()
|
/third_party/mesa3d/src/panfrost/bifrost/ |
D | bi_opcodes.c.py | 62 instructions = parse_instructions(sys.argv[1], include_pseudo = True) variable 63 ir_instructions = partition_mnemonics(instructions) 64 mnemonics = set(x[1:] for x in instructions.keys()) 66 …TEMPLATE).render(ops = ir_instructions, mnemonics = mnemonics, instructions = instructions, typesi…
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.h | 41 const std::vector<opt::Instruction*>& instructions) const; 46 const std::vector<opt::Instruction*>& instructions) const; 51 const std::vector<opt::Instruction*>& instructions) const; 59 const std::vector<opt::Instruction*>& instructions) const; 65 const std::vector<opt::Instruction*>& instructions, 72 const std::vector<opt::Instruction*>& instructions,
|
/third_party/spirv-tools/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.h | 40 const std::vector<opt::Instruction*>& instructions) const; 45 const std::vector<opt::Instruction*>& instructions) const; 50 const std::vector<opt::Instruction*>& instructions) const; 58 const std::vector<opt::Instruction*>& instructions) const; 64 const std::vector<opt::Instruction*>& instructions, 71 const std::vector<opt::Instruction*>& instructions,
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.h | 41 const std::vector<opt::Instruction*>& instructions) const; 46 const std::vector<opt::Instruction*>& instructions) const; 51 const std::vector<opt::Instruction*>& instructions) const; 59 const std::vector<opt::Instruction*>& instructions) const; 65 const std::vector<opt::Instruction*>& instructions, 72 const std::vector<opt::Instruction*>& instructions,
|
/third_party/skia/third_party/externals/harfbuzz/test/fuzzing/ |
D | hb-set-fuzzer.cc | 51 const instructions_t &instructions = reinterpret_cast<const instructions_t &> (data); in LLVMFuzzerTestOneInput() local 59 if (size < instructions.first_set_size) in LLVMFuzzerTestOneInput() 62 hb_set_t *set_a = create_set (values, instructions.first_set_size); in LLVMFuzzerTestOneInput() 64 values += instructions.first_set_size; in LLVMFuzzerTestOneInput() 65 size -= instructions.first_set_size; in LLVMFuzzerTestOneInput() 68 switch (instructions.operation) in LLVMFuzzerTestOneInput()
|
/third_party/harfbuzz/test/fuzzing/ |
D | hb-set-fuzzer.cc | 51 const instructions_t &instructions = reinterpret_cast<const instructions_t &> (data); in LLVMFuzzerTestOneInput() local 59 if (size < instructions.first_set_size) in LLVMFuzzerTestOneInput() 62 hb_set_t *set_a = create_set (values, instructions.first_set_size); in LLVMFuzzerTestOneInput() 64 values += instructions.first_set_size; in LLVMFuzzerTestOneInput() 65 size -= instructions.first_set_size; in LLVMFuzzerTestOneInput() 68 switch (instructions.operation) in LLVMFuzzerTestOneInput()
|
/third_party/skia/third_party/externals/spirv-tools/tools/sva/src/ |
D | parser_test.js | 28 assert.lengthOf(ast.instructions(), 1); 43 assert.lengthOf(ast.instructions(), 1); 63 assert.lengthOf(ast.instructions(), 1); 94 assert.lengthOf(ast.instructions(), 1); 114 assert.lengthOf(ast.instructions(), 1); 132 assert.lengthOf(ast.instructions(), 1); 153 assert.lengthOf(ast.instructions(), 1); 181 assert.lengthOf(ast.instructions(), 2); 204 assert.lengthOf(ast.instructions(), 7); 222 assert.lengthOf(ast.instructions(), 2); [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/sva/src/ |
D | parser_test.js | 28 assert.lengthOf(ast.instructions(), 1); 43 assert.lengthOf(ast.instructions(), 1); 63 assert.lengthOf(ast.instructions(), 1); 94 assert.lengthOf(ast.instructions(), 1); 114 assert.lengthOf(ast.instructions(), 1); 132 assert.lengthOf(ast.instructions(), 1); 153 assert.lengthOf(ast.instructions(), 1); 181 assert.lengthOf(ast.instructions(), 2); 204 assert.lengthOf(ast.instructions(), 7); 222 assert.lengthOf(ast.instructions(), 2); [all …]
|