9 auto& world = arg->
world();
10 auto& driver = world.
driver();
11 if (
auto str =
tuple2str(arg); !str.empty())
return world.lit_bool(driver.is_loaded(driver.sym(str)));
18 auto& world = phase->
world();
19 auto& driver = world.
driver();
20 auto name = callee->as<
App>()->arg();
21 if (
auto str =
tuple2str(name); !str.empty() && driver.is_loaded(driver.sym(str)))
return phase;
World & world() const noexcept
const Driver & driver() const
#define MIM_compile_NORMALIZER_IMPL
const Def * normalize_cond_phase(const Def *, const Def *callee, const Def *phase)
compile.cond_phase name phase ↦ phase if name's plugin is loaded, else compile.null_phase.
const Def * normalize_is_loaded(const Def *, const Def *, const Def *arg)
std::string tuple2str(const Def *)
static consteval flags_t base()