Debian Codegraph @

src/3rdparty/SPIRV-Cross/spirv_cross_parsed_ir.hpp

raw symbols SCIP
1 /*
2 * Copyright 2018-2021 Arm Limited
3 * SPDX-License-Identifier: Apache-2.0 OR MIT
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18 /*
19 * At your option, you may choose to accept this material under either:
20 * 1. The Apache License, Version 2.0, found at <http://www.apache.org/licenses/LICENSE-2.0>, or
21 * 2. The MIT License, found at <http://opensource.org/licenses/MIT>.
22 */
23
24 #ifndef SPIRV_CROSS_PARSED_IR_HPP
25 #define SPIRV_CROSS_PARSED_IR_HPPcxx . . $ `src/3rdparty/SPIRV-Cross/spirv_cross_parsed_ir.hpp:25:9`!
26
27 #include "spirv_common.hpp"cxx . . $ `<file>/src/3rdparty/SPIRV-Cross/spirv_common.hpp`/
28 #include <stdint.h>
29 #include <unordered_map>
30
31 namespace SPIRV_CROSS_NAMESPACEcxx . . $ `src/3rdparty/SPIRV-Cross/spirv_common.hpp:49:9`!
32 {
33
34 // This data structure holds all information needed to perform cross-compilation and reflection.
35 // It is the output of the Parser, but any implementation could create this structure.
36 // It is intentionally very "open" and struct-like with some helper functions to deal with decorations.
37 // Parser is the reference implementation of how this data structure should be filled in.
38
39 class ParsedIRcxx . . $ spirv_cross/ParsedIR#
40 {
41 private:
42 // This must be destroyed after the "ids" vector.
43 stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<ObjectPoolGroupcxx . . $ spirv_cross/ObjectPoolGroup#> pool_groupcxx . . $ spirv_cross/ParsedIR#pool_group.;
44
45 public:
46 ParsedIRcxx . . $ spirv_cross/ParsedIR#ParsedIR(49f6e7a06ebc5aa8).();
47
48 // Due to custom allocations from object pools, we cannot use a default copy constructor.
49 ParsedIRcxx . . $ spirv_cross/ParsedIR#ParsedIR(1579872cf83f75dc).(const ParsedIRcxx . . $ spirv_cross/ParsedIR# &other);
50 ParsedIRcxx . . $ spirv_cross/ParsedIR# &operatorcxx . . $ spirv_cross/ParsedIR#`operator=`(6b62ef7401a94c75).=(const ParsedIRcxx . . $ spirv_cross/ParsedIR# &other);
51
52 // Moves are unproblematic, but we need to implement it anyways, since MSVC 2013 does not understand
53 // how to default-implement these.
54 ParsedIRcxx . . $ spirv_cross/ParsedIR#ParsedIR(44874453accd1799).(ParsedIRcxx . . $ spirv_cross/ParsedIR# &&other) SPIRV_CROSS_NOEXCEPTcxx . . $ `src/3rdparty/SPIRV-Cross/spirv_cross_error_handling.hpp:85:9`!;
55 ParsedIRcxx . . $ spirv_cross/ParsedIR# &operatorcxx . . $ spirv_cross/ParsedIR#`operator=`(964b29f4e91d6965).=(ParsedIRcxx . . $ spirv_cross/ParsedIR# &&other) SPIRV_CROSS_NOEXCEPTcxx . . $ `src/3rdparty/SPIRV-Cross/spirv_cross_error_handling.hpp:85:9`!;
56
57 // Resizes ids, meta and block_meta.
58 void set_id_boundscxx . . $ spirv_cross/ParsedIR#set_id_bounds(cb2f890c2fdad230).(uint32_tcxx . . $ uint32_t# bounds);
59
60 // The raw SPIR-V, instructions and opcodes refer to this by offset + count.
61 stdcxx . . $ std/::vectorcxx . . $ std/vector#<uint32_tcxx . . $ uint32_t#> spirvcxx . . $ spirv_cross/ParsedIR#spirv.;
62
63 // Holds various data structures which inherit from IVariant.
64 SmallVectorcxx . . $ spirv_cross/SmallVector#<Variantcxx . . $ spirv_cross/Variant#> idscxx . . $ spirv_cross/ParsedIR#ids.;
65
66 // Various meta data for IDs, decorations, names, etc.
67 stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<IDcxx . . $ spirv_cross/ID#, Metacxx . . $ spirv_cross/Meta#> metacxx . . $ spirv_cross/ParsedIR#meta.;
68
69 // Holds all IDs which have a certain type.
70 // This is needed so we can iterate through a specific kind of resource quickly,
71 // and in-order of module declaration.
72 SmallVectorcxx . . $ spirv_cross/SmallVector#<IDcxx . . $ spirv_cross/ID#> ids_for_typecxx . . $ spirv_cross/ParsedIR#ids_for_type.[TypeCountcxx . . $ spirv_cross/TypeCount.];
73
74 // Special purpose lists which contain a union of types.
75 // This is needed so we can declare specialization constants and structs in an interleaved fashion,
76 // among other things.
77 // Constants can be undef or of struct type, and struct array sizes can use specialization constants.
78 SmallVectorcxx . . $ spirv_cross/SmallVector#<IDcxx . . $ spirv_cross/ID#> ids_for_constant_undef_or_typecxx . . $ spirv_cross/ParsedIR#ids_for_constant_undef_or_type.;
79 SmallVectorcxx . . $ spirv_cross/SmallVector#<IDcxx . . $ spirv_cross/ID#> ids_for_constant_or_variablecxx . . $ spirv_cross/ParsedIR#ids_for_constant_or_variable.;
80
81 // We need to keep track of the width the Ops that contains a type for the
82 // OpSwitch instruction, since this one doesn't contains the type in the
83 // instruction itself. And in some case we need to cast the condition to
84 // wider types. We only need the width to do the branch fixup since the
85 // type check itself can be done at runtime
86 stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<IDcxx . . $ spirv_cross/ID#, uint32_tcxx . . $ uint32_t#> load_type_widthcxx . . $ spirv_cross/ParsedIR#load_type_width.;
87
88 // Declared capabilities and extensions in the SPIR-V module.
89 // Not really used except for reflection at the moment.
90 SmallVectorcxx . . $ spirv_cross/SmallVector#<spvcxx . . $ spv/::Capabilitycxx . . $ spv/Capability#> declared_capabilitiescxx . . $ spirv_cross/ParsedIR#declared_capabilities.;
91 SmallVectorcxx . . $ spirv_cross/SmallVector#<stdcxx . . $ std/::stringcxx . . $ std/string#> declared_extensionscxx . . $ spirv_cross/ParsedIR#declared_extensions.;
92
93 // Meta data about blocks. The cross-compiler needs to query if a block is either of these types.
94 // It is a bitset as there can be more than one tag per block.
95 enum BlockMetaFlagBitscxx . . $ spirv_cross/ParsedIR#BlockMetaFlagBits#
96 {
97 BLOCK_META_LOOP_HEADER_BITcxx . . $ spirv_cross/ParsedIR#BLOCK_META_LOOP_HEADER_BIT. = 1 << 0,
98 BLOCK_META_CONTINUE_BITcxx . . $ spirv_cross/ParsedIR#BLOCK_META_CONTINUE_BIT. = 1 << 1,
99 BLOCK_META_LOOP_MERGE_BITcxx . . $ spirv_cross/ParsedIR#BLOCK_META_LOOP_MERGE_BIT. = 1 << 2,
100 BLOCK_META_SELECTION_MERGE_BITcxx . . $ spirv_cross/ParsedIR#BLOCK_META_SELECTION_MERGE_BIT. = 1 << 3,
101 BLOCK_META_MULTISELECT_MERGE_BITcxx . . $ spirv_cross/ParsedIR#BLOCK_META_MULTISELECT_MERGE_BIT. = 1 << 4
102 };
103 using BlockMetaFlagscxx . . $ spirv_cross/ParsedIR#BlockMetaFlags# = uint8_tcxx . . $ uint8_t#;
104 SmallVectorcxx . . $ spirv_cross/SmallVector#<BlockMetaFlagscxx . . $ spirv_cross/ParsedIR#BlockMetaFlags#> block_metacxx . . $ spirv_cross/ParsedIR#block_meta.;
105 stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<BlockIDcxx . . $ spirv_cross/BlockID#, BlockIDcxx . . $ spirv_cross/BlockID#> continue_block_to_loop_headercxx . . $ spirv_cross/ParsedIR#continue_block_to_loop_header.;
106
107 // Normally, we'd stick SPIREntryPoint in ids array, but it conflicts with SPIRFunction.
108 // Entry points can therefore be seen as some sort of meta structure.
109 stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<FunctionIDcxx . . $ spirv_cross/FunctionID#, SPIREntryPointcxx . . $ spirv_cross/SPIREntryPoint#> entry_pointscxx . . $ spirv_cross/ParsedIR#entry_points.;
110 FunctionIDcxx . . $ spirv_cross/FunctionID# default_entry_pointcxx . . $ spirv_cross/ParsedIR#default_entry_point. = 0cxx . . $ spirv_cross/TypedID#TypedID(cb2f890c2fdad230).;
111
112 struct Sourcecxx . . $ spirv_cross/ParsedIR#Source#
113 {
114 uint32_tcxx . . $ uint32_t# versioncxx . . $ spirv_cross/ParsedIR#Source#version. = 0;
115 bool escxx . . $ spirv_cross/ParsedIR#Source#es. = false;
116 bool knowncxx . . $ spirv_cross/ParsedIR#Source#known. = false;
117 bool hlslcxx . . $ spirv_cross/ParsedIR#Source#hlsl. = false;
118
119 Sourcecxx . . $ spirv_cross/ParsedIR#Source#Source(49f6e7a06ebc5aa8).() = default;
120 };
121
122 Sourcecxx . . $ spirv_cross/ParsedIR#Source# sourcecxx . . $ spirv_cross/ParsedIR#source.;
123
124 spvcxx . . $ spv/::AddressingModelcxx . . $ spv/AddressingModel# addressing_modelcxx . . $ spirv_cross/ParsedIR#addressing_model. = spvcxx . . $ spv/::AddressingModelMaxcxx . . $ spv/AddressingModelMax.;
125 spvcxx . . $ spv/::MemoryModelcxx . . $ spv/MemoryModel# memory_modelcxx . . $ spirv_cross/ParsedIR#memory_model. = spvcxx . . $ spv/::MemoryModelMaxcxx . . $ spv/MemoryModelMax.;
126
127 // Decoration handling methods.
128 // Can be useful for simple "raw" reflection.
129 // However, most members are here because the Parser needs most of these,
130 // and might as well just have the whole suite of decoration/name handling in one place.
131 void set_namecxx . . $ spirv_cross/ParsedIR#set_name(37ab5da84a1f8f89).(IDcxx . . $ spirv_cross/ID# id, const stdcxx . . $ std/::stringcxx . . $ std/string# &name);
132 const stdcxx . . $ std/::stringcxx . . $ std/string# &get_namecxx . . $ spirv_cross/ParsedIR#get_name(20d8e9d2598b82e5).(IDcxx . . $ spirv_cross/ID# id) const;
133 void set_decorationcxx . . $ spirv_cross/ParsedIR#set_decoration(317c70fa6c3c727b).(IDcxx . . $ spirv_cross/ID# id, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration, uint32_tcxx . . $ uint32_t# argument = 0);
134 void set_decoration_stringcxx . . $ spirv_cross/ParsedIR#set_decoration_string(6c0ed8d74a5559f).(IDcxx . . $ spirv_cross/ID# id, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration, const stdcxx . . $ std/::stringcxx . . $ std/string# &argument);
135 bool has_decorationcxx . . $ spirv_cross/ParsedIR#has_decoration(7182e50fd8b6b4dd).(IDcxx . . $ spirv_cross/ID# id, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration) const;
136 uint32_tcxx . . $ uint32_t# get_decorationcxx . . $ spirv_cross/ParsedIR#get_decoration(bfe756b898219ee0).(IDcxx . . $ spirv_cross/ID# id, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration) const;
137 const stdcxx . . $ std/::stringcxx . . $ std/string# &get_decoration_stringcxx . . $ spirv_cross/ParsedIR#get_decoration_string(4bca507d835d7c1c).(IDcxx . . $ spirv_cross/ID# id, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration) const;
138 const Bitsetcxx . . $ spirv_cross/Bitset# &get_decoration_bitsetcxx . . $ spirv_cross/ParsedIR#get_decoration_bitset(3c20a5ca96e42238).(IDcxx . . $ spirv_cross/ID# id) const;
139 void unset_decorationcxx . . $ spirv_cross/ParsedIR#unset_decoration(b31241ceb6e20a61).(IDcxx . . $ spirv_cross/ID# id, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration);
140
141 // Decoration handling methods (for members of a struct).
142 void set_member_namecxx . . $ spirv_cross/ParsedIR#set_member_name(b40ecfb0b865c034).(TypeIDcxx . . $ spirv_cross/TypeID# id, uint32_tcxx . . $ uint32_t# index, const stdcxx . . $ std/::stringcxx . . $ std/string# &name);
143 const stdcxx . . $ std/::stringcxx . . $ std/string# &get_member_namecxx . . $ spirv_cross/ParsedIR#get_member_name(46b4eef53f5b3a64).(TypeIDcxx . . $ spirv_cross/TypeID# id, uint32_tcxx . . $ uint32_t# index) const;
144 void set_member_decorationcxx . . $ spirv_cross/ParsedIR#set_member_decoration(fd13ca22f8ee0c88).(TypeIDcxx . . $ spirv_cross/TypeID# id, uint32_tcxx . . $ uint32_t# index, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration, uint32_tcxx . . $ uint32_t# argument = 0);
145 void set_member_decoration_stringcxx . . $ spirv_cross/ParsedIR#set_member_decoration_string(a1da9927be0fce1b).(TypeIDcxx . . $ spirv_cross/TypeID# id, uint32_tcxx . . $ uint32_t# index, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration,
146 const stdcxx . . $ std/::stringcxx . . $ std/string# &argument);
147 uint32_tcxx . . $ uint32_t# get_member_decorationcxx . . $ spirv_cross/ParsedIR#get_member_decoration(231b9700399a134f).(TypeIDcxx . . $ spirv_cross/TypeID# id, uint32_tcxx . . $ uint32_t# index, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration) const;
148 const stdcxx . . $ std/::stringcxx . . $ std/string# &get_member_decoration_stringcxx . . $ spirv_cross/ParsedIR#get_member_decoration_string(5ca83f36470b8cd3).(TypeIDcxx . . $ spirv_cross/TypeID# id, uint32_tcxx . . $ uint32_t# index, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration) const;
149 bool has_member_decorationcxx . . $ spirv_cross/ParsedIR#has_member_decoration(a01457d1e83a230f).(TypeIDcxx . . $ spirv_cross/TypeID# id, uint32_tcxx . . $ uint32_t# index, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration) const;
150 const Bitsetcxx . . $ spirv_cross/Bitset# &get_member_decoration_bitsetcxx . . $ spirv_cross/ParsedIR#get_member_decoration_bitset(ca46362664442a1).(TypeIDcxx . . $ spirv_cross/TypeID# id, uint32_tcxx . . $ uint32_t# index) const;
151 void unset_member_decorationcxx . . $ spirv_cross/ParsedIR#unset_member_decoration(f1ce6ea4ae962cde).(TypeIDcxx . . $ spirv_cross/TypeID# id, uint32_tcxx . . $ uint32_t# index, spvcxx . . $ spv/::Decorationcxx . . $ spv/Decoration# decoration);
152
153 void mark_used_as_array_lengthcxx . . $ spirv_cross/ParsedIR#mark_used_as_array_length(89f11c1a0125b564).(IDcxx . . $ spirv_cross/ID# id);
154 uint32_tcxx . . $ uint32_t# increase_bound_bycxx . . $ spirv_cross/ParsedIR#increase_bound_by(2141b656ce2cc063).(uint32_tcxx . . $ uint32_t# count);
155 Bitsetcxx . . $ spirv_cross/Bitset# get_buffer_block_flagscxx . . $ spirv_cross/ParsedIR#get_buffer_block_flags(e5ab91caf67456c3).(const SPIRVariablecxx . . $ spirv_cross/SPIRVariable# &var) const;
156 Bitsetcxx . . $ spirv_cross/Bitset# get_buffer_block_type_flagscxx . . $ spirv_cross/ParsedIR#get_buffer_block_type_flags(e34f1f11adc1378c).(const SPIRTypecxx . . $ spirv_cross/SPIRType# &type) const;
157
158 void add_typed_idcxx . . $ spirv_cross/ParsedIR#add_typed_id(5212306ee987f11c).(Typescxx . . $ spirv_cross/Types# type, IDcxx . . $ spirv_cross/ID# id);
159 void remove_typed_idcxx . . $ spirv_cross/ParsedIR#remove_typed_id(5212306ee987f11c).(Typescxx . . $ spirv_cross/Types# type, IDcxx . . $ spirv_cross/ID# id);
160
161 class LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock#
162 {
163 public:
164 explicit LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock#LoopLock(218b13e5e7cbf689).(uint32_tcxx . . $ uint32_t# *counter);
165 LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock#LoopLock(b7ef2f727a5b7e6e).(const LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock# &) = delete;
166 void operatorcxx . . $ spirv_cross/ParsedIR#LoopLock#`operator=`(b7ef2f727a5b7e6e).=(const LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock# &) = delete;
167 LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock#LoopLock(533def1f95660897).(LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock# &&other) SPIRV_CROSS_NOEXCEPTcxx . . $ `src/3rdparty/SPIRV-Cross/spirv_cross_error_handling.hpp:85:9`!;
168 LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock# &operatorcxx . . $ spirv_cross/ParsedIR#LoopLock#`operator=`(e9050b033fc7e215).=(LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock# &&other) SPIRV_CROSS_NOEXCEPTcxx . . $ `src/3rdparty/SPIRV-Cross/spirv_cross_error_handling.hpp:85:9`!;
169 ~cxx . . $ spirv_cross/ParsedIR#LoopLock#`~LoopLock`(ced63f7c635d850d).LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock#();
170
171 private:
172 uint32_tcxx . . $ uint32_t# *lockcxx . . $ spirv_cross/ParsedIR#LoopLock#lock. = nullptr;
173 };
174
175 // This must be held while iterating over a type ID array.
176 // It is undefined if someone calls set<>() while we're iterating over a data structure, so we must
177 // make sure that this case is avoided.
178
179 // If we have a hard lock, it is an error to call set<>(), and an exception is thrown.
180 // If we have a soft lock, we silently ignore any additions to the typed arrays.
181 // This should only be used for physical ID remapping where we need to create an ID, but we will never
182 // care about iterating over them.
183 LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock# create_loop_hard_lockcxx . . $ spirv_cross/ParsedIR#create_loop_hard_lock(152b91b8445afb59).() const;
184 LoopLockcxx . . $ spirv_cross/ParsedIR#LoopLock# create_loop_soft_lockcxx . . $ spirv_cross/ParsedIR#create_loop_soft_lock(152b91b8445afb59).() const;
185
186 template <typename T, typename Op>
187 void for_each_typed_idcxx . . $ spirv_cross/ParsedIR#for_each_typed_id(3496de05b827211c).(const Op &op)
188 {
189 auto loop_lock = create_loop_hard_lockcxx . . $ spirv_cross/ParsedIR#create_loop_hard_lock(152b91b8445afb59).();
190 for (auto &id : ids_for_typecxx . . $ spirv_cross/ParsedIR#ids_for_type.[T::type])
191 {
192 if (idscxx . . $ spirv_cross/ParsedIR#ids.[id].get_type() == static_cast<Typescxx . . $ spirv_cross/Types#>(T::type))
193 op(id, getcxx . . $ spirv_cross/ParsedIR#get(cbb7c2c208bf2972).<T>(id));
194 }
195 }
196
197 template <typename T, typename Op>
198 void for_each_typed_idcxx . . $ spirv_cross/ParsedIR#for_each_typed_id(b7af64067baf31a3).(const Op &op) const
199 {
200 auto loop_lock = create_loop_hard_lockcxx . . $ spirv_cross/ParsedIR#create_loop_hard_lock(152b91b8445afb59).();
201 for (auto &id : ids_for_typecxx . . $ spirv_cross/ParsedIR#ids_for_type.[T::type])
202 {
203 if (idscxx . . $ spirv_cross/ParsedIR#ids.[id].get_type() == static_cast<Typescxx . . $ spirv_cross/Types#>(T::type))
204 op(id, getcxx . . $ spirv_cross/ParsedIR#get(cbb7c2c208bf2972).<T>(id));
205 }
206 }
207
208 template <typename T>
209 void reset_all_of_typecxx . . $ spirv_cross/ParsedIR#reset_all_of_type(49f6e7a06ebc5aa8).()
210 {
211 reset_all_of_typecxx . . $ spirv_cross/ParsedIR#reset_all_of_type(3ab18f4b61c85a5f).(static_cast<Typescxx . . $ spirv_cross/Types#>(T::type));
212 }
213
214 void reset_all_of_typecxx . . $ spirv_cross/ParsedIR#reset_all_of_type(3ab18f4b61c85a5f).(Typescxx . . $ spirv_cross/Types# type);
215
216 Metacxx . . $ spirv_cross/Meta# *find_metacxx . . $ spirv_cross/ParsedIR#find_meta(72803858e175fb1b).(IDcxx . . $ spirv_cross/ID# id);
217 const Metacxx . . $ spirv_cross/Meta# *find_metacxx . . $ spirv_cross/ParsedIR#find_meta(60f603985574d0f).(IDcxx . . $ spirv_cross/ID# id) const;
218
219 const stdcxx . . $ std/::stringcxx . . $ std/string# &get_empty_stringcxx . . $ spirv_cross/ParsedIR#get_empty_string(f4fff0029955a25f).() const
220 {
221 return empty_stringcxx . . $ spirv_cross/ParsedIR#empty_string.;
222 }
223
224 void make_constant_nullcxx . . $ spirv_cross/ParsedIR#make_constant_null(fe16132ef69503ce).(uint32_tcxx . . $ uint32_t# id, uint32_tcxx . . $ uint32_t# type, bool add_to_typed_id_set);
225
226 void fixup_reserved_namescxx . . $ spirv_cross/ParsedIR#fixup_reserved_names(49f6e7a06ebc5aa8).();
227
228 static void sanitize_underscorescxx . . $ spirv_cross/ParsedIR#sanitize_underscores(80d0450aec2fd74).(stdcxx . . $ std/::stringcxx . . $ std/string# &str);
229 static void sanitize_identifiercxx . . $ spirv_cross/ParsedIR#sanitize_identifier(551c9cc935ebe7cd).(stdcxx . . $ std/::stringcxx . . $ std/string# &str, bool member, bool allow_reserved_prefixes);
230 static bool is_globally_reserved_identifiercxx . . $ spirv_cross/ParsedIR#is_globally_reserved_identifier(52409a16a0c76555).(stdcxx . . $ std/::stringcxx . . $ std/string# &str, bool allow_reserved_prefixes);
231
232 uint32_tcxx . . $ uint32_t# get_spirv_versioncxx . . $ spirv_cross/ParsedIR#get_spirv_version(ddd8539a2fcdd4ce).() const;
233
234 private:
235 template <typename T>
236 T &getcxx . . $ spirv_cross/ParsedIR#get(cbb7c2c208bf2972).(uint32_tcxx . . $ uint32_t# id)
237 {
238 return variant_getcxx . . $ spirv_cross/variant_get(43b3083ca13465ae).<T>(idscxx . . $ spirv_cross/ParsedIR#ids.[cxx . . $ spirv_cross/VectorView#`operator[]`(b18cc97d22f46aed).id]);
239 }
240
241 template <typename T>
242 const T &getcxx . . $ spirv_cross/ParsedIR#get(324713ecd9036b86).(uint32_tcxx . . $ uint32_t# id) const
243 {
244 return variant_getcxx . . $ spirv_cross/variant_get(43b3083ca13465ae).<T>(idscxx . . $ spirv_cross/ParsedIR#ids.[cxx . . $ spirv_cross/VectorView#`operator[]`(c65000e556194d6f).id]);
245 }
246
247 mutable uint32_tcxx . . $ uint32_t# loop_iteration_depth_hardcxx . . $ spirv_cross/ParsedIR#loop_iteration_depth_hard. = 0;
248 mutable uint32_tcxx . . $ uint32_t# loop_iteration_depth_softcxx . . $ spirv_cross/ParsedIR#loop_iteration_depth_soft. = 0;
249 stdcxx . . $ std/::stringcxx . . $ std/string# empty_stringcxx . . $ spirv_cross/ParsedIR#empty_string.;
250 Bitsetcxx . . $ spirv_cross/Bitset# cleared_bitsetcxx . . $ spirv_cross/ParsedIR#cleared_bitset.;
251
252 stdcxx . . $ std/::unordered_setcxx . . $ std/unordered_set#<uint32_tcxx . . $ uint32_t#> meta_needing_name_fixupcxx . . $ spirv_cross/ParsedIR#meta_needing_name_fixup.;
253 };
254 } // namespace SPIRV_CROSS_NAMESPACE
255
256 #endif