MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / run_pass

Method run_pass

src/pass_manager.cpp:138–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 }
137
138 virtual void run_pass(const pass& p) override
139 {
140 if(is_pass_disabled(p.name()))
141 return;
142 trace("Pass: ", p.name());
143 assert(mod);
144 assert(mod->validate() == mod->end());
145 try_and_dump_on_error(p, [&] {
146 if(enabled(MIGRAPHX_TIME_PASSES{}))
147 {
148 using milliseconds = std::chrono::duration<double, std::milli>;
149 auto ms = time<milliseconds>([&] { p.apply(*this); });
150 std::cout << p.name() << ": " << ms << "ms\n";
151 }
152 else
153 {
154 p.apply(*this);
155 }
156 });
157 trace(*mod);
158 validate_pass(*mod, p, *t);
159 }
160
161 static void sanitize(std::string& s)
162 {

Callers 14

applyMethod · 0.45
applyMethod · 0.45
rewrite_broadcastsFunction · 0.45
applyMethod · 0.45
run_passesFunction · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45

Calls 8

is_pass_disabledFunction · 0.85
traceFunction · 0.85
validate_passFunction · 0.85
enabledFunction · 0.70
nameMethod · 0.45
validateMethod · 0.45
endMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected