Home
last modified time | relevance | path

Searched refs:instruction (Results 1 - 25 of 624) sorted by relevance

12345678910>>...25

/third_party/mesa3d/src/imagination/vulkan/pds/
H A Dpvr_pds_disasm.c57 error.instruction = error.instruction; in error_reg_range()
71 "Register out of range, instruction: %s, operand: %s, value: %u", in error_reg_range()
72 instructions[error.instruction], in error_reg_range()
82 uint32_t instruction, in pvr_pds_disassemble_regs32()
89 instruction &= PVR_ROGUE_PDSINST_REGS32_MASK; in pvr_pds_disassemble_regs32()
90 switch (pvr_pds_inst_decode_field_range_regs32(instruction)) { in pvr_pds_disassemble_regs32()
93 op->address = instruction - PVR_ROGUE_PDSINST_REGS32_CONST32_LOWER; in pvr_pds_disassemble_regs32()
98 op->address = instruction - PVR_ROGUE_PDSINST_REGS32_TEMP32_LOWER; in pvr_pds_disassemble_regs32()
103 op->address = instruction in pvr_pds_disassemble_regs32()
79 pvr_pds_disassemble_regs32(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction, uint32_t parameter) pvr_pds_disassemble_regs32() argument
112 pvr_pds_disassemble_regs32tp(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction, uint32_t parameter) pvr_pds_disassemble_regs32tp() argument
140 pvr_pds_disassemble_regs32t(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction, uint32_t parameter) pvr_pds_disassemble_regs32t() argument
164 pvr_pds_disassemble_regs64(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction, uint32_t parameter) pvr_pds_disassemble_regs64() argument
198 pvr_pds_disassemble_regs64t(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction, uint32_t parameter) pvr_pds_disassemble_regs64t() argument
222 pvr_pds_disassemble_regs64C(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction, uint32_t parameter) pvr_pds_disassemble_regs64C() argument
246 pvr_pds_disassemble_regs64tp(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction, uint32_t parameter) pvr_pds_disassemble_regs64tp() argument
283 pvr_pds_disassemble_instruction_add64(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction) pvr_pds_disassemble_instruction_add64() argument
324 pvr_pds_disassemble_instruction_add32(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction) pvr_pds_disassemble_instruction_add32() argument
365 pvr_pds_disassemble_instruction_stm(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction) pvr_pds_disassemble_instruction_stm() argument
421 pvr_pds_disassemble_instruction_sftlp32(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction) pvr_pds_disassemble_instruction_sftlp32() argument
483 pvr_pds_disassemble_instruction_sftlp64(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction) pvr_pds_disassemble_instruction_sftlp64() argument
543 pvr_pds_disassemble_instruction_cmp(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction) pvr_pds_disassemble_instruction_cmp() argument
587 pvr_pds_disassemble_instruction_sp_ld_st(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, bool ld, uint32_t instruction, bool cc) pvr_pds_disassemble_instruction_sp_ld_st() argument
614 pvr_pds_disassemble_instruction_sp_stmc(uint32_t instruction, bool cc) pvr_pds_disassemble_instruction_sp_stmc() argument
635 pvr_pds_disassemble_instruction_sp_limm(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction, bool cc) pvr_pds_disassemble_instruction_sp_limm() argument
680 pvr_pds_disassemble_instruction_bra(uint32_t instruction) pvr_pds_disassemble_instruction_bra() argument
713 pvr_pds_disassemble_instruction_sp(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction) pvr_pds_disassemble_instruction_sp() argument
775 pvr_pds_disassemble_instruction_ddmad(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction) pvr_pds_disassemble_instruction_ddmad() argument
825 pvr_pds_disassemble_instruction_mad(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction) pvr_pds_disassemble_instruction_mad() argument
876 pvr_pds_disassemble_instruction_dout(void *context, PVR_ERR_CALLBACK err_callback, struct pvr_dissassembler_error error, uint32_t instruction) pvr_pds_disassemble_instruction_dout() argument
1000 pvr_pds_free_instruction(struct pvr_instruction *instruction) pvr_pds_free_instruction() argument
1053 pvr_pds_disassemble_instruction2(void *context, PVR_ERR_CALLBACK err_callback, uint32_t instruction) pvr_pds_disassemble_instruction2() argument
[all...]
H A Dpvr_pds_printer.c113 pvr_pds_disassemble_instruction_sftlp32(struct pvr_sftlp *instruction, in pvr_pds_disassemble_instruction_sftlp32() argument
122 pvr_pds_disassemble_operand(instruction->src0, src0, sizeof(src0)); in pvr_pds_disassemble_instruction_sftlp32()
123 pvr_pds_disassemble_operand(instruction->src1, src1, sizeof(src1)); in pvr_pds_disassemble_instruction_sftlp32()
124 pvr_pds_disassemble_operand(instruction->dst, dst, sizeof(dst)); in pvr_pds_disassemble_instruction_sftlp32()
126 if (instruction->IM) in pvr_pds_disassemble_instruction_sftlp32()
127 snprintf(src2, sizeof(src2), "%u", (uint32_t)instruction->src2->literal); in pvr_pds_disassemble_instruction_sftlp32()
129 pvr_pds_disassemble_operand(instruction->src2, src2, sizeof(src2)); in pvr_pds_disassemble_instruction_sftlp32()
131 if (instruction->lop == LOP_NONE) { in pvr_pds_disassemble_instruction_sftlp32()
136 instruction->cc ? "? " : "", in pvr_pds_disassemble_instruction_sftlp32()
139 instruction in pvr_pds_disassemble_instruction_sftlp32()
166 pvr_pds_disassemble_instruction_stm(struct pvr_stm *instruction, char *instr_str, size_t instr_len) pvr_pds_disassemble_instruction_stm() argument
203 pds_disassemble_instruction_stmc(struct pvr_stmc *instruction, char *instr_str, size_t instr_len) pds_disassemble_instruction_stmc() argument
220 pvr_pds_disassemble_instruction_sftlp64(struct pvr_sftlp *instruction, char *instr_str, size_t instr_len) pvr_pds_disassemble_instruction_sftlp64() argument
536 pvr_pds_disassemble_instruction(char *instr_str, size_t instr_len, struct pvr_instruction *instruction) pvr_pds_disassemble_instruction() argument
[all...]
/third_party/pcre2/pcre2/src/
H A Dpcre2_jit_simd_inc.h104 sljit_u8 instruction[5]; in load_from_mem_sse2() local
110 instruction[0] = ((sljit_u8)offset & 0xf) == 0 ? 0x66 : 0xf3; in load_from_mem_sse2()
111 instruction[1] = 0x0f; in load_from_mem_sse2()
112 instruction[2] = 0x6f; in load_from_mem_sse2()
116 instruction[3] = (dst_xmm_reg << 3) | src_general_reg; in load_from_mem_sse2()
117 sljit_emit_op_custom(compiler, instruction, 4); in load_from_mem_sse2()
121 instruction[3] = 0x40 | (dst_xmm_reg << 3) | src_general_reg; in load_from_mem_sse2()
122 instruction[4] = (sljit_u8)offset; in load_from_mem_sse2()
123 sljit_emit_op_custom(compiler, instruction, 5); in load_from_mem_sse2()
129 sljit_u8 instruction[
[all...]
/third_party/node/deps/v8/src/torque/
H A Dcsa-generator.cc85 for (const Instruction& instruction : block->instructions()) { in EmitBlock()
86 TorqueCodeGenerator::EmitInstruction(instruction, &stack); in EmitBlock()
103 const PushUninitializedInstruction& instruction, in EmitInstruction()
109 instruction.type->GetGeneratedTNodeTypeName() + ">()"; in EmitInstruction()
111 SetDefinitionVariable(instruction.GetValueDefinition(), str); in EmitInstruction()
115 const PushBuiltinPointerInstruction& instruction, in EmitInstruction()
119 instruction.external_name + "))"; in EmitInstruction()
121 SetDefinitionVariable(instruction.GetValueDefinition(), str); in EmitInstruction()
125 const NamespaceConstantInstruction& instruction, in EmitInstruction()
127 const Type* type = instruction in EmitInstruction()
102 EmitInstruction( const PushUninitializedInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
114 EmitInstruction( const PushBuiltinPointerInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
124 EmitInstruction( const NamespaceConstantInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
176 EmitInstruction(const CallIntrinsicInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
312 EmitInstruction(const CallCsaMacroInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
363 EmitInstruction( const CallCsaMacroAndBranchInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
485 EmitInstruction(const MakeLazyNodeInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
520 EmitInstruction(const CallBuiltinInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
602 EmitInstruction( const CallBuiltinPointerInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
694 EmitInstruction(const CallRuntimeInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
750 EmitInstruction(const BranchInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
783 EmitInstruction( const ConstexprBranchInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
812 EmitInstruction(const GotoInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
827 EmitInstruction(const GotoExternalInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
836 EmitInstruction(const ReturnInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
848 EmitInstruction( const PrintConstantStringInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
855 EmitInstruction(const AbortInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
881 EmitInstruction(const UnsafeCastInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
891 EmitInstruction(const LoadReferenceInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
909 EmitInstruction(const StoreReferenceInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
941 EmitInstruction(const LoadBitFieldInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
982 EmitInstruction(const StoreBitFieldInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
[all...]
H A Dcc-generator.cc68 for (const Instruction& instruction : block->instructions()) { in EmitBlock()
69 TorqueCodeGenerator::EmitInstruction(instruction, &stack); in EmitBlock()
85 const PushUninitializedInstruction& instruction, in EmitInstruction()
91 const PushBuiltinPointerInstruction& instruction, in EmitInstruction()
97 const NamespaceConstantInstruction& instruction, in EmitInstruction()
124 void CCGenerator::EmitInstruction(const CallIntrinsicInstruction& instruction, in EmitInstruction() argument
127 instruction.intrinsic->signature().parameter_types.types; in EmitInstruction()
129 parameter_types, instruction.constexpr_arguments, stack); in EmitInstruction()
132 const Type* return_type = instruction.intrinsic->signature().return_type; in EmitInstruction()
137 results.push_back(DefinitionToVariable(instruction in EmitInstruction()
84 EmitInstruction( const PushUninitializedInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
90 EmitInstruction( const PushBuiltinPointerInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
96 EmitInstruction( const NamespaceConstantInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
207 EmitInstruction(const CallCsaMacroInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
257 EmitInstruction( const CallCsaMacroAndBranchInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
263 EmitInstruction(const MakeLazyNodeInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
268 EmitInstruction(const CallBuiltinInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
273 EmitInstruction( const CallBuiltinPointerInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
279 EmitInstruction(const CallRuntimeInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
284 EmitInstruction(const BranchInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
293 EmitInstruction(const ConstexprBranchInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
316 EmitInstruction(const GotoInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
321 EmitInstruction(const GotoExternalInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
326 EmitInstruction(const ReturnInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
331 EmitInstruction( const PrintConstantStringInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
338 EmitInstruction(const AbortInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
363 EmitInstruction(const UnsafeCastInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
372 EmitInstruction(const LoadReferenceInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
422 EmitInstruction(const StoreReferenceInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
439 EmitInstruction(const LoadBitFieldInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
469 EmitInstruction(const StoreBitFieldInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
[all...]
H A Dtorque-code-generator.cc13 bool TorqueCodeGenerator::IsEmptyInstruction(const Instruction& instruction) { in IsEmptyInstruction() argument
14 switch (instruction.kind()) { in IsEmptyInstruction()
27 void TorqueCodeGenerator::EmitInstruction(const Instruction& instruction, in EmitInstruction() argument
30 if (!IsEmptyInstruction(instruction)) { in EmitInstruction()
31 EmitSourcePosition(instruction->pos); in EmitInstruction()
35 switch (instruction.kind()) { in EmitInstruction()
39 EmitIRAnnotation(instruction.Cast<T>(), stack); \ in EmitInstruction()
41 return EmitInstruction(instruction.Cast<T>(), stack); in EmitInstruction()
47 void TorqueCodeGenerator::EmitInstruction(const PeekInstruction& instruction, in EmitInstruction() argument
49 stack->Push(stack->Peek(instruction in EmitInstruction()
52 EmitInstruction(const PokeInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
58 EmitInstruction( const DeleteRangeInstruction& instruction, Stack<std::string>* stack) EmitInstruction() argument
[all...]
/third_party/spirv-tools/tools/objdump/
H A Dextract_source.cpp66 const spv_parsed_instruction_t& instruction, in extractOpString()
69 assert(instruction.opcode == spv::Op::OpString); in extractOpString()
70 if (instruction.num_operands != 2) { in extractOpString()
76 const auto& operand = instruction.operands[1]; in extractOpString()
78 reinterpret_cast<const char*>(instruction.words + operand.offset); in extractOpString()
80 instruction.words + operand.offset + operand.num_words); in extractOpString()
85 const spv_position_t& loc, const spv_parsed_instruction_t& instruction, in extractOpSourceContinued()
88 assert(instruction.opcode == spv::Op::OpSourceContinued); in extractOpSourceContinued()
89 if (instruction.num_operands != 1) { in extractOpSourceContinued()
95 const auto& operand = instruction in extractOpSourceContinued()
65 extractOpString(const spv_position_t& loc, const spv_parsed_instruction_t& instruction, std::string* output) extractOpString() argument
84 extractOpSourceContinued( const spv_position_t& loc, const spv_parsed_instruction_t& instruction, std::string* output) extractOpSourceContinued() argument
103 extractOpSource(const spv_position_t& loc, const spv_parsed_instruction_t& instruction, spv::Id* filename, std::string* code) extractOpSource() argument
[all...]
/third_party/spirv-tools/source/opt/
H A Dtrim_capabilities_pass.cpp53 // DFS visit of the type defined by `instruction`.
57 static void DFSWhile(const Instruction* instruction, UnaryPredicate condition) { in DFSWhile() argument
59 instructions_to_visit.push(instruction->result_id()); in DFSWhile()
60 const auto* def_use_mgr = instruction->context()->get_def_use_mgr(); in DFSWhile()
94 // Walks the type defined by `instruction` (OpType* only).
97 static bool AnyTypeOf(const Instruction* instruction, in AnyTypeOf() argument
99 assert(IsTypeInst(instruction->opcode()) && in AnyTypeOf()
100 "AnyTypeOf called with a non-type instruction."); in AnyTypeOf()
103 DFSWhile(instruction, [&found_one, predicate](const Instruction* node) { in AnyTypeOf()
114 static bool is16bitType(const Instruction* instruction) { in is16bitType() argument
140 Handler_OpTypeFloat_Float64( const Instruction* instruction) Handler_OpTypeFloat_Float64() argument
151 Handler_OpTypePointer_StorageInputOutput16(const Instruction* instruction) Handler_OpTypePointer_StorageInputOutput16() argument
174 Handler_OpTypePointer_StoragePushConstant16(const Instruction* instruction) Handler_OpTypePointer_StoragePushConstant16() argument
196 Handler_OpTypePointer_StorageUniformBufferBlock16( const Instruction* instruction) Handler_OpTypePointer_StorageUniformBufferBlock16() argument
229 Handler_OpTypePointer_StorageUniform16( const Instruction* instruction) Handler_OpTypePointer_StorageUniform16() argument
277 Handler_OpTypeInt_Int64( const Instruction* instruction) Handler_OpTypeInt_Int64() argument
287 Handler_OpTypeImage_ImageMSArray( const Instruction* instruction) Handler_OpTypeImage_ImageMSArray() argument
304 Handler_OpImageRead_StorageImageReadWithoutFormat( const Instruction* instruction) Handler_OpImageRead_StorageImageReadWithoutFormat() argument
326 Handler_OpImageSparseRead_StorageImageReadWithoutFormat( const Instruction* instruction) Handler_OpImageSparseRead_StorageImageReadWithoutFormat() argument
460 addInstructionRequirements( Instruction* instruction, CapabilitySet* capabilities, ExtensionSet* extensions) const addInstructionRequirements() argument
[all...]
/third_party/mesa3d/src/intel/compiler/
H A Dtest_fs_saturate_propagation.cpp84 instruction(bblock_t *block, int num) in instruction() function
142 EXPECT_EQ(BRW_OPCODE_ADD, instruction(block0, 0)->opcode); in TEST_F()
143 EXPECT_TRUE(instruction(block0, 0)->saturate); in TEST_F()
144 EXPECT_EQ(BRW_OPCODE_MOV, instruction(block0, 1)->opcode); in TEST_F()
145 EXPECT_FALSE(instruction(block0, 1)->saturate); in TEST_F()
179 EXPECT_EQ(BRW_OPCODE_ADD, instruction(block0, 0)->opcode); in TEST_F()
180 EXPECT_FALSE(instruction(block0, 0)->saturate); in TEST_F()
181 EXPECT_EQ(BRW_OPCODE_MOV, instruction(block0, 1)->opcode); in TEST_F()
182 EXPECT_TRUE(instruction(block0, 1)->saturate); in TEST_F()
183 EXPECT_EQ(BRW_OPCODE_ADD, instruction(block in TEST_F()
[all...]
H A Dtest_fs_cmod_propagation.cpp94 instruction(bblock_t *block, int num) in instruction() function
151 EXPECT_EQ(BRW_OPCODE_ADD, instruction(block0, 0)->opcode); in TEST_F()
152 EXPECT_EQ(BRW_CONDITIONAL_GE, instruction(block0, 0)->conditional_mod); in TEST_F()
184 EXPECT_EQ(BRW_OPCODE_ADD, instruction(block0, 0)->opcode); in TEST_F()
185 EXPECT_EQ(1, instruction(block0, 0)->flag_subreg); in TEST_F()
186 EXPECT_EQ(BRW_CONDITIONAL_GE, instruction(block0, 0)->conditional_mod); in TEST_F()
217 EXPECT_EQ(BRW_OPCODE_ADD, instruction(block0, 0)->opcode); in TEST_F()
218 EXPECT_EQ(BRW_OPCODE_CMP, instruction(block0, 1)->opcode); in TEST_F()
219 EXPECT_EQ(BRW_CONDITIONAL_GE, instruction(block0, 1)->conditional_mod); in TEST_F()
249 EXPECT_EQ(BRW_OPCODE_FBL, instruction(block in TEST_F()
[all...]
H A Dtest_vec4_cmod_propagation.cpp126 instruction(bblock_t *block, int num) in instruction() function
187 EXPECT_EQ(BRW_OPCODE_ADD, instruction(block0, 0)->opcode); in TEST_F()
188 EXPECT_EQ(BRW_CONDITIONAL_GE, instruction(block0, 0)->conditional_mod); in TEST_F()
222 EXPECT_EQ(BRW_OPCODE_ADD, instruction(block0, 0)->opcode); in TEST_F()
223 EXPECT_EQ(BRW_CONDITIONAL_NONE, instruction(block0, 0)->conditional_mod); in TEST_F()
224 EXPECT_EQ(BRW_OPCODE_CMP, instruction(block0, 1)->opcode); in TEST_F()
225 EXPECT_EQ(BRW_CONDITIONAL_GE, instruction(block0, 1)->conditional_mod); in TEST_F()
258 EXPECT_EQ(BRW_OPCODE_CMP, instruction(block0, 0)->opcode); in TEST_F()
259 EXPECT_EQ(BRW_CONDITIONAL_L, instruction(block0, 0)->conditional_mod); in TEST_F()
260 EXPECT_EQ(BRW_OPCODE_AND, instruction(block in TEST_F()
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
H A Dtransformation_set_memory_operands_mask.cpp60 auto instruction = in IsApplicable() local
62 if (!instruction) { in IsApplicable()
65 if (!IsMemoryAccess(*instruction)) { in IsApplicable()
70 *instruction, message_.memory_operands_mask_index()); in IsApplicable()
74 original_mask_in_operand_index < instruction->NumInOperands() in IsApplicable()
75 ? instruction->GetSingleWordInOperand(original_mask_in_operand_index) in IsApplicable()
98 auto instruction = in Apply() local
101 *instruction, message_.memory_operands_mask_index()); in Apply()
104 if (original_mask_in_operand_index >= instruction->NumInOperands()) { in Apply()
107 GetInOperandIndexForMask(*instruction, in Apply()
129 IsMemoryAccess( const opt::Instruction& instruction) IsMemoryAccess() argument
142 GetInOperandIndexForMask( const opt::Instruction& instruction, uint32_t mask_index) GetInOperandIndexForMask() argument
[all...]
H A Dtransformation_make_vector_operation_dynamic.cpp37 // |instruction| must be a vector operation. in IsApplicable()
38 auto instruction = in IsApplicable() local
40 if (!IsVectorOperation(ir_context, instruction)) { in IsApplicable()
44 // |constant_index_instruction| must be defined as an integer instruction. in IsApplicable()
59 auto instruction = in Apply() local
62 // The OpVectorInsertDynamic instruction has the vector and component operands in Apply()
65 if (instruction->opcode() == SpvOpCompositeInsert) { in Apply()
66 std::swap(instruction->GetInOperand(0), instruction->GetInOperand(1)); in Apply()
70 instruction in Apply()
87 IsVectorOperation( opt::IRContext* ir_context, opt::Instruction* instruction) IsVectorOperation() argument
[all...]
H A Dfuzzer_pass_replace_opselects_with_conditional_branches.cpp53 for (auto& instruction : block) { in Apply()
55 if (instruction.opcode() != SpvOpSelect) { in Apply()
59 // Randomly choose whether to consider this instruction for replacement. in Apply()
71 GetIRContext(), instruction.GetSingleWordInOperand(0))) in Apply()
79 // only be applied to at most the first instruction in a loop header. in Apply()
80 if (block.IsLoopHeader() && InstructionNeedsSplitBefore(&instruction)) { in Apply()
84 // If the instruction separates an OpSampledImage from its use, the in Apply()
85 // block cannot be split around it and the instruction cannot be in Apply()
89 &block, &instruction)) { in Apply()
93 // We can apply the transformation to this instruction in Apply()
102 auto instruction = Apply() local
138 InstructionNeedsSplitBefore(opt::Instruction* instruction) InstructionNeedsSplitBefore() argument
[all...]
H A Dtransformation_expand_vector_reduction.cpp38 auto* instruction = in IsApplicable() local
41 // |instruction| must be defined. in IsApplicable()
42 if (!instruction) { in IsApplicable()
46 // |instruction| must be OpAny or OpAll. in IsApplicable()
47 if (instruction->opcode() != SpvOpAny && instruction->opcode() != SpvOpAll) { in IsApplicable()
54 GetRequiredFreshIdCount(ir_context, instruction)) { in IsApplicable()
78 auto* instruction = in Apply() local
81 instruction->GetSingleWordInOperand(0)); in Apply()
96 ir_context, SpvOpCompositeExtract, instruction in Apply()
146 GetRequiredFreshIdCount( opt::IRContext* ir_context, opt::Instruction* instruction) GetRequiredFreshIdCount() argument
[all...]
H A Dtransformation_wrap_vector_synonym.cpp19 #include "source/opt/instruction.h"
46 const opt::Instruction* instruction = in IsApplicable() local
49 // |instruction_id| must refer to an existing instruction. in IsApplicable()
50 if (instruction == nullptr) { in IsApplicable()
54 if (!IsInstructionSupported(ir_context, *instruction)) { in IsApplicable()
61 *instruction)) { in IsApplicable()
78 if (!fuzzerutil::TypesAreCompatible(ir_context, instruction->opcode(), in IsApplicable()
90 // A suitable vector for the result type of the new vector instruction must in IsApplicable()
92 // type matches the result type of the scalar instruction. in IsApplicable()
94 if (!fuzzerutil::MaybeGetVectorType(ir_context, instruction in IsApplicable()
129 auto instruction = Apply() local
173 IsInstructionSupported( opt::IRContext* ir_context, const opt::Instruction& instruction) IsInstructionSupported() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
H A Dtransformation_set_memory_operands_mask.cpp60 auto instruction = in IsApplicable() local
62 if (!instruction) { in IsApplicable()
65 if (!IsMemoryAccess(*instruction)) { in IsApplicable()
70 *instruction, message_.memory_operands_mask_index()); in IsApplicable()
74 original_mask_in_operand_index < instruction->NumInOperands() in IsApplicable()
75 ? instruction->GetSingleWordInOperand(original_mask_in_operand_index) in IsApplicable()
98 auto instruction = in Apply() local
101 *instruction, message_.memory_operands_mask_index()); in Apply()
104 if (original_mask_in_operand_index >= instruction->NumInOperands()) { in Apply()
107 GetInOperandIndexForMask(*instruction, in Apply()
129 IsMemoryAccess( const opt::Instruction& instruction) IsMemoryAccess() argument
142 GetInOperandIndexForMask( const opt::Instruction& instruction, uint32_t mask_index) GetInOperandIndexForMask() argument
[all...]
H A Dtransformation_make_vector_operation_dynamic.cpp37 // |instruction| must be a vector operation. in IsApplicable()
38 auto instruction = in IsApplicable() local
40 if (!IsVectorOperation(ir_context, instruction)) { in IsApplicable()
44 // |constant_index_instruction| must be defined as an integer instruction. in IsApplicable()
59 auto instruction = in Apply() local
62 // The OpVectorInsertDynamic instruction has the vector and component operands in Apply()
65 if (instruction->opcode() == SpvOpCompositeInsert) { in Apply()
66 std::swap(instruction->GetInOperand(0), instruction->GetInOperand(1)); in Apply()
70 instruction in Apply()
87 IsVectorOperation( opt::IRContext* ir_context, opt::Instruction* instruction) IsVectorOperation() argument
[all...]
H A Dfuzzer_pass_replace_opselects_with_conditional_branches.cpp53 for (auto& instruction : block) { in Apply()
55 if (instruction.opcode() != SpvOpSelect) { in Apply()
59 // Randomly choose whether to consider this instruction for replacement. in Apply()
71 GetIRContext(), instruction.GetSingleWordInOperand(0))) in Apply()
79 // only be applied to at most the first instruction in a loop header. in Apply()
80 if (block.IsLoopHeader() && InstructionNeedsSplitBefore(&instruction)) { in Apply()
84 // If the instruction separates an OpSampledImage from its use, the in Apply()
85 // block cannot be split around it and the instruction cannot be in Apply()
89 &block, &instruction)) { in Apply()
93 // We can apply the transformation to this instruction in Apply()
102 auto instruction = Apply() local
138 InstructionNeedsSplitBefore(opt::Instruction* instruction) InstructionNeedsSplitBefore() argument
[all...]
H A Dtransformation_expand_vector_reduction.cpp38 auto* instruction = in IsApplicable() local
41 // |instruction| must be defined. in IsApplicable()
42 if (!instruction) { in IsApplicable()
46 // |instruction| must be OpAny or OpAll. in IsApplicable()
47 if (instruction->opcode() != SpvOpAny && instruction->opcode() != SpvOpAll) { in IsApplicable()
54 GetRequiredFreshIdCount(ir_context, instruction)) { in IsApplicable()
78 auto* instruction = in Apply() local
81 instruction->GetSingleWordInOperand(0)); in Apply()
96 ir_context, SpvOpCompositeExtract, instruction in Apply()
146 GetRequiredFreshIdCount( opt::IRContext* ir_context, opt::Instruction* instruction) GetRequiredFreshIdCount() argument
[all...]
H A Dtransformation_wrap_vector_synonym.cpp19 #include "source/opt/instruction.h"
46 const opt::Instruction* instruction = in IsApplicable() local
49 // |instruction_id| must refer to an existing instruction. in IsApplicable()
50 if (instruction == nullptr) { in IsApplicable()
54 if (!IsInstructionSupported(ir_context, *instruction)) { in IsApplicable()
61 *instruction)) { in IsApplicable()
78 if (!fuzzerutil::TypesAreCompatible(ir_context, instruction->opcode(), in IsApplicable()
90 // A suitable vector for the result type of the new vector instruction must in IsApplicable()
92 // type matches the result type of the scalar instruction. in IsApplicable()
94 if (!fuzzerutil::MaybeGetVectorType(ir_context, instruction in IsApplicable()
129 auto instruction = Apply() local
173 IsInstructionSupported( opt::IRContext* ir_context, const opt::Instruction& instruction) IsInstructionSupported() argument
[all...]
/third_party/spirv-tools/source/fuzz/
H A Dtransformation_make_vector_operation_dynamic.cpp37 // |instruction| must be a vector operation. in IsApplicable()
38 auto instruction = in IsApplicable() local
40 if (!IsVectorOperation(ir_context, instruction)) { in IsApplicable()
44 // |constant_index_instruction| must be defined as an integer instruction. in IsApplicable()
59 auto instruction = in Apply() local
62 // The OpVectorInsertDynamic instruction has the vector and component operands in Apply()
65 if (instruction->opcode() == spv::Op::OpCompositeInsert) { in Apply()
66 std::swap(instruction->GetInOperand(0), instruction->GetInOperand(1)); in Apply()
70 instruction in Apply()
87 IsVectorOperation( opt::IRContext* ir_context, opt::Instruction* instruction) IsVectorOperation() argument
[all...]
H A Dtransformation_set_memory_operands_mask.cpp63 auto instruction = in IsApplicable() local
65 if (!instruction) { in IsApplicable()
68 if (!IsMemoryAccess(*instruction)) { in IsApplicable()
73 *instruction, message_.memory_operands_mask_index()); in IsApplicable()
77 original_mask_in_operand_index < instruction->NumInOperands() in IsApplicable()
78 ? instruction->GetSingleWordInOperand(original_mask_in_operand_index) in IsApplicable()
101 auto instruction = in Apply() local
104 *instruction, message_.memory_operands_mask_index()); in Apply()
107 if (original_mask_in_operand_index >= instruction->NumInOperands()) { in Apply()
110 GetInOperandIndexForMask(*instruction, in Apply()
132 IsMemoryAccess( const opt::Instruction& instruction) IsMemoryAccess() argument
145 GetInOperandIndexForMask( const opt::Instruction& instruction, uint32_t mask_index) GetInOperandIndexForMask() argument
[all...]
H A Dtransformation_expand_vector_reduction.cpp38 auto* instruction = in IsApplicable() local
41 // |instruction| must be defined. in IsApplicable()
42 if (!instruction) { in IsApplicable()
46 // |instruction| must be OpAny or OpAll. in IsApplicable()
47 if (instruction->opcode() != spv::Op::OpAny && in IsApplicable()
48 instruction->opcode() != spv::Op::OpAll) { in IsApplicable()
55 GetRequiredFreshIdCount(ir_context, instruction)) { in IsApplicable()
79 auto* instruction = in Apply() local
82 instruction->GetSingleWordInOperand(0)); in Apply()
98 instruction in Apply()
149 GetRequiredFreshIdCount( opt::IRContext* ir_context, opt::Instruction* instruction) GetRequiredFreshIdCount() argument
[all...]
/third_party/spirv-tools/source/val/
H A Dvalidate.cpp32 #include "source/val/instruction.h"
46 // Parses OpExtension instruction and registers extension.
61 // once an instruction which is not spv::Op::OpCapability and
83 auto* instruction = _.AddOrderedInstruction(inst); in ProcessInstruction() local
84 _.RegisterDebugInstruction(instruction); in ProcessInstruction()
108 // * There is at least one OpEntryPoint instruction, unless the Linkage
110 // * No function can be targeted by both an OpEntryPoint instruction and an
111 // OpFunctionCall instruction.
120 << "No OpEntryPoint instruction was found. This is only allowed if " in ValidateEntryPoints()
128 << ") may not be targeted by both an OpEntryPoint instruction an in ValidateEntryPoints()
322 auto& instruction = vstate->ordered_instructions()[i]; ValidateBinaryUsingContextAndValidationState() local
328 auto& instruction = vstate->ordered_instructions()[i]; ValidateBinaryUsingContextAndValidationState() local
[all...]

Completed in 14 milliseconds

12345678910>>...25