mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 12:23:13 +01:00
Did a lot of smaller cleans up here and there. Replaced more llvm::Foo with LLFoo for common stuff. Split up tollvm.cpp.
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
|
|
|
|
typedef llvm::Type LLType;
|
|
typedef llvm::FunctionType LLFunctionType;
|
|
typedef llvm::PointerType LLPointerType;
|
|
typedef llvm::StructType LLStructType;
|
|
typedef llvm::ArrayType LLArrayType;
|
|
typedef llvm::IntegerType LLIntegerType;
|
|
typedef llvm::OpaqueType LLOpaqueType;
|
|
|
|
typedef llvm::Value LLValue;
|
|
typedef llvm::GlobalValue LLGlobalValue;
|
|
typedef llvm::GlobalVariable LLGlobalVariable;
|
|
typedef llvm::Function LLFunction;
|
|
|
|
typedef llvm::Constant LLConstant;
|
|
typedef llvm::ConstantStruct LLConstantStruct;
|
|
typedef llvm::ConstantArray LLConstantArray;
|
|
typedef llvm::ConstantInt LLConstantInt;
|
|
|
|
typedef llvm::PATypeHolder LLPATypeHolder;
|
|
|
|
#define LLSmallVector llvm::SmallVector
|
|
|
|
#endif // GEN_LLVM_H
|