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

Function UpdateModuleIdBound

source/fuzz/fuzzer_util.cpp:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void UpdateModuleIdBound(opt::IRContext* context, uint32_t id) {
102 // TODO(https://github.com/KhronosGroup/SPIRV-Tools/issues/2541) consider the
103 // case where the maximum id bound is reached.
104 context->module()->SetIdBound(
105 std::max(context->module()->id_bound(), id + 1));
106}
107
108opt::BasicBlock* MaybeFindBlock(opt::IRContext* context,
109 uint32_t maybe_block_id) {

Callers 15

ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyImplMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85

Calls 3

SetIdBoundMethod · 0.80
id_boundMethod · 0.80
moduleMethod · 0.45

Tested by 2

ApplyImplMethod · 0.68
TESTFunction · 0.68