Mercurial > projects > ldc
annotate gen/tollvm.h @ 9:dafae18f9c08 trunk
[svn r13] * Updated for LLVM 2.1
* Class v-tables are now typesafe
* Code cleanups
author | lindquist |
---|---|
date | Mon, 01 Oct 2007 21:19:53 +0200 |
parents | 5e69b77a5c51 |
children | d3ee9efe20e2 |
rev | line source |
---|---|
1 | 1 // D -> LLVM helpers |
2 | |
3 struct StructInitializer; | |
4 | |
5 const llvm::Type* LLVM_DtoType(Type* t); | |
6 | |
7 llvm::Type* LLVM_DtoStructType(Type* t); | |
8 llvm::Value* LLVM_DtoStructZeroInit(TypeStruct* t, llvm::Value* v); | |
9 llvm::Value* LLVM_DtoStructCopy(TypeStruct* t, llvm::Value* dst, llvm::Value* src); | |
10 llvm::Constant* LLVM_DtoStructInitializer(StructInitializer* si); | |
11 | |
12 llvm::FunctionType* LLVM_DtoFunctionType(Type* t, const llvm::Type* thisparam = 0); | |
13 llvm::FunctionType* LLVM_DtoFunctionType(FuncDeclaration* fdecl); | |
9 | 14 llvm::Function* LLVM_DtoDeclareFunction(FuncDeclaration* fdecl); |
1 | 15 |
16 llvm::StructType* LLVM_DtoDelegateType(Type* t); | |
17 llvm::Value* LLVM_DtoNullDelegate(llvm::Value* v); | |
18 llvm::Value* LLVM_DtoDelegateCopy(llvm::Value* dst, llvm::Value* src); | |
19 | |
20 llvm::GlobalValue::LinkageTypes LLVM_DtoLinkage(PROT prot, uint stc); | |
21 unsigned LLVM_DtoCallingConv(LINK l); | |
22 | |
23 llvm::Value* LLVM_DtoPointedType(llvm::Value* ptr, llvm::Value* val); | |
24 llvm::Value* LLVM_DtoBoolean(llvm::Value* val); | |
25 | |
26 const llvm::Type* LLVM_DtoSize_t(); | |
27 | |
28 void LLVM_DtoMain(); | |
29 | |
30 void LLVM_DtoCallClassDtors(TypeClass* tc, llvm::Value* instance); | |
31 void LLVM_DtoInitClass(TypeClass* tc, llvm::Value* dst); | |
32 | |
33 llvm::Constant* LLVM_DtoInitializer(Type* type, Initializer* init); | |
34 | |
4
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
35 llvm::Function* LLVM_DeclareMemSet32(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
36 llvm::Function* LLVM_DeclareMemSet64(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
37 llvm::Function* LLVM_DeclareMemCpy32(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
38 llvm::Function* LLVM_DeclareMemCpy64(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
39 |
6 | 40 llvm::Value* LLVM_DtoGEP(llvm::Value* ptr, llvm::Value* i0, llvm::Value* i1, const std::string& var, llvm::BasicBlock* bb); |
8
5e69b77a5c51
[svn r12] fixed accessing aggregate fields of aggregates
lindquist
parents:
6
diff
changeset
|
41 llvm::Value* LLVM_DtoGEP(llvm::Value* ptr, const std::vector<unsigned>& src, const std::string& var, llvm::BasicBlock* bb); |
6 | 42 |
1 | 43 #include "enums.h" |