Mercurial > projects > ldc
annotate gen/tollvm.h @ 4:e116aa1488e6 trunk
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
fixed passing string literals as array parameters
few other fixes
moved some array routines into gen/arrays
author | lindquist |
---|---|
date | Mon, 03 Sep 2007 17:34:30 +0200 |
parents | c53b6e3fe49a |
children | 35d93ce68cf4 |
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); | |
14 | |
15 llvm::StructType* LLVM_DtoDelegateType(Type* t); | |
16 llvm::Value* LLVM_DtoNullDelegate(llvm::Value* v); | |
17 llvm::Value* LLVM_DtoDelegateCopy(llvm::Value* dst, llvm::Value* src); | |
18 | |
19 llvm::GlobalValue::LinkageTypes LLVM_DtoLinkage(PROT prot, uint stc); | |
20 unsigned LLVM_DtoCallingConv(LINK l); | |
21 | |
22 llvm::Value* LLVM_DtoPointedType(llvm::Value* ptr, llvm::Value* val); | |
23 llvm::Value* LLVM_DtoBoolean(llvm::Value* val); | |
24 | |
25 const llvm::Type* LLVM_DtoSize_t(); | |
26 | |
27 void LLVM_DtoMain(); | |
28 | |
29 void LLVM_DtoCallClassDtors(TypeClass* tc, llvm::Value* instance); | |
30 void LLVM_DtoInitClass(TypeClass* tc, llvm::Value* dst); | |
31 | |
32 llvm::Constant* LLVM_DtoInitializer(Type* type, Initializer* init); | |
33 | |
4
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
34 llvm::Function* LLVM_DeclareMemSet32(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
35 llvm::Function* LLVM_DeclareMemSet64(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
36 llvm::Function* LLVM_DeclareMemCpy32(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
37 llvm::Function* LLVM_DeclareMemCpy64(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
38 |
1 | 39 #include "enums.h" |