MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / GetStorageClass

Function GetStorageClass

source/opt/interface_var_sroa.cpp:130–133  ·  view source on GitHub ↗

Returns the storage class of the instruction |var|.

Source from the content-addressed store, hash-verified

128
129// Returns the storage class of the instruction |var|.
130spv::StorageClass GetStorageClass(Instruction* var) {
131 return static_cast<spv::StorageClass>(
132 var->GetSingleWordInOperand(kOpVariableStorageClassInOperandIndex));
133}
134
135} // namespace
136

Calls 1

Tested by

no test coverage detected