sammine-lang
Loading...
Searching...
No Matches
include
compiler
Compiler.h
Go to the documentation of this file.
1
//
2
// Created by Jasmine Tang on 3/27/24.
3
//
4
5
#pragma once
6
#include <map>
7
#include <string>
10
namespace
sammine_lang {
11
enum
compiler_option_enum {
12
FILE,
13
STR,
14
LLVM_IR,
15
AST_IR,
16
DIAGNOSTIC,
17
CHECK,
18
TIME,
19
ARGV0,
20
BACKEND,
21
MLIR_IR,
22
OUTPUT_DIR,
23
IMPORT_PATHS,
24
LIB_FORMAT,
25
};
26
27
enum class
LibFormat {
28
None,
// No library output (.o only, or link to .exe)
29
Static,
// Emit .a archive
30
Shared,
// Emit .so shared library
31
};
32
33
class
CompilerRunner
{
34
public
:
35
static
void
36
run(std::map<compiler_option_enum, std::string> &compiler_options);
37
};
38
}
// namespace sammine_lang
sammine_lang::CompilerRunner
Definition
Compiler.h:33
Generated by
1.16.1