14using namespace std::string_literals;
25 auto ofs = std::ofstream(
name +
".ll"s);
void reg_stages(Flags2Stages &stages)
Phase(World &world, std::string name)
std::string_view name() const
static void hook(Flags2Stages &stages)
The World represents the whole program and manages creation of MimIR nodes (Defs).
void start() override
Actual entry.
Emit(World &world, flags_t annex)
static void reg_stages(Flags2Stages &stages)
absl::flat_hash_map< flags_t, std::function< std::unique_ptr< Stage >(World &)> > Flags2Stages
Maps an an axiom of a Stage to a function that creates one.
mim::Plugin mim_get_plugin()
Basic info and registration function pointer to be returned from a specific plugin.