| 1 |
#ifndef GEN_LLVM_H |
|---|
| 2 |
#define GEN_LLVM_H |
|---|
| 3 |
|
|---|
| 4 |
#include "llvm/Type.h" |
|---|
| 5 |
#include "llvm/DerivedTypes.h" |
|---|
| 6 |
#include "llvm/Constants.h" |
|---|
| 7 |
#include "llvm/IntrinsicInst.h" |
|---|
| 8 |
#include "llvm/CallingConv.h" |
|---|
| 9 |
#include "llvm/GlobalVariable.h" |
|---|
| 10 |
#include "llvm/Function.h" |
|---|
| 11 |
#include "llvm/Module.h" |
|---|
| 12 |
#include "llvm/Value.h" |
|---|
| 13 |
#include "llvm/Attributes.h" |
|---|
| 14 |
|
|---|
| 15 |
#include "llvm/Target/TargetData.h" |
|---|
| 16 |
|
|---|
| 17 |
#include "llvm/Analysis/DebugInfo.h" |
|---|
| 18 |
|
|---|
| 19 |
#include "llvm/Support/CallSite.h" |
|---|
| 20 |
|
|---|
| 21 |
#include "llvm/Support/IRBuilder.h" |
|---|
| 22 |
using llvm::IRBuilder; |
|---|
| 23 |
|
|---|
| 24 |
// for WriteTypeSymbolic |
|---|
| 25 |
#include "llvm/Assembly/Writer.h" |
|---|
| 26 |
|
|---|
| 27 |
#define GET_INTRINSIC_DECL(_X) (llvm::Intrinsic::getDeclaration(gIR->module, llvm::Intrinsic:: _X )) |
|---|
| 28 |
|
|---|
| 29 |
// shortcuts for the common llvm types |
|---|
| 30 |
|
|---|
| 31 |
#define LLType llvm::Type |
|---|
| 32 |
#define LLFunctionType llvm::FunctionType |
|---|
| 33 |
#define LLPointerType llvm::PointerType |
|---|
| 34 |
#define LLStructType llvm::StructType |
|---|
| 35 |
#define LLArrayType llvm::ArrayType |
|---|
| 36 |
#define LLIntegerType llvm::IntegerType |
|---|
| 37 |
#define LLOpaqueType llvm::OpaqueType |
|---|
| 38 |
|
|---|
| 39 |
#define LLValue llvm::Value |
|---|
| 40 |
#define LLGlobalValue llvm::GlobalValue |
|---|
| 41 |
#define LLGlobalVariable llvm::GlobalVariable |
|---|
| 42 |
#define LLFunction llvm::Function |
|---|
| 43 |
|
|---|
| 44 |
#define LLConstant llvm::Constant |
|---|
| 45 |
#define LLConstantStruct llvm::ConstantStruct |
|---|
| 46 |
#define LLConstantArray llvm::ConstantArray |
|---|
| 47 |
#define LLConstantInt llvm::ConstantInt |
|---|
| 48 |
#define LLConstantFP llvm::ConstantFP |
|---|
| 49 |
|
|---|
| 50 |
#define LLPATypeHolder llvm::PATypeHolder |
|---|
| 51 |
|
|---|
| 52 |
#define LLCallSite llvm::CallSite |
|---|
| 53 |
|
|---|
| 54 |
#define LLSmallVector llvm::SmallVector |
|---|
| 55 |
|
|---|
| 56 |
using llvm::APFloat; |
|---|
| 57 |
using llvm::APInt; |
|---|
| 58 |
|
|---|
| 59 |
#endif // GEN_LLVM_H |
|---|