Home
last modified time | relevance | path

Searched refs:operands (Results 1 - 25 of 783) sorted by relevance

12345678910>>...32

/third_party/glslang/SPIRV/
H A Ddoc.cpp1584 // Set up all the parameterizing descriptions of the opcodes, operands, etc.
1682 // Specific additional context-dependent operands in Parameterize()
1753 // set name of operator, an initial set of <id> style operands, and the description in Parameterize()
1755 InstructionDesc[OpSource].operands.push(OperandSource, ""); in Parameterize()
1756 InstructionDesc[OpSource].operands.push(OperandLiteralNumber, "'Version'"); in Parameterize()
1757 InstructionDesc[OpSource].operands.push(OperandId, "'File'", true); in Parameterize()
1758 InstructionDesc[OpSource].operands.push(OperandLiteralString, "'Source'", true); in Parameterize()
1760 InstructionDesc[OpSourceContinued].operands.push(OperandLiteralString, "'Continued Source'"); in Parameterize()
1762 InstructionDesc[OpSourceExtension].operands.push(OperandLiteralString, "'Extension'"); in Parameterize()
1764 InstructionDesc[OpName].operands in Parameterize()
[all...]
/third_party/mesa3d/src/compiler/glsl/
H A Dir_validate.cpp301 assert(ir->operands[i] == NULL); in visit_leave()
305 assert(ir->operands[i] != NULL); in visit_leave()
310 assert(ir->operands[0]->type == ir->type); in visit_leave()
314 assert(ir->operands[0]->type->is_boolean()); in visit_leave()
318 assert(ir->type == ir->operands[0]->type); in visit_leave()
323 assert(ir->operands[0]->type->is_int_16_32_64() || in visit_leave()
324 ir->operands[0]->type->is_float_16_32_64()); in visit_leave()
325 assert(ir->type == ir->operands[0]->type); in visit_leave()
332 assert(ir->type == ir->operands[0]->type); in visit_leave()
340 assert(ir->operands[ in visit_leave()
[all...]
H A Dopt_algebraic.cpp182 if (ir->operands[0]->type->is_vector()) in update_type()
183 ir->type = ir->operands[0]->type; in update_type()
185 ir->type = ir->operands[1]->type; in update_type()
196 ir_swizzle *x = expr0->operands[0]->as_swizzle(); in try_replace_with_dot()
197 ir_swizzle *y = expr0->operands[1]->as_swizzle(); in try_replace_with_dot()
198 ir_swizzle *z = expr1->operands[0]->as_swizzle(); in try_replace_with_dot()
199 ir_swizzle *w = expr1->operands[1]->as_swizzle(); in try_replace_with_dot()
234 ir_rvalue *temp = ir2->operands[op2]; in reassociate_operands()
235 ir2->operands[op2] = ir1->operands[op in reassociate_operands()
[all...]
H A Dlower_instructions.cpp148 ir->operands[1] = new(ir) ir_expression(ir_unop_neg, ir->operands[1]->type, in sub_to_add_neg()
149 ir->operands[1], NULL); in sub_to_add_neg()
240 i.insert_before(assign(x, ir->operands[0])); in ldexp_to_arith()
242 i.insert_before(assign(exp, ir->operands[1])); in ldexp_to_arith()
319 ir->operands[0] = gequal(extracted_biased_exp, in ldexp_to_arith()
321 ir->operands[1] = new(ir) ir_dereference_variable(x); in ldexp_to_arith()
322 ir->operands[2] = bitcast_u2f(result); in ldexp_to_arith()
368 i.insert_before(assign(x, ir->operands[0])); in dldexp_to_arith()
370 i.insert_before(assign(exp, ir->operands[ in dldexp_to_arith()
[all...]
H A Dopt_rebalance_tree.cpp75 ir_rvalue *remainder = root->operands[1]; in tree_to_vine()
80 remainder_temp->operands[0]->as_expression() : NULL; in tree_to_vine()
86 ((ir_expression *)remainder)->operands[1] : NULL; in tree_to_vine()
91 ((ir_expression *)remainder)->operands[0] = tempptr->operands[1]; in tree_to_vine()
92 tempptr->operands[1] = remainder; in tree_to_vine()
94 ((ir_expression *)vine_tail)->operands[1] = tempptr; in tree_to_vine()
107 ir_expression *child = (ir_expression *)scanner->operands[1]; in compression()
108 scanner->operands[1] = child->operands[ in compression()
[all...]
H A Dopt_flip_matrices.cpp73 !ir->operands[0]->type->is_matrix() || in visit_enter()
74 !ir->operands[1]->type->is_vector()) in visit_enter()
77 ir_variable *mat_var = ir->operands[0]->variable_referenced(); in visit_enter()
84 ir_dereference_variable *deref = ir->operands[0]->as_dereference_variable(); in visit_enter()
90 ir->operands[0] = ir->operands[1]; in visit_enter()
91 ir->operands[1] = new(mem_ctx) ir_dereference_variable(mvp_transpose); in visit_enter()
96 ir_dereference_array *array_ref = ir->operands[0]->as_dereference_array(); in visit_enter()
101 ir->operands[0] = ir->operands[ in visit_enter()
[all...]
/third_party/ffmpeg/libavfilter/tests/
H A Ddnn-layer-mathbinary.c54 DnnOperand operands[2]; in test_broadcast_input0() local
66 operands[0].data = input; in test_broadcast_input0()
67 operands[0].dims[0] = 1; in test_broadcast_input0()
68 operands[0].dims[1] = 1; in test_broadcast_input0()
69 operands[0].dims[2] = 2; in test_broadcast_input0()
70 operands[0].dims[3] = 3; in test_broadcast_input0()
71 operands[1].data = NULL; in test_broadcast_input0()
74 ff_dnn_execute_layer_math_binary(operands, input_indexes, 1, &params, NULL); in test_broadcast_input0()
76 output = operands[1].data; in test_broadcast_input0()
94 DnnOperand operands[ in test_broadcast_input1() local
134 DnnOperand operands[3]; test_no_broadcast() local
[all...]
H A Ddnn-layer-pad.c47 DnnOperand operands[2]; in test_with_mode_symmetric() local
74 operands[0].data = input; in test_with_mode_symmetric()
75 operands[0].dims[0] = 1; in test_with_mode_symmetric()
76 operands[0].dims[1] = 4; in test_with_mode_symmetric()
77 operands[0].dims[2] = 4; in test_with_mode_symmetric()
78 operands[0].dims[3] = 3; in test_with_mode_symmetric()
79 operands[1].data = NULL; in test_with_mode_symmetric()
82 ff_dnn_execute_layer_pad(operands, input_indexes, 1, &params, NULL); in test_with_mode_symmetric()
84 output = operands[1].data; in test_with_mode_symmetric()
117 DnnOperand operands[ in test_with_mode_reflect() local
182 DnnOperand operands[2]; test_with_mode_constant() local
[all...]
H A Ddnn-layer-avgpool.c52 DnnOperand operands[2]; in test_with_same() local
86 operands[0].data = input; in test_with_same()
87 operands[0].dims[0] = 1; in test_with_same()
88 operands[0].dims[1] = 5; in test_with_same()
89 operands[0].dims[2] = 6; in test_with_same()
90 operands[0].dims[3] = 3; in test_with_same()
91 operands[1].data = NULL; in test_with_same()
94 ff_dnn_execute_layer_avg_pool(operands, input_indexes, 1, &params, NULL); in test_with_same()
96 output = operands[1].data; in test_with_same()
135 DnnOperand operands[ in test_with_valid() local
[all...]
H A Ddnn-layer-conv2d.c63 DnnOperand operands[2]; in test_with_same_dilate() local
113 operands[0].data = input; in test_with_same_dilate()
114 operands[0].dims[0] = 1; in test_with_same_dilate()
115 operands[0].dims[1] = 5; in test_with_same_dilate()
116 operands[0].dims[2] = 6; in test_with_same_dilate()
117 operands[0].dims[3] = 3; in test_with_same_dilate()
118 operands[1].data = NULL; in test_with_same_dilate()
121 ff_dnn_execute_layer_conv2d(operands, input_indexes, 1, &params, &ctx); in test_with_same_dilate()
123 output = operands[1].data; in test_with_same_dilate()
171 DnnOperand operands[ in test_with_valid() local
[all...]
/third_party/ffmpeg/tests/dnn/
H A Ddnn-layer-mathbinary-test.c54 DnnOperand operands[2]; in test_broadcast_input0() local
66 operands[0].data = input; in test_broadcast_input0()
67 operands[0].dims[0] = 1; in test_broadcast_input0()
68 operands[0].dims[1] = 1; in test_broadcast_input0()
69 operands[0].dims[2] = 2; in test_broadcast_input0()
70 operands[0].dims[3] = 3; in test_broadcast_input0()
71 operands[1].data = NULL; in test_broadcast_input0()
74 ff_dnn_execute_layer_math_binary(operands, input_indexes, 1, &params, NULL); in test_broadcast_input0()
76 output = operands[1].data; in test_broadcast_input0()
94 DnnOperand operands[ in test_broadcast_input1() local
134 DnnOperand operands[3]; test_no_broadcast() local
[all...]
H A Ddnn-layer-pad-test.c47 DnnOperand operands[2]; in test_with_mode_symmetric() local
74 operands[0].data = input; in test_with_mode_symmetric()
75 operands[0].dims[0] = 1; in test_with_mode_symmetric()
76 operands[0].dims[1] = 4; in test_with_mode_symmetric()
77 operands[0].dims[2] = 4; in test_with_mode_symmetric()
78 operands[0].dims[3] = 3; in test_with_mode_symmetric()
79 operands[1].data = NULL; in test_with_mode_symmetric()
82 ff_dnn_execute_layer_pad(operands, input_indexes, 1, &params, NULL); in test_with_mode_symmetric()
84 output = operands[1].data; in test_with_mode_symmetric()
117 DnnOperand operands[ in test_with_mode_reflect() local
182 DnnOperand operands[2]; test_with_mode_constant() local
[all...]
H A Ddnn-layer-avgpool-test.c52 DnnOperand operands[2]; in test_with_same() local
86 operands[0].data = input; in test_with_same()
87 operands[0].dims[0] = 1; in test_with_same()
88 operands[0].dims[1] = 5; in test_with_same()
89 operands[0].dims[2] = 6; in test_with_same()
90 operands[0].dims[3] = 3; in test_with_same()
91 operands[1].data = NULL; in test_with_same()
94 ff_dnn_execute_layer_avg_pool(operands, input_indexes, 1, &params, NULL); in test_with_same()
96 output = operands[1].data; in test_with_same()
135 DnnOperand operands[ in test_with_valid() local
[all...]
H A Ddnn-layer-conv2d-test.c63 DnnOperand operands[2]; in test_with_same_dilate() local
113 operands[0].data = input; in test_with_same_dilate()
114 operands[0].dims[0] = 1; in test_with_same_dilate()
115 operands[0].dims[1] = 5; in test_with_same_dilate()
116 operands[0].dims[2] = 6; in test_with_same_dilate()
117 operands[0].dims[3] = 3; in test_with_same_dilate()
118 operands[1].data = NULL; in test_with_same_dilate()
121 ff_dnn_execute_layer_conv2d(operands, input_indexes, 1, &params, &ctx); in test_with_same_dilate()
123 output = operands[1].data; in test_with_same_dilate()
171 DnnOperand operands[ in test_with_valid() local
[all...]
/third_party/mesa3d/src/amd/compiler/
H A Daco_optimizer.cpp64 * propagates reg->reg operands of the same type, inline constants
519 if (instr->operands.size() && instr->operands[0].isLiteral() && ctx.program->gfx_level < GFX10) in can_use_VOP3()
559 if (temp.bytes() != instr->operands[index].bytes()) in pseudo_propagate_temp()
571 if (temp.bytes() > instr->operands[index].bytes()) in pseudo_propagate_temp()
578 int decrease = instr->operands[index].bytes() - temp.bytes(); in pseudo_propagate_temp()
593 instr->operands[index].setTemp(temp); in pseudo_propagate_temp()
620 instr.reset(create_instruction<VOP3_instruction>(tmp->opcode, format, tmp->operands.size(), in to_VOP3()
622 std::copy(tmp->operands.cbegin(), tmp->operands in to_VOP3()
697 check_vop3_operands(opt_ctx& ctx, unsigned num_operands, Operand* operands) check_vop3_operands() argument
2473 match_op3_for_vop3(opt_ctx& ctx, aco_opcode op1, aco_opcode op2, Instruction* op1_instr, bool swap, const char* shuffle_str, Operand operands[3], bool neg[3], bool abs[3], uint8_t* opsel, bool* op1_clamp, uint8_t* op1_omod, bool* inbetween_neg, bool* inbetween_abs, bool* inbetween_opsel, bool* precise) match_op3_for_vop3() argument
2548 create_vop3_for_op3(opt_ctx& ctx, aco_opcode opcode, aco_ptr<Instruction>& instr, Operand operands[3], bool neg[3], bool abs[3], uint8_t opsel, bool clamp, unsigned omod) create_vop3_for_op3() argument
2575 Operand operands[3]; combine_three_valu_op() local
2620 Operand operands[3]; combine_add_or_then_and_lshl() local
2668 Operand operands[3]; combine_minmax() local
2943 Operand operands[3]; combine_clamp() local
[all...]
H A Daco_assembler.cpp67 unsigned addr_dwords = instr->operands.size() - 3; in get_mimg_nsa_dwords()
69 if (instr->operands[3 + i].physReg() != instr->operands[3].physReg().advance(i * 4)) in get_mimg_nsa_dwords()
80 ctx.constaddrs[instr->operands[0].constantValue()].getpc_end = out.size() + 1; in emit_instruction()
83 instr->operands.pop_back(); in emit_instruction()
85 ctx.constaddrs[instr->operands[2].constantValue()].add_literal = out.size() + 1; in emit_instruction()
88 instr->operands.pop_back(); in emit_instruction()
89 assert(instr->operands[1].isConstant()); in emit_instruction()
91 instr->operands[1] = Operand::literal32(instr->operands[ in emit_instruction()
[all...]
H A Daco_optimizer_postRA.cpp223 if (instr->format != Format::PSEUDO_BRANCH || instr->operands.size() == 0 || in try_apply_branch_vcc()
224 instr->operands[0].physReg() != scc) in try_apply_branch_vcc()
227 Idx op0_instr_idx = last_writer_idx(ctx, instr->operands[0]); in try_apply_branch_vcc()
249 op0_instr->operands[0].physReg() != vcc || op0_instr->operands[1].physReg() != exec || in try_apply_branch_vcc()
253 assert(last_vcc_wr->definitions[0].tempId() == op0_instr->operands[0].tempId()); in try_apply_branch_vcc()
256 ctx.uses[instr->operands[0].tempId()]--; in try_apply_branch_vcc()
258 instr->operands[0] = op0_instr->operands[0]; in try_apply_branch_vcc()
284 (instr->operands[ in try_optimize_scc_nocompare()
[all...]
H A Daco_validate.cpp186 for (unsigned i = 0; i < std::min<unsigned>(2, instr->operands.size()); i++) { in validate_ir()
187 const Operand& op = instr->operands[i]; in validate_ir()
188 check(op.bytes() <= 4, "SDWA operands must not be larger than 4 bytes", instr.get()); in validate_ir()
196 if (instr->operands.size() >= 3) { in validate_ir()
197 check(instr->operands[2].isFixed() && instr->operands[2].physReg() == vcc, in validate_ir()
232 if (i >= instr->operands.size() || in validate_ir()
233 (instr->operands[i].hasRegClass() && in validate_ir()
234 instr->operands[i].regClass().is_subdword() && !instr->operands[ in validate_ir()
[all...]
/third_party/vk-gl-cts/external/amber/src/src/
H A Dclspv_helper.cc70 auto ext_inst = inst->words[inst->operands[3].offset]; in ParseExtendedInst()
74 const auto& name = helper->strings[inst->words[inst->operands[5].offset]]; in ParseExtendedInst()
80 const auto& name = helper->strings[inst->words[inst->operands[4].offset]]; in ParseExtendedInst()
90 auto kernel_id = inst->words[inst->operands[4].offset]; in ParseExtendedInst()
91 auto ordinal_id = inst->words[inst->operands[5].offset]; in ParseExtendedInst()
92 auto ds_id = inst->words[inst->operands[6].offset]; in ParseExtendedInst()
93 auto binding_id = inst->words[inst->operands[7].offset]; in ParseExtendedInst()
96 arg_name = helper->strings[inst->words[inst->operands[8].offset]]; in ParseExtendedInst()
114 auto kernel_id = inst->words[inst->operands[4].offset]; in ParseExtendedInst()
115 auto ordinal_id = inst->words[inst->operands[ in ParseExtendedInst()
[all...]
/third_party/node/deps/v8/src/interpreter/
H A Dbytecode-traits.h8 #include "src/interpreter/bytecode-operands.h"
79 template <ImplicitRegisterUse implicit_register_use, OperandType... operands>
87 1, OperandScaler<operands, OperandScale::kSingle>::kSize...>::kValue;
89 1, OperandScaler<operands, OperandScale::kDouble>::kSize...>::kValue;
91 1, OperandScaler<operands, OperandScale::kQuadruple>::kSize...>::kValue;
93 static const int kOperandCount = sizeof...(operands);
96 template <ImplicitRegisterUse implicit_register_use, OperandType... operands>
98 BytecodeTraits<implicit_register_use, operands...>::kOperandTypes[] = {
99 operands...};
100 template <ImplicitRegisterUse implicit_register_use, OperandType... operands>
[all...]
/third_party/mesa3d/src/imagination/rogue/
H A Drogue_instr.c60 * \brief Returns the number of operands an instruction takes.
63 * \return The number of operands.
94 instr->operands = rzalloc_array_size(instr, in rogue_instr_create()
95 sizeof(*instr->operands), in rogue_instr_create()
97 if (!instr->operands) { in rogue_instr_create()
134 instr->operands[index].type = ROGUE_OPERAND_TYPE_IMMEDIATE; in rogue_instr_set_operand_imm()
135 instr->operands[index].immediate.value = value; in rogue_instr_set_operand_imm()
154 instr->operands[index].type = ROGUE_OPERAND_TYPE_DRC; in rogue_instr_set_operand_drc()
155 instr->operands[index].drc.number = number; in rogue_instr_set_operand_drc()
177 instr->operands[inde in rogue_instr_set_operand_reg()
[all...]
/third_party/vixl/tools/test_generator/
H A Dgenerator.py66 Remove variants in `variant_to_exclude` from operands with type `type_name`.
110 used to build sets of operands and inputs that will be used by the generator
119 operand_filter Python expression as a string to filter out operands.
121 operand_limit Optional limit of the number of operands to generate.
151 Generate a list of tuples, each tuple describing what operands to pass to an
155 what we generate, we choose to apply the product only on operands with their
187 def BuildOperandDefinition(operands):
189 Take a list of tuples describing the operands and build a definition from
208 # Build a list of operands by only keeping the second element of each
210 [operand[1] for operand in operands],
[all...]
/third_party/mesa3d/src/gallium/frontends/clover/llvm/
H A Dmetadata.hpp65 auto operands = detail::get_kernel_metadata_operands(f, name); in get_str_kernel_metadata() local
66 if (operands.size()) { in get_str_kernel_metadata()
81 auto operands = detail::get_kernel_metadata_operands(f, name); in get_uint_vector_kernel_metadata() local
82 if (operands.size()) { in get_uint_vector_kernel_metadata()
88 }, operands); in get_uint_vector_kernel_metadata()
100 auto operands = detail::get_kernel_metadata_operands(f, name); in get_type_kernel_metadata() local
101 if (operands.size()) { in get_type_kernel_metadata()
102 auto value = ::llvm::cast< ::llvm::ConstantAsMetadata>(operands[0]) in get_type_kernel_metadata()
107 value = ::llvm::cast< ::llvm::ConstantAsMetadata>(operands[1]) in get_type_kernel_metadata()
157 auto operands in get_str_argument_metadata() local
174 auto operands = detail::get_kernel_metadata_operands(f, name); get_uint_argument_metadata() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dir_builder.h158 // |operands| must be a sequence of operand ids.
161 const std::vector<uint32_t>& operands, in AddNaryOp()
164 for (size_t i = 0; i < operands.size(); i++) { in AddNaryOp()
165 ops.push_back({SPV_OPERAND_TYPE_ID, {operands[i]}}); in AddNaryOp()
262 std::vector<Operand> operands; in AddSwitch() local
263 operands.emplace_back( in AddSwitch()
265 operands.emplace_back( in AddSwitch()
268 operands.emplace_back( in AddSwitch()
271 operands.emplace_back( in AddSwitch()
275 new Instruction(GetContext(), SpvOpSwitch, 0, 0, operands)); in AddSwitch()
160 AddNaryOp(uint32_t type_id, SpvOp opcode, const std::vector<uint32_t>& operands, uint32_t result = 0) AddNaryOp() argument
441 std::vector<Operand> operands; AddCompositeExtract() local
465 std::vector<Operand> operands; AddAccessChain() local
480 std::vector<Operand> operands; AddLoad() local
491 std::vector<Operand> operands; AddStore() local
502 std::vector<Operand> operands; AddFunctionCall() local
520 std::vector<Operand> operands; AddVectorShuffle() local
540 std::vector<Operand> operands; AddNaryExtendedInstruction() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dir_builder.h158 // |operands| must be a sequence of operand ids.
161 const std::vector<uint32_t>& operands, in AddNaryOp()
164 for (size_t i = 0; i < operands.size(); i++) { in AddNaryOp()
165 ops.push_back({SPV_OPERAND_TYPE_ID, {operands[i]}}); in AddNaryOp()
262 std::vector<Operand> operands; in AddSwitch() local
263 operands.emplace_back( in AddSwitch()
265 operands.emplace_back( in AddSwitch()
268 operands.emplace_back( in AddSwitch()
271 operands.emplace_back( in AddSwitch()
275 new Instruction(GetContext(), SpvOpSwitch, 0, 0, operands)); in AddSwitch()
160 AddNaryOp(uint32_t type_id, SpvOp opcode, const std::vector<uint32_t>& operands, uint32_t result = 0) AddNaryOp() argument
441 std::vector<Operand> operands; AddCompositeExtract() local
465 std::vector<Operand> operands; AddAccessChain() local
480 std::vector<Operand> operands; AddLoad() local
491 std::vector<Operand> operands; AddStore() local
502 std::vector<Operand> operands; AddFunctionCall() local
520 std::vector<Operand> operands; AddVectorShuffle() local
540 std::vector<Operand> operands; AddNaryExtendedInstruction() local
[all...]

Completed in 17 milliseconds

12345678910>>...32