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

Method SetMessageConsumer

source/opt/optimizer.cpp:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81Optimizer::~Optimizer() {}
82
83void Optimizer::SetMessageConsumer(MessageConsumer c) {
84 // All passes' message consumer needs to be updated.
85 for (uint32_t i = 0; i < impl_->pass_manager.NumPasses(); ++i) {
86 impl_->pass_manager.GetPass(i)->SetMessageConsumer(c);
87 }
88 impl_->pass_manager.SetMessageConsumer(std::move(c));
89}
90
91const MessageConsumer& Optimizer::consumer() const {
92 return impl_->pass_manager.consumer();

Callers 3

optimizer.cppFile · 0.45
RunMethod · 0.45

Calls 2

NumPassesMethod · 0.80
GetPassMethod · 0.80

Tested by

no test coverage detected