Commit 0a9d6a09 authored by Paul's avatar Paul
Browse files

Formatting

parent e1b6ce59
...@@ -311,21 +311,24 @@ struct miopen_write_literals ...@@ -311,21 +311,24 @@ struct miopen_write_literals
{ {
std::string name() const { return "miopen::write_literals"; } std::string name() const { return "miopen::write_literals"; }
void apply(program& p) const void apply(program& p) const
{ {
for(auto ins:iterator_for(p)) for(auto ins : iterator_for(p))
{ {
if(ins->op.name() == "@literal") if(ins->op.name() == "@literal")
{ {
literal l = ins->lit; literal l = ins->lit;
auto pre = p.add_literal(l); auto pre = p.add_literal(l);
p.replace_instruction(ins, hip_write{}, pre); p.replace_instruction(ins, hip_write{}, pre);
} }
} }
} }
}; };
std::vector<pass> miopen_target::get_passes(context&) const { return {miopen_pass{}, miopen_write_literals{}}; } std::vector<pass> miopen_target::get_passes(context&) const
{
return {miopen_pass{}, miopen_write_literals{}};
}
std::string miopen_target::name() const { return "miopen"; } std::string miopen_target::name() const { return "miopen"; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment