Mercurial > projects > ldc
annotate gen/llvm.h @ 638:94b01f15814f
Added FreeBSD support to the -t switch
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Thu, 02 Oct 2008 03:38:29 +0200 |
parents | df196c8dea26 |
children | 5812d6fac0f0 |
rev | line source |
---|---|
40 | 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" | |
43 | 12 #include "llvm/Value.h" |
632
df196c8dea26
Updated to latest LLVM trunk, function notes have been removed and merged with parameter attributes, which have been renamed to just attributes. Nothing seems to have broke!
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
629
diff
changeset
|
13 #include "llvm/Attributes.h" |
40 | 14 |
15 #include "llvm/Target/TargetData.h" | |
16 | |
205
9d44ec83acd1
[svn r221] Update: Switched to the 2.3 LLVM svn branch, http://llvm.org/svn/llvm-project/llvm/branches/release_23 .
lindquist
parents:
43
diff
changeset
|
17 #include "llvm/Support/IRBuilder.h" |
9d44ec83acd1
[svn r221] Update: Switched to the 2.3 LLVM svn branch, http://llvm.org/svn/llvm-project/llvm/branches/release_23 .
lindquist
parents:
43
diff
changeset
|
18 using llvm::IRBuilder; |
40 | 19 |
629
607b6b5819a7
Fixed issue with IsExpression and potential type mismatch for classes.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
445
diff
changeset
|
20 // for WriteTypeSymbolic |
607b6b5819a7
Fixed issue with IsExpression and potential type mismatch for classes.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
445
diff
changeset
|
21 #include "llvm/Assembly/Writer.h" |
607b6b5819a7
Fixed issue with IsExpression and potential type mismatch for classes.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
445
diff
changeset
|
22 |
213
7816aafeea3c
[svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents:
205
diff
changeset
|
23 #define GET_INTRINSIC_DECL(_X) (llvm::Intrinsic::getDeclaration(gIR->module, llvm::Intrinsic:: _X )) |
7816aafeea3c
[svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents:
205
diff
changeset
|
24 |
244
a95056b3c996
[svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents:
213
diff
changeset
|
25 // shortcuts for the common llvm types |
a95056b3c996
[svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents:
213
diff
changeset
|
26 |
309 | 27 #define LLType llvm::Type |
28 #define LLFunctionType llvm::FunctionType | |
29 #define LLPointerType llvm::PointerType | |
30 #define LLStructType llvm::StructType | |
31 #define LLArrayType llvm::ArrayType | |
32 #define LLIntegerType llvm::IntegerType | |
33 #define LLOpaqueType llvm::OpaqueType | |
244
a95056b3c996
[svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents:
213
diff
changeset
|
34 |
309 | 35 #define LLValue llvm::Value |
36 #define LLGlobalValue llvm::GlobalValue | |
37 #define LLGlobalVariable llvm::GlobalVariable | |
38 #define LLFunction llvm::Function | |
244
a95056b3c996
[svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents:
213
diff
changeset
|
39 |
309 | 40 #define LLConstant llvm::Constant |
41 #define LLConstantStruct llvm::ConstantStruct | |
42 #define LLConstantArray llvm::ConstantArray | |
43 #define LLConstantInt llvm::ConstantInt | |
445
cc40db549aea
Changed the handling of variadic intrinsics a bit.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
309
diff
changeset
|
44 #define LLConstantFP llvm::ConstantFP |
244
a95056b3c996
[svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents:
213
diff
changeset
|
45 |
309 | 46 #define LLPATypeHolder llvm::PATypeHolder |
213
7816aafeea3c
[svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents:
205
diff
changeset
|
47 |
7816aafeea3c
[svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents:
205
diff
changeset
|
48 #define LLSmallVector llvm::SmallVector |
7816aafeea3c
[svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents:
205
diff
changeset
|
49 |
445
cc40db549aea
Changed the handling of variadic intrinsics a bit.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
309
diff
changeset
|
50 #define APFloat llvm::APFloat |
cc40db549aea
Changed the handling of variadic intrinsics a bit.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
309
diff
changeset
|
51 |
40 | 52 #endif // GEN_LLVM_H |