Home
last modified time | relevance | path

Searched refs:num_operands (Results 1 – 25 of 80) sorted by relevance

1234

/external/mesa3d/src/compiler/glsl/
Dir_expression_operation.py39 def __init__(self, source_types, num_operands): argument
47 self.num_operands = num_operands
50 def __init__(self, dest_type, source_types, num_operands): argument
59 self.num_operands = num_operands
75 return (dest_type, self.num_operands * (self.source_types[i],))
324 …def __init__(self, name, num_operands, printable_name = None, source_types = None, dest_type = Non… argument
326 self.num_operands = num_operands
358 return "ir_{0}op_{1}".format(("un", "bin", "tri", "quad")[self.num_operands-1], self.name)
373 if self.num_operands == 2:
380 elif self.num_operands == 3:
[all …]
Dlower_int64.cpp259 const unsigned num_operands = ir->num_operands; in lower_op_to_function_call() local
271 for (unsigned i = 0; i < num_operands; i++) { in lower_op_to_function_call()
283 for (unsigned j = 0; j < num_operands; j++) in lower_op_to_function_call()
320 for (unsigned i = 0; i < ir->num_operands; i++) in handle_op()
Dlower_mat_op_to_vec.cpp79 for (i = 0; i < expr->num_operands; i++) { in mat_op_to_vec_predicate()
297 for (unsigned i = 0; i < expr->num_operands; i++) { in has_matrix_operand()
321 assert(orig_expr->num_operands <= 2); in visit_leave()
332 for (i = 0; i < orig_expr->num_operands; i++) { in visit_leave()
Dir_builder_print_visitor.cpp120 for (unsigned i = 0; i < expr->num_operands; i++) { in is_simple_operand()
488 const unsigned num_op = rhs_expr->num_operands; in visit_enter()
541 const unsigned num_op = ir->num_operands; in print_without_declaration()
595 const unsigned num_op = ir->num_operands; in visit_enter()
Dir.cpp209 for (unsigned i = num_operands; i < 4; i++) { in ir_expression()
213 for (unsigned i = 0; i < num_operands; i++) { in ir_expression()
230 assert(num_operands == 1); in ir_expression()
437 assert(num_operands == 2); in ir_expression()
438 for (unsigned i = 0; i < num_operands; i++) { in ir_expression()
534 assert(num_operands == 3); in ir_expression()
535 for (unsigned i = 0; i < num_operands; i++) { in ir_expression()
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_composites.cpp192 const uint32_t num_operands = static_cast<uint32_t>(inst->operands().size()); in ValidateCompositeConstruct() local
201 if (num_operands <= 3) { in ValidateCompositeConstruct()
206 for (uint32_t operand_index = 2; operand_index < num_operands; in ValidateCompositeConstruct()
241 if (result_num_cols + 2 != num_operands) { in ValidateCompositeConstruct()
247 for (uint32_t operand_index = 2; operand_index < num_operands; in ValidateCompositeConstruct()
275 if (array_size + 2 != num_operands) { in ValidateCompositeConstruct()
282 for (uint32_t operand_index = 2; operand_index < num_operands; in ValidateCompositeConstruct()
299 if (struct_inst->operands().size() + 1 != num_operands) { in ValidateCompositeConstruct()
305 for (uint32_t operand_index = 2; operand_index < num_operands; in ValidateCompositeConstruct()
Dinstruction.cpp24 operands_(inst->operands, inst->operands + inst->num_operands), in Instruction()
27 inst->num_operands}) {} in Instruction()
Dvalidate_extensions.cpp80 const uint32_t num_operands = static_cast<uint32_t>(inst->operands().size()); in ValidateExtInst() local
138 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
171 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
242 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
911 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
1200 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
1285 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
1439 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_composites.cpp192 const uint32_t num_operands = static_cast<uint32_t>(inst->operands().size()); in ValidateCompositeConstruct() local
201 if (num_operands <= 3) { in ValidateCompositeConstruct()
206 for (uint32_t operand_index = 2; operand_index < num_operands; in ValidateCompositeConstruct()
241 if (result_num_cols + 2 != num_operands) { in ValidateCompositeConstruct()
247 for (uint32_t operand_index = 2; operand_index < num_operands; in ValidateCompositeConstruct()
275 if (array_size + 2 != num_operands) { in ValidateCompositeConstruct()
282 for (uint32_t operand_index = 2; operand_index < num_operands; in ValidateCompositeConstruct()
299 if (struct_inst->operands().size() + 1 != num_operands) { in ValidateCompositeConstruct()
305 for (uint32_t operand_index = 2; operand_index < num_operands; in ValidateCompositeConstruct()
Dinstruction.cpp24 operands_(inst->operands, inst->operands + inst->num_operands), in Instruction()
27 inst->num_operands}) {} in Instruction()
Dvalidate_extensions.cpp80 const uint32_t num_operands = static_cast<uint32_t>(inst->operands().size()); in ValidateExtInst() local
138 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
171 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
242 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
911 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
1200 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
1285 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
1439 for (uint32_t operand_index = 4; operand_index < num_operands; in ValidateExtInst()
/external/deqp-deps/SPIRV-Tools/source/comp/
Dmarkv_encoder.cpp63 uint32_t num_operands) { in EncodeOpcodeAndNumOperands() argument
67 const uint32_t word = opcode | (num_operands << 16); in EncodeOpcodeAndNumOperands()
366 EncodeOpcodeAndNumOperands(opcode, inst.num_operands); in EncodeInstruction()
379 writer_.WriteVariableWidthU16(inst.num_operands, in EncodeInstruction()
385 const uint32_t num_operands = inst_.num_operands; in EncodeInstruction() local
386 for (operand_index_ = 0; operand_index_ < num_operands; ++operand_index_) { in EncodeInstruction()
Dmarkv_decoder.cpp62 uint32_t* opcode, uint32_t* num_operands) { in DecodeOpcodeAndNumberOfOperands() argument
76 *num_operands = uint32_t(decoded_value >> 16); in DecodeOpcodeAndNumberOfOperands()
97 *num_operands = uint32_t(decoded_value >> 16); in DecodeOpcodeAndNumberOfOperands()
782 uint32_t num_operands = 0; in DecodeInstruction() local
785 DecodeOpcodeAndNumberOfOperands(&opcode, &num_operands); in DecodeInstruction()
789 inst_.num_operands = static_cast<uint16_t>(num_operands); in DecodeInstruction()
818 if (!reader_.ReadVariableWidthU16(&inst_.num_operands, in DecodeInstruction()
823 inst_.num_operands = static_cast<uint16_t>(expected_operands.size()); in DecodeInstruction()
828 operand_index_ < static_cast<size_t>(inst_.num_operands); in DecodeInstruction()
842 assert(inst_.num_operands == parsed_operands_.size()); in DecodeInstruction()
Dmarkv_decoder.h91 uint32_t* num_operands);
/external/swiftshader/third_party/SPIRV-Tools/source/comp/
Dmarkv_encoder.cpp63 uint32_t num_operands) { in EncodeOpcodeAndNumOperands() argument
67 const uint32_t word = opcode | (num_operands << 16); in EncodeOpcodeAndNumOperands()
366 EncodeOpcodeAndNumOperands(opcode, inst.num_operands); in EncodeInstruction()
379 writer_.WriteVariableWidthU16(inst.num_operands, in EncodeInstruction()
385 const uint32_t num_operands = inst_.num_operands; in EncodeInstruction() local
386 for (operand_index_ = 0; operand_index_ < num_operands; ++operand_index_) { in EncodeInstruction()
Dmarkv_decoder.cpp62 uint32_t* opcode, uint32_t* num_operands) { in DecodeOpcodeAndNumberOfOperands() argument
76 *num_operands = uint32_t(decoded_value >> 16); in DecodeOpcodeAndNumberOfOperands()
97 *num_operands = uint32_t(decoded_value >> 16); in DecodeOpcodeAndNumberOfOperands()
782 uint32_t num_operands = 0; in DecodeInstruction() local
785 DecodeOpcodeAndNumberOfOperands(&opcode, &num_operands); in DecodeInstruction()
789 inst_.num_operands = static_cast<uint16_t>(num_operands); in DecodeInstruction()
818 if (!reader_.ReadVariableWidthU16(&inst_.num_operands, in DecodeInstruction()
823 inst_.num_operands = static_cast<uint16_t>(expected_operands.size()); in DecodeInstruction()
828 operand_index_ < static_cast<size_t>(inst_.num_operands); in DecodeInstruction()
842 assert(inst_.num_operands == parsed_operands_.size()); in DecodeInstruction()
/external/deqp-deps/SPIRV-Tools/tools/comp/
Dmarkv_model_shader.cpp35 uint32_t num_operands) { in CombineOpcodeAndNumOperands() argument
36 return opcode | (num_operands << 16); in CombineOpcodeAndNumOperands()
/external/swiftshader/third_party/SPIRV-Tools/tools/comp/
Dmarkv_model_shader.cpp35 uint32_t num_operands) { in CombineOpcodeAndNumOperands() argument
36 return opcode | (num_operands << 16); in CombineOpcodeAndNumOperands()
/external/deqp-deps/SPIRV-Tools/source/
Dextensions.cpp28 assert(inst->num_operands == 1); in GetExtensionString()
Did_descriptor.cpp47 for (size_t operand_index = 0; operand_index < inst.num_operands; in ProcessInstruction()
/external/swiftshader/third_party/SPIRV-Tools/source/
Dextensions.cpp28 assert(inst->num_operands == 1); in GetExtensionString()
Did_descriptor.cpp47 for (size_t operand_index = 0; operand_index < inst.num_operands; in ProcessInstruction()
/external/v8/src/compiler/
Dbytecode-analysis.cc97 int num_operands = Bytecodes::NumberOfOperands(bytecode); in UpdateInLiveness() local
118 for (int i = 0; i < num_operands; ++i) { in UpdateInLiveness()
167 for (int i = 0; i < num_operands; ++i) { in UpdateInLiveness()
277 int num_operands = Bytecodes::NumberOfOperands(bytecode); in UpdateAssignments() local
280 for (int i = 0; i < num_operands; ++i) { in UpdateAssignments()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dcommon_uniform_elim_pass.cpp112 const uint32_t num_operands = AccessChainInst.NumOperands(); in IsAccessChainToVolatileStructType() local
115 for (uint32_t idx = 3; idx < num_operands; ++idx) { in IsAccessChainToVolatileStructType()
129 if (idx < num_operands - 1) { in IsAccessChainToVolatileStructType()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dcommon_uniform_elim_pass.cpp112 const uint32_t num_operands = AccessChainInst.NumOperands(); in IsAccessChainToVolatileStructType() local
115 for (uint32_t idx = 3; idx < num_operands; ++idx) { in IsAccessChainToVolatileStructType()
129 if (idx < num_operands - 1) { in IsAccessChainToVolatileStructType()

1234