mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Changed the tryfinally handlers to a more generalized EnclosingHandler. Changed ClassInfoS to be mutable so they can be used as locks. Added new BB after throw ala return/break etc.
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
#ifndef GEN_LLVM_H
|
|
#define GEN_LLVM_H
|
|
|
|
#include "llvm/Type.h"
|
|
#include "llvm/DerivedTypes.h"
|
|
#include "llvm/Constants.h"
|
|
#include "llvm/IntrinsicInst.h"
|
|
#include "llvm/CallingConv.h"
|
|
#include "llvm/GlobalVariable.h"
|
|
#include "llvm/Function.h"
|
|
#include "llvm/Module.h"
|
|
#include "llvm/Value.h"
|
|
|
|
#include "llvm/Target/TargetData.h"
|
|
|
|
#include "llvm/Support/IRBuilder.h"
|
|
using llvm::IRBuilder;
|
|
|
|
#define GET_INTRINSIC_DECL(_X) (llvm::Intrinsic::getDeclaration(gIR->module, llvm::Intrinsic:: _X ))
|
|
|
|
// shortcuts for the common llvm types
|
|
|
|
#define LLType llvm::Type
|
|
#define LLFunctionType llvm::FunctionType
|
|
#define LLPointerType llvm::PointerType
|
|
#define LLStructType llvm::StructType
|
|
#define LLArrayType llvm::ArrayType
|
|
#define LLIntegerType llvm::IntegerType
|
|
#define LLOpaqueType llvm::OpaqueType
|
|
|
|
#define LLValue llvm::Value
|
|
#define LLGlobalValue llvm::GlobalValue
|
|
#define LLGlobalVariable llvm::GlobalVariable
|
|
#define LLFunction llvm::Function
|
|
|
|
#define LLConstant llvm::Constant
|
|
#define LLConstantStruct llvm::ConstantStruct
|
|
#define LLConstantArray llvm::ConstantArray
|
|
#define LLConstantInt llvm::ConstantInt
|
|
|
|
#define LLPATypeHolder llvm::PATypeHolder
|
|
|
|
#define LLSmallVector llvm::SmallVector
|
|
|
|
#endif // GEN_LLVM_H
|