13 Star 69 Fork 22

johnsonyl/cpps

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cpps_jit_builder_runtime.h 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
johnsonyl 提交于 2024-03-14 11:26 +08:00 . 尝试增加llvm lljit但是放弃了。
#pragma once
#include <cpps/cpps.h> //Single Header
#include "llvm/ExecutionEngine/Orc/LLJIT.h"
#include "llvm/ExecutionEngine/Orc/ThreadSafeModule.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/raw_ostream.h"
#include <iostream>
#include <utility>
#include <vector>
#include <initializer_list>
using namespace llvm;
using namespace llvm::orc;
typedef phmap::flat_hash_map<std::string, Value*> varname_map;
namespace cpps
{
class cpps_jit_data;
struct cpps_jit_builder_runtime
{
cpps_jit_data* __moduledata;
std::unique_ptr<LLVMContext>& context;
IRBuilder<>& builder;
cpps::C* c;
cpps::cpps_domain* domain;
Value* _c;
Value* _domain;
Value* _stack;
Value* _leftdomain;
varname_map* __func_var_map;
std::vector<Value*>* __func_var_list;
Function* function;
Value* non_ret;
Value* temp_func;
};
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/cppscript/cpps.git
git@gitee.com:cppscript/cpps.git
cppscript
cpps
cpps
master

搜索帮助