annotate gen/llvm.h @ 244:a95056b3c996 trunk

[svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB. Did a lot of smaller cleans up here and there. Replaced more llvm::Foo with LLFoo for common stuff. Split up tollvm.cpp.
author lindquist
date Mon, 09 Jun 2008 09:37:08 +0200
parents 7816aafeea3c
children d59c363fccad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
1 #ifndef GEN_LLVM_H
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
2 #define GEN_LLVM_H
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
3
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
4 #include "llvm/Type.h"
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
5 #include "llvm/DerivedTypes.h"
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
6 #include "llvm/Constants.h"
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
7 #include "llvm/IntrinsicInst.h"
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
8 #include "llvm/CallingConv.h"
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
9 #include "llvm/GlobalVariable.h"
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
10 #include "llvm/Function.h"
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
11 #include "llvm/Module.h"
43
eb7bf7b7972e [svn r47] fixed a problem with gdc 4.1
lindquist
parents: 40
diff changeset
12 #include "llvm/Value.h"
40
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
13
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
14 #include "llvm/Target/TargetData.h"
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
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
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
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
213
7816aafeea3c [svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents: 205
diff changeset
23 typedef llvm::Type LLType;
244
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
24 typedef llvm::FunctionType LLFunctionType;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
25 typedef llvm::PointerType LLPointerType;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
26 typedef llvm::StructType LLStructType;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
27 typedef llvm::ArrayType LLArrayType;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
28 typedef llvm::IntegerType LLIntegerType;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
29 typedef llvm::OpaqueType LLOpaqueType;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
30
213
7816aafeea3c [svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents: 205
diff changeset
31 typedef llvm::Value LLValue;
244
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
32 typedef llvm::GlobalValue LLGlobalValue;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
33 typedef llvm::GlobalVariable LLGlobalVariable;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
34 typedef llvm::Function LLFunction;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
35
213
7816aafeea3c [svn r229] Updated the object.d implementation to the latest Tango.
lindquist
parents: 205
diff changeset
36 typedef llvm::Constant LLConstant;
244
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
37 typedef llvm::ConstantStruct LLConstantStruct;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
38 typedef llvm::ConstantArray LLConstantArray;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
39 typedef llvm::ConstantInt LLConstantInt;
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
40
a95056b3c996 [svn r261] Fixed debug info for integer and floating local variables, can now be inspected in GDB.
lindquist
parents: 213
diff changeset
41 typedef llvm::PATypeHolder LLPATypeHolder;
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
8b0e809563df [svn r44] Lots of bug fixes.
lindquist
parents:
diff changeset
45 #endif // GEN_LLVM_H