/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/fact_manager/ |
H A D | irrelevant_value_facts.cpp | 33 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.pointer_id()); in MaybeAddFact() local 34 if (!inst || !inst->type_id()) { in MaybeAddFact() 39 if (!ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact() 57 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.result_id()); in MaybeAddFact() local 58 if (!inst || !inst->type_id()) { in MaybeAddFact() 63 if (ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact() 118 block->ForEachInst([this, &irrelevant_ids](opt::Instruction* inst) { in GetIrrelevantIds() 121 if (inst in GetIrrelevantIds() [all...] |
/third_party/spirv-tools/source/fuzz/fact_manager/ |
H A D | irrelevant_value_facts.cpp | 33 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.pointer_id()); in MaybeAddFact() local 34 if (!inst || !inst->type_id()) { in MaybeAddFact() 39 if (!ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact() 57 const auto* inst = ir_context_->get_def_use_mgr()->GetDef(fact.result_id()); in MaybeAddFact() local 58 if (!inst || !inst->type_id()) { in MaybeAddFact() 63 if (ir_context_->get_type_mgr()->GetType(inst->type_id())->AsPointer()) { in MaybeAddFact() 118 block->ForEachInst([this, &irrelevant_ids](opt::Instruction* inst) { in GetIrrelevantIds() 121 if (inst in GetIrrelevantIds() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_two_side.c | 102 struct tgsi_full_instruction inst; in emit_prolog() local 150 inst = tgsi_default_full_instruction(); in emit_prolog() 151 inst.Instruction.Opcode = TGSI_OPCODE_CMP; in emit_prolog() 152 inst.Instruction.NumDstRegs = 1; in emit_prolog() 153 inst.Dst[0].Register.File = TGSI_FILE_TEMPORARY; in emit_prolog() 154 inst.Dst[0].Register.Index = ts->new_colors[i]; in emit_prolog() 155 inst.Instruction.NumSrcRegs = 3; in emit_prolog() 156 inst.Src[0].Register.File = TGSI_FILE_INPUT; in emit_prolog() 157 inst.Src[0].Register.Index = ts->face_input; in emit_prolog() 158 inst in emit_prolog() 171 xform_inst(struct tgsi_transform_context *ctx, struct tgsi_full_instruction *inst) xform_inst() argument [all...] |
/third_party/rust/crates/regex/src/ |
H A D | pikevm.rs | 245 Char(ref inst) => { in step() 246 if inst.c == at.char() { in step() 247 self.add(nlist, thread_caps, inst.goto, at_next); in step() 251 Ranges(ref inst) => { in step() 252 if inst.matches(at.char()) { in step() 253 self.add(nlist, thread_caps, inst.goto, at_next); in step() 257 Bytes(ref inst) => { in step() 259 if inst.matches(b) { in step() 260 self.add(nlist, thread_caps, inst.goto, at_next); in step() 311 EmptyLook(ref inst) in add_step() [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_vec4_gs_visitor.cpp | 101 foreach_block_and_inst(block, vec4_instruction, inst, cfg) { in setup_varying_inputs() 103 if (inst->src[i].file != ATTR) in setup_varying_inputs() 106 assert(inst->src[i].offset % REG_SIZE == 0); in setup_varying_inputs() 108 inst->src[i].nr + inst->src[i].offset / REG_SIZE; in setup_varying_inputs() 111 attribute_to_hw_reg(grf, inst->src[i].type, attributes_per_reg > 1); in setup_varying_inputs() 112 reg.swizzle = inst->src[i].swizzle; in setup_varying_inputs() 113 if (inst->src[i].abs) in setup_varying_inputs() 115 if (inst->src[i].negate) in setup_varying_inputs() 118 inst in setup_varying_inputs() 169 vec4_instruction *inst = emit(GS_OPCODE_SET_DWORD_2, r0, brw_imm_ud(0u)); emit_prolog() local 221 vec4_instruction *inst = emit(MOV(mrf_reg, r0)); emit_thread_end() local 244 vec4_instruction *inst = emit(MOV(mrf_reg, r0)); emit_urb_write_header() local 260 vec4_instruction *inst = emit(VEC4_GS_OPCODE_URB_WRITE); emit_urb_write_opcode() local 335 vec4_instruction *inst = emit(MOV(mrf_reg, r0)); emit_control_data_bits() local 464 vec4_instruction *inst = gs_emit_vertex() local [all...] |
H A D | gfx6_gs_visitor.cpp | 75 vec4_instruction *inst = emit(MOV(dst_reg(MRF, 1), in emit_prolog() local 78 inst->force_writemask_all = true; in emit_prolog() 168 vec4_instruction *inst = emit(MOV(dst, src_reg(tmp))); in gs_emit_vertex() local 169 inst->force_writemask_all = true; in gs_emit_vertex() 224 vec4_instruction *inst = emit(CMP(dst_null_ud(), in gs_end_primitive() local 227 inst->predicate = BRW_PREDICATE_NORMAL; in gs_end_primitive() 292 vec4_instruction *inst = NULL; in emit_snb_gs_urb_write_opcode() local 296 inst = emit(VEC4_GS_OPCODE_URB_WRITE); in emit_snb_gs_urb_write_opcode() 297 inst->urb_write_flags = BRW_URB_WRITE_NO_FLAGS; in emit_snb_gs_urb_write_opcode() 307 inst in emit_snb_gs_urb_write_opcode() 354 vec4_instruction *inst = NULL; emit_thread_end() local 574 vec4_instruction *inst = emit(MOV(dst_reg(destination_indices), xfb_write() local 628 vec4_instruction *inst = emit(GS_OPCODE_SVB_SET_DST_INDEX, xfb_program() local [all...] |
H A D | brw_fs_lower_pack.cpp | 35 foreach_block_and_inst_safe(block, fs_inst, inst, cfg) { in lower_pack() 36 if (inst->opcode != FS_OPCODE_PACK) in lower_pack() 39 assert(inst->dst.file == VGRF); in lower_pack() 40 assert(inst->saturate == false); in lower_pack() 41 fs_reg dst = inst->dst; in lower_pack() 43 const fs_builder ibld(this, block, inst); in lower_pack() 44 for (unsigned i = 0; i < inst->sources; i++) in lower_pack() 45 ibld.MOV(subscript(dst, inst->src[i].type, i), inst->src[i]); in lower_pack() 47 inst in lower_pack() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | aggressive_dead_code_elim_pass.cpp | 156 for (auto& inst : context()->module()->ext_inst_imports()) { in AllExtensionsSupported() 157 assert(inst.opcode() == SpvOpExtInstImport && in AllExtensionsSupported() 160 reinterpret_cast<const char*>(&inst.GetInOperand(0).words[0]); in AllExtensionsSupported() 170 bool AggressiveDCEPass::IsTargetDead(Instruction* inst) { in IsTargetDead() argument 171 const uint32_t tId = inst->GetSingleWordInOperand(0); in IsTargetDead() 280 (*bi)->ForEachInst([this, &modified, &merge_block_id](Instruction* inst) { in KillDeadInstructions() 281 if (IsLive(inst)) return; in KillDeadInstructions() 282 if (inst->opcode() == SpvOpLabel) return; in KillDeadInstructions() 285 if (inst->opcode() == SpvOpSelectionMerge || in KillDeadInstructions() 286 inst in KillDeadInstructions() 319 Instruction* inst = (*bi)->terminator(); KillDeadInstructions() local 343 AddDebugInstructionsToWorkList( const Instruction* inst) AddDebugInstructionsToWorkList() argument 362 AddDecorationsToWorkList(const Instruction* inst) AddDecorationsToWorkList() argument 385 MarkLoadedVariablesAsLive(Function* func, Instruction* inst) MarkLoadedVariablesAsLive() argument 393 GetLoadedVariables(Instruction* inst) GetLoadedVariables() argument 404 GetLoadedVariableFromNonFunctionCalls( Instruction* inst) GetLoadedVariableFromNonFunctionCalls() argument 437 GetLoadedVariablesFromFunctionCall( const Instruction* inst) GetLoadedVariablesFromFunctionCall() argument 457 MarkBlockAsLive(Instruction* inst) MarkBlockAsLive() argument 510 AddOperandsToWorkList(const Instruction* inst) AddOperandsToWorkList() argument 1002 GetMergeInstruction(Instruction* inst) GetMergeInstruction() argument [all...] |
H A D | ir_context.cpp | 164 Instruction* IRContext::KillInst(Instruction* inst) { in KillInst() argument 165 if (!inst) { in KillInst() 169 KillNamesAndDecorates(inst); in KillInst() 171 KillOperandFromDebugInstructions(inst); in KillInst() 175 def_use_mgr->ClearInst(inst); in KillInst() 176 for (auto& l_inst : inst->dbg_line_insts()) def_use_mgr->ClearInst(&l_inst); in KillInst() 179 instr_to_block_.erase(inst); in KillInst() 182 if (inst->IsDecoration()) { in KillInst() 183 decoration_mgr_->RemoveDecoration(inst); in KillInst() 187 get_debug_info_mgr()->ClearDebugScopeAndInlinedAtUses(inst); in KillInst() 220 CollectNonSemanticTree( Instruction* inst, std::unordered_set<Instruction*>* to_kill) CollectNonSemanticTree() argument 372 ForgetUses(Instruction* inst) ForgetUses() argument 387 AnalyzeUses(Instruction* inst) AnalyzeUses() argument 418 KillNamesAndDecorates(Instruction* inst) KillNamesAndDecorates() argument 424 KillOperandFromDebugInstructions(Instruction* inst) KillOperandFromDebugInstructions() argument 725 RemoveFromIdToName(const Instruction* inst) RemoveFromIdToName() argument 928 EmitErrorMessage(std::string message, Instruction* inst) EmitErrorMessage() argument [all...] |
H A D | aggressive_dead_code_elim_pass.h | 75 // Return true if |inst| is marked live. 76 bool IsLive(const Instruction* inst) const { in IsLive() 77 return live_insts_.Get(inst->unique_id()); in IsLive() 84 // Add |inst| to worklist_ and live_insts_. 85 void AddToWorklist(Instruction* inst) { in AddToWorklist() argument 86 if (!live_insts_.Set(inst->unique_id())) { in AddToWorklist() 87 worklist_.push(inst); in AddToWorklist() 101 // Returns true if the target of |inst| is dead. An instruction is dead if 102 // its result id is used in decoration or debug instructions only. |inst| is 104 bool IsTargetDead(Instruction* inst); [all...] |
H A D | wrap_opkill.cpp | 29 bool successful = func->WhileEachInst([this, &modified](Instruction* inst) { in Process() 30 const auto opcode = inst->opcode(); in Process() 33 if (!ReplaceWithFunctionCall(inst)) { in Process() 58 bool WrapOpKill::ReplaceWithFunctionCall(Instruction* inst) { in ReplaceWithFunctionCall() argument 59 assert((inst->opcode() == SpvOpKill || in ReplaceWithFunctionCall() 60 inst->opcode() == SpvOpTerminateInvocation) && in ReplaceWithFunctionCall() 61 "|inst| must be an OpKill or OpTerminateInvocation instruction."); in ReplaceWithFunctionCall() 63 context(), inst, in ReplaceWithFunctionCall() local 65 uint32_t func_id = GetKillingFuncId(inst->opcode()); in ReplaceWithFunctionCall() 74 call_inst->UpdateDebugInfoFrom(inst); in ReplaceWithFunctionCall() 188 GetOwningFunctionsReturnType(Instruction* inst) GetOwningFunctionsReturnType() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | aggressive_dead_code_elim_pass.cpp | 156 for (auto& inst : context()->module()->ext_inst_imports()) { in AllExtensionsSupported() 157 assert(inst.opcode() == SpvOpExtInstImport && in AllExtensionsSupported() 160 reinterpret_cast<const char*>(&inst.GetInOperand(0).words[0]); in AllExtensionsSupported() 170 bool AggressiveDCEPass::IsTargetDead(Instruction* inst) { in IsTargetDead() argument 171 const uint32_t tId = inst->GetSingleWordInOperand(0); in IsTargetDead() 280 (*bi)->ForEachInst([this, &modified, &merge_block_id](Instruction* inst) { in KillDeadInstructions() 281 if (IsLive(inst)) return; in KillDeadInstructions() 282 if (inst->opcode() == SpvOpLabel) return; in KillDeadInstructions() 285 if (inst->opcode() == SpvOpSelectionMerge || in KillDeadInstructions() 286 inst in KillDeadInstructions() 319 Instruction* inst = (*bi)->terminator(); KillDeadInstructions() local 343 AddDebugInstructionsToWorkList( const Instruction* inst) AddDebugInstructionsToWorkList() argument 362 AddDecorationsToWorkList(const Instruction* inst) AddDecorationsToWorkList() argument 385 MarkLoadedVariablesAsLive(Function* func, Instruction* inst) MarkLoadedVariablesAsLive() argument 393 GetLoadedVariables(Instruction* inst) GetLoadedVariables() argument 404 GetLoadedVariableFromNonFunctionCalls( Instruction* inst) GetLoadedVariableFromNonFunctionCalls() argument 437 GetLoadedVariablesFromFunctionCall( const Instruction* inst) GetLoadedVariablesFromFunctionCall() argument 457 MarkBlockAsLive(Instruction* inst) MarkBlockAsLive() argument 510 AddOperandsToWorkList(const Instruction* inst) AddOperandsToWorkList() argument 1002 GetMergeInstruction(Instruction* inst) GetMergeInstruction() argument [all...] |
H A D | ir_context.cpp | 164 Instruction* IRContext::KillInst(Instruction* inst) { in KillInst() argument 165 if (!inst) { in KillInst() 169 KillNamesAndDecorates(inst); in KillInst() 171 KillOperandFromDebugInstructions(inst); in KillInst() 175 def_use_mgr->ClearInst(inst); in KillInst() 176 for (auto& l_inst : inst->dbg_line_insts()) def_use_mgr->ClearInst(&l_inst); in KillInst() 179 instr_to_block_.erase(inst); in KillInst() 182 if (inst->IsDecoration()) { in KillInst() 183 decoration_mgr_->RemoveDecoration(inst); in KillInst() 187 get_debug_info_mgr()->ClearDebugScopeAndInlinedAtUses(inst); in KillInst() 220 CollectNonSemanticTree( Instruction* inst, std::unordered_set<Instruction*>* to_kill) CollectNonSemanticTree() argument 372 ForgetUses(Instruction* inst) ForgetUses() argument 387 AnalyzeUses(Instruction* inst) AnalyzeUses() argument 418 KillNamesAndDecorates(Instruction* inst) KillNamesAndDecorates() argument 424 KillOperandFromDebugInstructions(Instruction* inst) KillOperandFromDebugInstructions() argument 725 RemoveFromIdToName(const Instruction* inst) RemoveFromIdToName() argument 928 EmitErrorMessage(std::string message, Instruction* inst) EmitErrorMessage() argument [all...] |
H A D | aggressive_dead_code_elim_pass.h | 75 // Return true if |inst| is marked live. 76 bool IsLive(const Instruction* inst) const { in IsLive() 77 return live_insts_.Get(inst->unique_id()); in IsLive() 84 // Add |inst| to worklist_ and live_insts_. 85 void AddToWorklist(Instruction* inst) { in AddToWorklist() argument 86 if (!live_insts_.Set(inst->unique_id())) { in AddToWorklist() 87 worklist_.push(inst); in AddToWorklist() 101 // Returns true if the target of |inst| is dead. An instruction is dead if 102 // its result id is used in decoration or debug instructions only. |inst| is 104 bool IsTargetDead(Instruction* inst); [all...] |
/drivers/hdf_core/framework/core/manager/src/ |
H A D | devsvc_manager.c | 22 static struct DevSvcRecord *DevSvcManagerSearchServiceLocked(struct IDevSvcManager *inst, uint32_t serviceKey) in DevSvcManagerSearchServiceLocked() argument 26 struct DevSvcManager *devSvcManager = (struct DevSvcManager *)inst; in DevSvcManagerSearchServiceLocked() 85 int DevSvcManagerAddService(struct IDevSvcManager *inst, in DevSvcManagerAddService() argument 88 struct DevSvcManager *devSvcManager = (struct DevSvcManager *)inst; in DevSvcManagerAddService() 95 record = DevSvcManagerSearchServiceLocked(inst, HdfStringMakeHashKey(servInfo->servName, 0)); in DevSvcManagerAddService() 131 int DevSvcManagerUpdateService(struct IDevSvcManager *inst, in DevSvcManagerUpdateService() argument 134 struct DevSvcManager *devSvcManager = (struct DevSvcManager *)inst; in DevSvcManagerUpdateService() 142 record = DevSvcManagerSearchServiceLocked(inst, HdfStringMakeHashKey(servInfo->servName, 0)); in DevSvcManagerUpdateService() 166 int DevSvcManagerSubscribeService(struct IDevSvcManager *inst, const char *svcName, struct SubscriberCallback callBack) in DevSvcManagerSubscribeService() argument 170 if (inst in DevSvcManagerSubscribeService() 185 DevSvcManagerRemoveService(struct IDevSvcManager *inst, const char *svcName, const struct HdfDeviceObject *devObj) DevSvcManagerRemoveService() argument 215 DevSvcManagerGetObject(struct IDevSvcManager *inst, const char *svcName) DevSvcManagerGetObject() argument 255 DevSvcManagerGetService(struct IDevSvcManager *inst, const char *svcName) DevSvcManagerGetService() argument 264 DevSvcManagerListAllService(struct IDevSvcManager *inst, struct HdfSBuf *reply) DevSvcManagerListAllService() argument 283 DevSvcManagerListServiceByInterfaceDesc( struct IDevSvcManager *inst, const char *interfaceDesc, struct HdfSBuf *reply) DevSvcManagerListServiceByInterfaceDesc() argument 327 DevSvcManagerRegsterServListener(struct IDevSvcManager *inst, struct ServStatListenerHolder *listenerHolder) DevSvcManagerRegsterServListener() argument 342 DevSvcManagerUnregsterServListener(struct IDevSvcManager *inst, struct ServStatListenerHolder *listenerHolder) DevSvcManagerUnregsterServListener() argument 354 DevSvcManagerConstruct(struct DevSvcManager *inst) DevSvcManagerConstruct() argument 415 DevSvcManagerRelease(struct IDevSvcManager *inst) DevSvcManagerRelease() argument [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/ |
H A D | name_mapper.cpp | 171 const spv_parsed_instruction_t& inst) { in ParseInstruction() 172 const auto result_id = inst.result_id; in ParseInstruction() 173 switch (inst.opcode) { in ParseInstruction() 175 SaveName(inst.words[1], reinterpret_cast<const char*>(inst.words + 2)); in ParseInstruction() 183 if (inst.words[2] == SpvDecorationBuiltIn) { in ParseInstruction() 184 assert(inst.num_words > 3); in ParseInstruction() 185 SaveBuiltInName(inst.words[1], inst.words[3]); in ParseInstruction() 197 const auto bit_width = inst in ParseInstruction() 170 ParseInstruction( const spv_parsed_instruction_t& inst) ParseInstruction() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/ |
H A D | name_mapper.cpp | 171 const spv_parsed_instruction_t& inst) { in ParseInstruction() 172 const auto result_id = inst.result_id; in ParseInstruction() 173 switch (inst.opcode) { in ParseInstruction() 175 SaveName(inst.words[1], reinterpret_cast<const char*>(inst.words + 2)); in ParseInstruction() 183 if (inst.words[2] == SpvDecorationBuiltIn) { in ParseInstruction() 184 assert(inst.num_words > 3); in ParseInstruction() 185 SaveBuiltInName(inst.words[1], inst.words[3]); in ParseInstruction() 197 const auto bit_width = inst in ParseInstruction() 170 ParseInstruction( const spv_parsed_instruction_t& inst) ParseInstruction() argument [all...] |
/third_party/spirv-tools/source/ |
H A D | name_mapper.cpp | 171 const spv_parsed_instruction_t& inst) { in ParseInstruction() 172 const auto result_id = inst.result_id; in ParseInstruction() 173 switch (spv::Op(inst.opcode)) { in ParseInstruction() 175 SaveName(inst.words[1], spvDecodeLiteralStringOperand(inst, 1)); in ParseInstruction() 183 if (spv::Decoration(inst.words[2]) == spv::Decoration::BuiltIn) { in ParseInstruction() 184 assert(inst.num_words > 3); in ParseInstruction() 185 SaveBuiltInName(inst.words[1], inst.words[3]); in ParseInstruction() 197 const auto bit_width = inst in ParseInstruction() 170 ParseInstruction( const spv_parsed_instruction_t& inst) ParseInstruction() argument [all...] |
/third_party/spirv-tools/source/val/ |
H A D | validate_memory_semantics.cpp | 26 const Instruction* inst, in ValidateMemorySemantics() 29 const spv::Op opcode = inst->opcode(); in ValidateMemorySemantics() 30 const auto id = inst->GetOperandAs<const uint32_t>(operand_index); in ValidateMemorySemantics() 36 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateMemorySemantics() 44 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateMemorySemantics() 52 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateMemorySemantics() 66 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateMemorySemantics() 76 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateMemorySemantics() 84 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateMemorySemantics() 92 return _.diag(SPV_ERROR_INVALID_DATA, inst) in ValidateMemorySemantics() 25 ValidateMemorySemantics(ValidationState_t& _, const Instruction* inst, uint32_t operand_index, uint32_t memory_scope) ValidateMemorySemantics() argument [all...] |
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
H A D | device_token_proxy.c | 19 static void HdfDevTokenProxyConstruct(struct HdfDevTokenProxy *inst, struct HdfRemoteService *remote) in HdfDevTokenProxyConstruct() argument 21 inst->remote = remote; in HdfDevTokenProxyConstruct() 34 void HdfDevTokenProxyRecycle(struct HdfDevTokenProxy *inst) in HdfDevTokenProxyRecycle() argument 36 if (inst != NULL) { in HdfDevTokenProxyRecycle() 37 if (inst->remote != NULL) { in HdfDevTokenProxyRecycle() 38 HdfRemoteServiceRecycle(inst->remote); in HdfDevTokenProxyRecycle() 39 inst->remote = NULL; in HdfDevTokenProxyRecycle() 41 OsalMemFree((void *)inst->super.servName); in HdfDevTokenProxyRecycle() 42 OsalMemFree((void *)inst->super.deviceName); in HdfDevTokenProxyRecycle() 43 OsalMemFree(inst); in HdfDevTokenProxyRecycle() [all...] |
/third_party/spirv-tools/source/opt/ |
H A D | aggressive_dead_code_elim_pass.cpp | 154 for (auto& inst : context()->module()->ext_inst_imports()) { in AllExtensionsSupported() 155 assert(inst.opcode() == spv::Op::OpExtInstImport && in AllExtensionsSupported() 157 const std::string extension_name = inst.GetInOperand(0).AsString(); in AllExtensionsSupported() 167 bool AggressiveDCEPass::IsTargetDead(Instruction* inst) { in IsTargetDead() argument 168 const uint32_t tId = inst->GetSingleWordInOperand(0); in IsTargetDead() 278 (*bi)->ForEachInst([this, &modified, &merge_block_id](Instruction* inst) { in KillDeadInstructions() 279 if (IsLive(inst)) return; in KillDeadInstructions() 280 if (inst->opcode() == spv::Op::OpLabel) return; in KillDeadInstructions() 283 if (inst->opcode() == spv::Op::OpSelectionMerge || in KillDeadInstructions() 284 inst in KillDeadInstructions() 317 Instruction* inst = (*bi)->terminator(); KillDeadInstructions() local 341 AddDebugScopeToWorkList(const Instruction* inst) AddDebugScopeToWorkList() argument 351 AddDebugInstructionsToWorkList( const Instruction* inst) AddDebugInstructionsToWorkList() argument 362 AddDecorationsToWorkList(const Instruction* inst) AddDecorationsToWorkList() argument 385 MarkLoadedVariablesAsLive(Function* func, Instruction* inst) MarkLoadedVariablesAsLive() argument 393 GetLoadedVariables(Instruction* inst) GetLoadedVariables() argument 404 GetLoadedVariableFromNonFunctionCalls( Instruction* inst) GetLoadedVariableFromNonFunctionCalls() argument 437 GetLoadedVariablesFromFunctionCall( const Instruction* inst) GetLoadedVariablesFromFunctionCall() argument 460 MarkBlockAsLive(Instruction* inst) MarkBlockAsLive() argument 513 AddOperandsToWorkList(const Instruction* inst) AddOperandsToWorkList() argument 1038 GetMergeInstruction(Instruction* inst) GetMergeInstruction() argument [all...] |
/third_party/skia/tools/gpu/vk/ |
H A D | VkTestUtils.cpp | 142 #define GET_PROC_LOCAL(F, inst, device) PFN_vk ## F F = (PFN_vk ## F) getProc("vk" #F, inst, device) 232 VkInstance inst, VkPhysicalDevice physDev, in init_device_extensions_and_layers() 239 GET_PROC_LOCAL(EnumerateDeviceExtensionProperties, inst, VK_NULL_HANDLE); in init_device_extensions_and_layers() 240 GET_PROC_LOCAL(EnumerateDeviceLayerProperties, inst, VK_NULL_HANDLE); in init_device_extensions_and_layers() 330 destroy_instance(getProc, inst, debugCallback, hasDebugExtension); \ 346 static bool destroy_instance(GrVkGetProc getProc, VkInstance inst, in destroy_instance() argument 350 ACQUIRE_VK_PROC_LOCAL(DestroyDebugReportCallbackEXT, inst, VK_NULL_HANDLE); in destroy_instance() 351 grVkDestroyDebugReportCallbackEXT(inst, *debugCallback, nullptr); in destroy_instance() 354 ACQUIRE_VK_PROC_LOCAL(DestroyInstance, inst, VK_NULL_HANDL in destroy_instance() 231 init_device_extensions_and_layers(GrVkGetProc getProc, uint32_t specVersion, VkInstance inst, VkPhysicalDevice physDev, SkTArray<VkExtensionProperties>* deviceExtensions, SkTArray<VkLayerProperties>* deviceLayers) init_device_extensions_and_layers() argument 359 setup_features(GrVkGetProc getProc, VkInstance inst, VkPhysicalDevice physDev, uint32_t physDeviceVersion, GrVkExtensions* extensions, VkPhysicalDeviceFeatures2* features, bool isProtected) setup_features() argument 463 VkInstance inst; CreateVkBackendContext() local [all...] |
/third_party/skia/third_party/externals/spirv-tools/tools/cfg/ |
H A D | bin_to_dot.cpp | 54 spv_result_t HandleInstruction(const spv_parsed_instruction_t& inst); 83 const spv_parsed_instruction_t& inst) { in HandleInstruction() 84 switch (inst.opcode) { in HandleInstruction() 86 current_function_id_ = inst.result_id; in HandleInstruction() 94 current_block_id_ = inst.result_id; in HandleInstruction() 98 FlushBlock({inst.words[1]}); in HandleInstruction() 101 FlushBlock({inst.words[2], inst.words[3]}); in HandleInstruction() 104 std::vector<uint32_t> successors{inst.words[2]}; in HandleInstruction() 105 for (size_t i = 3; i < inst in HandleInstruction() 82 HandleInstruction( const spv_parsed_instruction_t& inst) HandleInstruction() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/cfg/ |
H A D | bin_to_dot.cpp | 54 spv_result_t HandleInstruction(const spv_parsed_instruction_t& inst); 83 const spv_parsed_instruction_t& inst) { in HandleInstruction() 84 switch (inst.opcode) { in HandleInstruction() 86 current_function_id_ = inst.result_id; in HandleInstruction() 94 current_block_id_ = inst.result_id; in HandleInstruction() 98 FlushBlock({inst.words[1]}); in HandleInstruction() 101 FlushBlock({inst.words[2], inst.words[3]}); in HandleInstruction() 104 std::vector<uint32_t> successors{inst.words[2]}; in HandleInstruction() 105 for (size_t i = 3; i < inst in HandleInstruction() 82 HandleInstruction( const spv_parsed_instruction_t& inst) HandleInstruction() argument [all...] |
/third_party/spirv-tools/tools/cfg/ |
H A D | bin_to_dot.cpp | 54 spv_result_t HandleInstruction(const spv_parsed_instruction_t& inst); 83 const spv_parsed_instruction_t& inst) { in HandleInstruction() 84 switch (spv::Op(inst.opcode)) { in HandleInstruction() 86 current_function_id_ = inst.result_id; in HandleInstruction() 94 current_block_id_ = inst.result_id; in HandleInstruction() 98 FlushBlock({inst.words[1]}); in HandleInstruction() 101 FlushBlock({inst.words[2], inst.words[3]}); in HandleInstruction() 104 std::vector<uint32_t> successors{inst.words[2]}; in HandleInstruction() 105 for (size_t i = 3; i < inst in HandleInstruction() 82 HandleInstruction( const spv_parsed_instruction_t& inst) HandleInstruction() argument [all...] |