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

Method GetUIntConstId

source/opt/constants.cpp:532–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532uint32_t ConstantManager::GetUIntConstId(uint32_t val) {
533 Type* uint_type = context()->get_type_mgr()->GetUIntType();
534 const Constant* c = GetConstant(uint_type, {val});
535 return GetDefiningInstruction(c)->result_id();
536}
537
538uint32_t ConstantManager::GetNullConstId(const Type* type) {
539 const Constant* c = GetConstant(type, {});

Callers 6

GetArrayTypeMethod · 0.80
ChangeArrayLengthMethod · 0.80
CreateDebugInlinedAtMethod · 0.80

Calls 3

GetUIntTypeMethod · 0.80
get_type_mgrMethod · 0.80
result_idMethod · 0.45

Tested by

no test coverage detected