Home
last modified time | relevance | path

Searched refs:var_id (Results 1 – 25 of 75) sorted by relevance

123

/third_party/spirv-tools/source/opt/
Dspread_volatile_semantics.cpp31 uint32_t var_id, uint32_t built_in) { in HasBuiltinDecoration() argument
33 var_id, SpvDecorationBuiltIn, [built_in](const Instruction& inst) { in HasBuiltinDecoration()
57 analysis::DecorationManager* decoration_manager, uint32_t var_id) { in HasBuiltinForRayTracingVolatileSemantics() argument
59 var_id, SpvDecorationBuiltIn, [](const Instruction& inst) { in HasBuiltinForRayTracingVolatileSemantics()
67 uint32_t var_id) { in HasVolatileDecoration() argument
68 return decoration_manager->HasDecoration(var_id, SpvDecorationVolatile); in HasVolatileDecoration()
116 uint32_t var_id, Instruction* entry_point) { in IsTargetUsedByNonVolatileLoadInEntryPoint() argument
122 var_id, in IsTargetUsedByNonVolatileLoadInEntryPoint()
142 uint32_t var_id = entry_point.GetSingleWordInOperand(operand_index); in HasInterfaceInConflictOfVolatileSemantics() local
143 if (!EntryFunctionsToSpreadVolatileSemanticsForVar(var_id).empty() && in HasInterfaceInConflictOfVolatileSemantics()
[all …]
Dssa_rewrite_pass.cpp92 SSARewriter::PhiCandidate& SSARewriter::CreatePhiCandidate(uint32_t var_id, in CreatePhiCandidate() argument
97 phi_result_id, PhiCandidate(var_id, phi_result_id, bb)); in CreatePhiCandidate()
118 WriteVariable(phi_to_remove.var_id(), bb, repl_id); in ReplacePhiUsersWith()
209 ? GetReachingDef(phi_candidate->var_id(), pred_bb) in AddPhiOperands()
245 uint32_t SSARewriter::GetValueAtBlock(uint32_t var_id, BasicBlock* bb) { in GetValueAtBlock() argument
250 const auto& var_it = current_defs.find(var_id); in GetValueAtBlock()
258 uint32_t SSARewriter::GetReachingDef(uint32_t var_id, BasicBlock* bb) { in GetReachingDef() argument
260 uint32_t val_id = GetValueAtBlock(var_id, bb); in GetReachingDef()
268 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
273 PhiCandidate& phi_candidate = CreatePhiCandidate(var_id, bb); in GetReachingDef()
[all …]
Dspread_volatile_semantics.h54 bool IsTargetForVolatileSemantics(uint32_t var_id,
71 bool IsTargetUsedByNonVolatileLoadInEntryPoint(uint32_t var_id,
81 uint32_t var_id, const std::function<bool(Instruction*)>& handle_load,
96 uint32_t var_id) { in EntryFunctionsToSpreadVolatileSemanticsForVar() argument
97 auto itr = var_ids_to_entry_fn_for_volatile_semantics_.find(var_id); in EntryFunctionsToSpreadVolatileSemanticsForVar()
104 void MarkVolatileSemanticsForVariable(uint32_t var_id,
Dssa_rewrite_pass.h64 uint32_t var_id() const { return var_id_; } in var_id() function
188 void WriteVariable(uint32_t var_id, BasicBlock* bb, uint32_t val_id) { in WriteVariable() argument
189 defs_at_block_[bb][var_id] = val_id; in WriteVariable()
197 uint32_t GetValueAtBlock(uint32_t var_id, BasicBlock* bb);
217 uint32_t GetReachingDef(uint32_t var_id, BasicBlock* bb);
235 PhiCandidate& CreatePhiCandidate(uint32_t var_id, BasicBlock* bb);
Dlocal_single_store_elim_pass.cpp162 uint32_t var_id = var_inst->result_id(); in ProcessVariable() local
164 context()->get_debug_info_mgr()->IsVariableDebugDeclared(var_id)) { in ProcessVariable()
169 modified |= RewriteDebugDeclares(store_inst, var_id); in ProcessVariable()
177 uint32_t var_id) { in RewriteDebugDeclares() argument
180 store_inst, var_id, value_id, store_inst); in RewriteDebugDeclares()
181 modified |= context()->get_debug_info_mgr()->KillDebugDeclares(var_id); in RewriteDebugDeclares()
Daggressive_dead_code_elim_pass.cpp388 for (uint32_t var_id : live_variables) { in MarkLoadedVariablesAsLive() local
389 ProcessLoad(func, var_id); in MarkLoadedVariablesAsLive()
397 uint32_t var_id = GetLoadedVariableFromNonFunctionCalls(inst); in GetLoadedVariables() local
398 if (var_id == 0) { in GetLoadedVariables()
401 return {var_id}; in GetLoadedVariables()
443 uint32_t var_id = GetVariableId(*operand_id); in GetLoadedVariablesFromFunctionCall() local
444 live_variables.push_back(var_id); in GetLoadedVariablesFromFunctionCall()
538 uint32_t var_id = 0; in InitializeWorkList() local
539 (void)GetPtr(&*ii, &var_id); in InitializeWorkList()
540 if (!IsLocalVar(var_id, func)) AddToWorklist(&*ii); in InitializeWorkList()
[all …]
Dinst_bindless_check_pass.cpp46 uint32_t var_id, InstructionBuilder* builder) { in GenDebugReadLength() argument
48 var2desc_set_[var_id] + kDebugInputBindlessOffsetLengths; in GenDebugReadLength()
50 uint32_t binding_idx_id = builder->GetUintConstantId(var2binding_[var_id]); in GenDebugReadLength()
54 uint32_t InstBindlessCheckPass::GenDebugReadInit(uint32_t var_id, in GenDebugReadInit() argument
57 uint32_t binding_idx_id = builder->GetUintConstantId(var2binding_[var_id]); in GenDebugReadInit()
64 builder->GetUintConstantId(var2desc_set_[var_id] + 1); in GenDebugReadInit()
71 builder->GetUintConstantId(var2desc_set_[var_id]); in GenDebugReadInit()
198 ref->var_id = ptr_inst->GetSingleWordInOperand(kSpvAccessChainBaseIdInIdx); in AnalyzeDescriptorReference()
199 Instruction* var_inst = get_def_use_mgr()->GetDef(ref->var_id); in AnalyzeDescriptorReference()
285 ref->var_id = ref->ptr_id; in AnalyzeDescriptorReference()
[all …]
Damd_ext_to_khr.cpp229 uint32_t var_id = in ReplaceSwizzleInvocations() local
231 assert(var_id != 0 && "Could not get SubgroupLocalInvocationId variable."); in ReplaceSwizzleInvocations()
232 Instruction* var_inst = ctx->get_def_use_mgr()->GetDef(var_id); in ReplaceSwizzleInvocations()
237 Instruction* id = ir_builder.AddLoad(uint_type_id, var_id); in ReplaceSwizzleInvocations()
351 uint32_t var_id = in ReplaceSwizzleInvocationsMasked() local
354 assert(var_id != 0 && "Could not get SubgroupLocalInvocationId variable."); in ReplaceSwizzleInvocationsMasked()
355 Instruction* var_inst = ctx->get_def_use_mgr()->GetDef(var_id); in ReplaceSwizzleInvocationsMasked()
360 Instruction* id = ir_builder.AddLoad(uint_type_id, var_id); in ReplaceSwizzleInvocationsMasked()
423 uint32_t var_id = in ReplaceWriteInvocation() local
427 assert(var_id != 0 && "Could not get SubgroupLocalInvocationId variable."); in ReplaceWriteInvocation()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dssa_rewrite_pass.cpp93 SSARewriter::PhiCandidate& SSARewriter::CreatePhiCandidate(uint32_t var_id, in CreatePhiCandidate() argument
98 phi_result_id, PhiCandidate(var_id, phi_result_id, bb)); in CreatePhiCandidate()
119 WriteVariable(phi_to_remove.var_id(), bb, repl_id); in ReplacePhiUsersWith()
210 ? GetReachingDef(phi_candidate->var_id(), pred_bb) in AddPhiOperands()
246 uint32_t SSARewriter::GetValueAtBlock(uint32_t var_id, BasicBlock* bb) { in GetValueAtBlock() argument
251 const auto& var_it = current_defs.find(var_id); in GetValueAtBlock()
259 uint32_t SSARewriter::GetReachingDef(uint32_t var_id, BasicBlock* bb) { in GetReachingDef() argument
261 uint32_t val_id = GetValueAtBlock(var_id, bb); in GetReachingDef()
269 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
274 PhiCandidate& phi_candidate = CreatePhiCandidate(var_id, bb); in GetReachingDef()
[all …]
Dssa_rewrite_pass.h64 uint32_t var_id() const { return var_id_; } in var_id() function
188 void WriteVariable(uint32_t var_id, BasicBlock* bb, uint32_t val_id) { in WriteVariable() argument
189 defs_at_block_[bb][var_id] = val_id; in WriteVariable()
197 uint32_t GetValueAtBlock(uint32_t var_id, BasicBlock* bb);
217 uint32_t GetReachingDef(uint32_t var_id, BasicBlock* bb);
235 PhiCandidate& CreatePhiCandidate(uint32_t var_id, BasicBlock* bb);
Dlocal_single_store_elim_pass.cpp162 uint32_t var_id = var_inst->result_id(); in ProcessVariable() local
164 context()->get_debug_info_mgr()->IsVariableDebugDeclared(var_id)) { in ProcessVariable()
169 modified |= RewriteDebugDeclares(store_inst, var_id); in ProcessVariable()
177 uint32_t var_id) { in RewriteDebugDeclares() argument
182 store_inst, var_id, value_id, store_inst, &invisible_decls); in RewriteDebugDeclares()
201 modified |= context()->get_debug_info_mgr()->KillDebugDeclares(var_id); in RewriteDebugDeclares()
Daggressive_dead_code_elim_pass.cpp388 for (uint32_t var_id : live_variables) { in MarkLoadedVariablesAsLive() local
389 ProcessLoad(func, var_id); in MarkLoadedVariablesAsLive()
397 uint32_t var_id = GetLoadedVariableFromNonFunctionCalls(inst); in GetLoadedVariables() local
398 if (var_id == 0) { in GetLoadedVariables()
401 return {var_id}; in GetLoadedVariables()
443 uint32_t var_id = GetVariableId(*operand_id); in GetLoadedVariablesFromFunctionCall() local
444 live_variables.push_back(var_id); in GetLoadedVariablesFromFunctionCall()
538 uint32_t var_id = 0; in InitializeWorkList() local
539 (void)GetPtr(&*ii, &var_id); in InitializeWorkList()
540 if (!IsLocalVar(var_id, func)) AddToWorklist(&*ii); in InitializeWorkList()
[all …]
Dinst_bindless_check_pass.cpp53 uint32_t var_id, InstructionBuilder* builder) { in GenDebugReadLength() argument
55 var2desc_set_[var_id] + kDebugInputBindlessOffsetLengths; in GenDebugReadLength()
57 uint32_t binding_idx_id = builder->GetUintConstantId(var2binding_[var_id]); in GenDebugReadLength()
61 uint32_t InstBindlessCheckPass::GenDebugReadInit(uint32_t var_id, in GenDebugReadInit() argument
64 uint32_t binding_idx_id = builder->GetUintConstantId(var2binding_[var_id]); in GenDebugReadInit()
71 builder->GetUintConstantId(var2desc_set_[var_id] + 1); in GenDebugReadInit()
78 builder->GetUintConstantId(var2desc_set_[var_id]); in GenDebugReadInit()
205 ref->var_id = ptr_inst->GetSingleWordInOperand(kSpvAccessChainBaseIdInIdx); in AnalyzeDescriptorReference()
206 Instruction* var_inst = get_def_use_mgr()->GetDef(ref->var_id); in AnalyzeDescriptorReference()
292 ref->var_id = ref->ptr_id; in AnalyzeDescriptorReference()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dssa_rewrite_pass.cpp93 SSARewriter::PhiCandidate& SSARewriter::CreatePhiCandidate(uint32_t var_id, in CreatePhiCandidate() argument
98 phi_result_id, PhiCandidate(var_id, phi_result_id, bb)); in CreatePhiCandidate()
119 WriteVariable(phi_to_remove.var_id(), bb, repl_id); in ReplacePhiUsersWith()
210 ? GetReachingDef(phi_candidate->var_id(), pred_bb) in AddPhiOperands()
246 uint32_t SSARewriter::GetValueAtBlock(uint32_t var_id, BasicBlock* bb) { in GetValueAtBlock() argument
251 const auto& var_it = current_defs.find(var_id); in GetValueAtBlock()
259 uint32_t SSARewriter::GetReachingDef(uint32_t var_id, BasicBlock* bb) { in GetReachingDef() argument
261 uint32_t val_id = GetValueAtBlock(var_id, bb); in GetReachingDef()
269 val_id = GetReachingDef(var_id, pass_->cfg()->block(predecessors[0])); in GetReachingDef()
274 PhiCandidate& phi_candidate = CreatePhiCandidate(var_id, bb); in GetReachingDef()
[all …]
Dssa_rewrite_pass.h64 uint32_t var_id() const { return var_id_; } in var_id() function
188 void WriteVariable(uint32_t var_id, BasicBlock* bb, uint32_t val_id) { in WriteVariable() argument
189 defs_at_block_[bb][var_id] = val_id; in WriteVariable()
197 uint32_t GetValueAtBlock(uint32_t var_id, BasicBlock* bb);
217 uint32_t GetReachingDef(uint32_t var_id, BasicBlock* bb);
235 PhiCandidate& CreatePhiCandidate(uint32_t var_id, BasicBlock* bb);
Dlocal_single_store_elim_pass.cpp162 uint32_t var_id = var_inst->result_id(); in ProcessVariable() local
164 context()->get_debug_info_mgr()->IsVariableDebugDeclared(var_id)) { in ProcessVariable()
169 modified |= RewriteDebugDeclares(store_inst, var_id); in ProcessVariable()
177 uint32_t var_id) { in RewriteDebugDeclares() argument
182 store_inst, var_id, value_id, store_inst, &invisible_decls); in RewriteDebugDeclares()
201 modified |= context()->get_debug_info_mgr()->KillDebugDeclares(var_id); in RewriteDebugDeclares()
Daggressive_dead_code_elim_pass.cpp388 for (uint32_t var_id : live_variables) { in MarkLoadedVariablesAsLive() local
389 ProcessLoad(func, var_id); in MarkLoadedVariablesAsLive()
397 uint32_t var_id = GetLoadedVariableFromNonFunctionCalls(inst); in GetLoadedVariables() local
398 if (var_id == 0) { in GetLoadedVariables()
401 return {var_id}; in GetLoadedVariables()
443 uint32_t var_id = GetVariableId(*operand_id); in GetLoadedVariablesFromFunctionCall() local
444 live_variables.push_back(var_id); in GetLoadedVariablesFromFunctionCall()
538 uint32_t var_id = 0; in InitializeWorkList() local
539 (void)GetPtr(&*ii, &var_id); in InitializeWorkList()
540 if (!IsLocalVar(var_id, func)) AddToWorklist(&*ii); in InitializeWorkList()
[all …]
Dinst_bindless_check_pass.cpp53 uint32_t var_id, InstructionBuilder* builder) { in GenDebugReadLength() argument
55 var2desc_set_[var_id] + kDebugInputBindlessOffsetLengths; in GenDebugReadLength()
57 uint32_t binding_idx_id = builder->GetUintConstantId(var2binding_[var_id]); in GenDebugReadLength()
61 uint32_t InstBindlessCheckPass::GenDebugReadInit(uint32_t var_id, in GenDebugReadInit() argument
64 uint32_t binding_idx_id = builder->GetUintConstantId(var2binding_[var_id]); in GenDebugReadInit()
71 builder->GetUintConstantId(var2desc_set_[var_id] + 1); in GenDebugReadInit()
78 builder->GetUintConstantId(var2desc_set_[var_id]); in GenDebugReadInit()
205 ref->var_id = ptr_inst->GetSingleWordInOperand(kSpvAccessChainBaseIdInIdx); in AnalyzeDescriptorReference()
206 Instruction* var_inst = get_def_use_mgr()->GetDef(ref->var_id); in AnalyzeDescriptorReference()
292 ref->var_id = ref->ptr_id; in AnalyzeDescriptorReference()
[all …]
/third_party/skia/third_party/externals/spirv-cross/tests-other/
Dtyped_id_test.cpp8 VariableID var_id = 10; in main() local
13 var_id = 100; in main()
18 ID generic_var_id = var_id; in main()
23 generic_var_id = var_id; in main()
28 var_id = generic_var_id; in main()
34 a = var_id; in main()
42 var_id = VariableID(10); in main()
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_msl.cpp436 uint32_t var_id = offset + 2; in build_implicit_builtins() local
454 set<SPIRVariable>(var_id, type_ptr_id, StorageClassInput); in build_implicit_builtins()
455 set_decoration(var_id, DecorationBuiltIn, BuiltInFragCoord); in build_implicit_builtins()
456 builtin_frag_coord_id = var_id; in build_implicit_builtins()
457 mark_implicit_builtin(StorageClassInput, BuiltInFragCoord, var_id); in build_implicit_builtins()
464 uint32_t var_id = offset + 1; in build_implicit_builtins() local
476 set<SPIRVariable>(var_id, type_ptr_id, StorageClassInput); in build_implicit_builtins()
477 set_decoration(var_id, DecorationBuiltIn, BuiltInLayer); in build_implicit_builtins()
478 builtin_layer_id = var_id; in build_implicit_builtins()
479 mark_implicit_builtin(StorageClassInput, BuiltInLayer, var_id); in build_implicit_builtins()
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_decorations.cpp81 bool isBuiltInVar(uint32_t var_id, ValidationState_t& vstate) { in isBuiltInVar() argument
82 const auto& decorations = vstate.id_decorations(var_id); in isBuiltInVar()
698 spv_result_t CheckBuiltInVariable(uint32_t var_id, ValidationState_t& vstate) { in CheckBuiltInVariable() argument
699 const auto& decorations = vstate.id_decorations(var_id); in CheckBuiltInVariable()
704 return vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(var_id)) in CheckBuiltInVariable()
705 << "A BuiltIn variable (id " << var_id in CheckBuiltInVariable()
927 const auto var_id = inst.id(); in CheckDecorationsOfBuffers() local
941 auto entry_points = vstate.EntryPointReferences(var_id); in CheckDecorationsOfBuffers()
945 return vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(var_id)) in CheckDecorationsOfBuffers()
957 auto entry_points = vstate.EntryPointReferences(var_id); in CheckDecorationsOfBuffers()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_decorations.cpp81 bool isBuiltInVar(uint32_t var_id, ValidationState_t& vstate) { in isBuiltInVar() argument
82 const auto& decorations = vstate.id_decorations(var_id); in isBuiltInVar()
698 spv_result_t CheckBuiltInVariable(uint32_t var_id, ValidationState_t& vstate) { in CheckBuiltInVariable() argument
699 const auto& decorations = vstate.id_decorations(var_id); in CheckBuiltInVariable()
704 return vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(var_id)) in CheckBuiltInVariable()
705 << "A BuiltIn variable (id " << var_id in CheckBuiltInVariable()
927 const auto var_id = inst.id(); in CheckDecorationsOfBuffers() local
941 auto entry_points = vstate.EntryPointReferences(var_id); in CheckDecorationsOfBuffers()
945 return vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(var_id)) in CheckDecorationsOfBuffers()
957 auto entry_points = vstate.EntryPointReferences(var_id); in CheckDecorationsOfBuffers()
[all …]
/third_party/cef/tests/cefclient/browser/
Dosr_accessibility_node_win.cc137 STDMETHODIMP accDoDefaultAction(VARIANT var_id) override;
144 VARIANT var_id) override;
156 STDMETHODIMP get_accDefaultAction(VARIANT var_id,
160 STDMETHODIMP get_accDescription(VARIANT var_id, BSTR* desc) override;
166 STDMETHODIMP get_accKeyboardShortcut(VARIANT var_id,
170 STDMETHODIMP get_accName(VARIANT var_id, BSTR* name) override;
176 STDMETHODIMP get_accRole(VARIANT var_id, VARIANT* role) override;
179 STDMETHODIMP get_accState(VARIANT var_id, VARIANT* state) override;
182 STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* help) override;
187 STDMETHODIMP get_accValue(VARIANT var_id, BSTR* value) override;
[all …]
/third_party/spirv-tools/source/val/
Dvalidate_decorations.cpp83 bool isBuiltInVar(uint32_t var_id, ValidationState_t& vstate) { in isBuiltInVar() argument
84 const auto& decorations = vstate.id_decorations(var_id); in isBuiltInVar()
737 spv_result_t CheckBuiltInVariable(uint32_t var_id, ValidationState_t& vstate) { in CheckBuiltInVariable() argument
738 const auto& decorations = vstate.id_decorations(var_id); in CheckBuiltInVariable()
743 return vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(var_id)) in CheckBuiltInVariable()
744 << vstate.VkErrorID(4915) << "A BuiltIn variable (id " << var_id in CheckBuiltInVariable()
1029 const auto var_id = inst.id(); in CheckDecorationsOfBuffers() local
1043 auto entry_points = vstate.EntryPointReferences(var_id); in CheckDecorationsOfBuffers()
1047 return vstate.diag(SPV_ERROR_INVALID_ID, vstate.FindDef(var_id)) in CheckDecorationsOfBuffers()
1059 auto entry_points = vstate.EntryPointReferences(var_id); in CheckDecorationsOfBuffers()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dnir_to_spirv.c168 emit_access_decorations(struct ntv_context *ctx, nir_variable *var, SpvId var_id) in emit_access_decorations() argument
176 spirv_builder_emit_decoration(&ctx->builder, var_id, SpvDecorationRestrict); in emit_access_decorations()
182 spirv_builder_emit_decoration(&ctx->builder, var_id, SpvDecorationNonReadable); in emit_access_decorations()
185 spirv_builder_emit_decoration(&ctx->builder, var_id, SpvDecorationNonWritable); in emit_access_decorations()
188 spirv_builder_emit_decoration(&ctx->builder, var_id, SpvDecorationNonUniform); in emit_access_decorations()
212 spirv_builder_emit_decoration(&ctx->builder, var_id, SpvDecorationAliased); in emit_access_decorations()
478 spirv_builder_emit_builtin(&ctx->builder, var_id, SpvBuiltIn##BUILTIN); \
491 SpvId var_id = spirv_builder_emit_var(&ctx->builder, pointer_type, sc); in input_var_init() local
494 spirv_builder_emit_name(&ctx->builder, var_id, var->name); in input_var_init()
497 ctx->push_const_var = var_id; in input_var_init()
[all …]

123