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

Function spvOptimizerSetMessageConsumer

source/opt/optimizer.cpp:1233–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1231}
1232
1233SPIRV_TOOLS_EXPORT void spvOptimizerSetMessageConsumer(
1234 spv_optimizer_t* optimizer, spv_message_consumer consumer) {
1235 reinterpret_cast<spvtools::Optimizer*>(optimizer)->
1236 SetMessageConsumer(
1237 [consumer](spv_message_level_t level, const char* source,
1238 const spv_position_t& position, const char* message) {
1239 return consumer(level, source, &position, message);
1240 });
1241}
1242
1243SPIRV_TOOLS_EXPORT void spvOptimizerRegisterLegalizationPasses(
1244 spv_optimizer_t* optimizer) {

Callers 1

TESTFunction · 0.85

Calls 1

SetMessageConsumerMethod · 0.45

Tested by 1

TESTFunction · 0.68