Goose  Artifact [911659c9e2]

Artifact 911659c9e2655df6b485c880509e2d11dcc78b32fc1efa4ae84168da4696f9eb:

  • File bs/codegen/codegen.h — part of check-in [0d6a77f7ab] at 2019-07-28 17:22:26 on branch trunk — codegen: added functions to set the target for a module, and to output a module either as an asm or as an object file. (user: achavasse size: 544)

#ifndef EMPATHY_CODEGEN_H
#define EMPATHY_CODEGEN_H

#include "llvm/IR/Module.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Target/TargetMachine.h"

#include "llr/llr.h"
#include "sema/sema.h"

namespace empathy::builtins
{
    class Func;
    class FuncType;
}

namespace empathy::codegen
{
    using namespace ir;
    using namespace llr;
    using namespace sema;

    extern llvm::LLVMContext& GetLLVMContext();
}

#include "module.h"
#include "mangle.h"
#include "type.h"

#endif