MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
ll_nvptx.h
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4#include <string>
5
6#include <mim/plug/ll/ll.h>
7
8namespace mim {
9
10class World;
11
12namespace plug::ll_nvptx {
13
14namespace ll = mim::plug::ll;
15
19
20void emit_host(World&, std::ostream&, std::optional<std::string>, ll::Emitter::Rt rt = ll::Emitter::Rt::embed);
21DeviceEmitFlags emit_device(World&, std::ostream&);
22
23} // namespace plug::ll_nvptx
24
25} // namespace mim
The World represents the whole program and manages creation of MimIR nodes (Defs).
Definition world.h:36
Rt
How the C runtime wrappers (compiled to a <name>.ll via add_mim_runtime) reach the output.
Definition ll.h:159
@ embed
Splice the wrapper IR into the emitted module so it is self-contained.
Definition ll.h:160
The ll_nvptx Plugin
Definition ll_nvptx.h:12
DeviceEmitFlags emit_device(World &, std::ostream &)
Definition ll_nvptx.cpp:539
void emit_host(World &, std::ostream &, std::optional< std::string >, ll::Emitter::Rt rt=ll::Emitter::Rt::embed)
Definition ll_nvptx.cpp:531
The ll Plugin
Definition ll.h:37
Definition ast.h:14