Files
bits-runner-builder/src/CodeGenerator.h
Rafał Grodziński c6f2156e3b Added code builder
2025-05-31 19:02:42 +09:00

25 lines
534 B
C++

#ifndef CODE_GENERATOR_H
#define CODE_GENERATOR_H
#include <iostream>
#include "llvm/IR/Module.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/TargetParser/Host.h"
using namespace std;
class CodeGenerator {
private:
shared_ptr<llvm::Module> module;
public:
CodeGenerator(shared_ptr<llvm::Module> module);
void generateObjectFile(string fileName);
};
#endif