Mercurial > projects > ldc
annotate gen/llvm.h @ 399:0e6b4d65d3f8
Give error messages for invalid casts.
This required passing Loc information to certain functions.
Fixes nocompile/b/bug_cgcs_354_A/B.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 26 Jul 2008 17:19:16 +0200 |
parents | d59c363fccad |
children | cc40db549aea |
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" |
40 | 13 |
14 #include "llvm/Target/TargetData.h" | |
15 | |
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
|
16 #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
|
17 using llvm::IRBuilder; |
40 | 18 |
213
7816aafeea3c
[svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents:
205
diff
changeset
|
19 #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
|
20 |
244
a95056b3c996
[svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents:
213
diff
changeset
|
21 // 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
|
22 |
309 | 23 #define LLType llvm::Type |
24 #define LLFunctionType llvm::FunctionType | |
25 #define LLPointerType llvm::PointerType | |
26 #define LLStructType llvm::StructType | |
27 #define LLArrayType llvm::ArrayType | |
28 #define LLIntegerType llvm::IntegerType | |
29 #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
|
30 |
309 | 31 #define LLValue llvm::Value |
32 #define LLGlobalValue llvm::GlobalValue | |
33 #define LLGlobalVariable llvm::GlobalVariable | |
34 #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
|
35 |
309 | 36 #define LLConstant llvm::Constant |
37 #define LLConstantStruct llvm::ConstantStruct | |
38 #define LLConstantArray llvm::ConstantArray | |
39 #define LLConstantInt llvm::ConstantInt | |
244
a95056b3c996
[svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents:
213
diff
changeset
|
40 |
309 | 41 #define LLPATypeHolder llvm::PATypeHolder |
213
7816aafeea3c
[svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents:
205
diff
changeset
|
42 |
7816aafeea3c
[svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents:
205
diff
changeset
|
43 #define LLSmallVector llvm::SmallVector |
7816aafeea3c
[svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents:
205
diff
changeset
|
44 |
40 | 45 #endif // GEN_LLVM_H |