diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-13 03:54:49 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-13 03:54:49 +0000 |
| commit | e28cbb2efac9ed6e56cd9ab6eb1a3f16810d575a (patch) | |
| tree | a0402247ba92259f6b7f3a2ad2c8ed0ca8eab3de /include/cps/CodeGen.h | |
| parent | ba1b65f4a20566405c53d4ded90b483ec9aa7d09 (diff) | |
feat: embed a statically linked LLVM execution engine
Add EMBEDDED mode to run generated modules in-process without lli or PATH
lookup. Link LLVM and support archives plus the C++ runtime statically,
while retaining the system C runtime on Linux.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/CodeGen.h')
| -rw-r--r-- | include/cps/CodeGen.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index ae2f015..2c837fd 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -96,6 +96,7 @@ public: ~CodeGen(); void compile(const std::vector<std::unique_ptr<StmtAST>> &Statements); void print(llvm::raw_ostream &Output); + const llvm::Module &getModule() const { return *TheModule; } bool hadError() const { return HadError; } void reportError(const char *Fmt, ...); static bool isBuiltinName(const std::string &Name); |
