17 auto [type, addr_space] = malloc->decurry()->args<2>();
19 auto [
mem, _] = malloc->args<2>();
20 World& w = type->world();
24 auto [type, addr_space] = free->decurry()->args<2>();
26 auto [
mem, ptr] = free->args<2>();
27 World& w = type->world();
28 return w.app(w.app(w.annex<
gpu::free>(), type), {mem, ptr});
void reg_stages(Flags2Stages &stages)
static auto isa(const Def *def)
The World represents the whole program and manages creation of MimIR nodes (Defs).
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()
#define MIM_REPL(__stages, __annex,...)
Basic info and registration function pointer to be returned from a specific plugin.