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

Method GetNullConstId

source/opt/constants.cpp:538–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538uint32_t ConstantManager::GetNullConstId(const Type* type) {
539 const Constant* c = GetConstant(type, {});
540 return GetDefiningInstruction(c)->result_id();
541}
542
543const Constant* ConstantManager::GenerateIntegerConstant(
544 const analysis::Integer* integer_type, uint64_t result) {

Callers 3

FoldRedundantSubFunction · 0.80
RedundantSUModFunction · 0.80
RedundantAndShiftFunction · 0.80

Calls 1

result_idMethod · 0.45

Tested by

no test coverage detected