Mercurial > projects > ldc
annotate gen/tollvm.h @ 39:fd5e8bbfcb25 trunk
[svn r43] Fixed the rebuild profile to be able to build sdldemo1.
author | lindquist |
---|---|
date | Wed, 10 Oct 2007 06:21:31 +0200 |
parents | 4648206ca213 |
children | 8b0e809563df |
rev | line source |
---|---|
1 | 1 // D -> LLVM helpers |
2 | |
3 struct StructInitializer; | |
4 | |
5 const llvm::Type* LLVM_DtoType(Type* t); | |
6 | |
11
d3ee9efe20e2
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
lindquist
parents:
9
diff
changeset
|
7 const llvm::Type* LLVM_DtoStructType(Type* t); |
1 | 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 | |
11
d3ee9efe20e2
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
lindquist
parents:
9
diff
changeset
|
12 const llvm::FunctionType* LLVM_DtoFunctionType(Type* t, const llvm::Type* thisparam = 0); |
d3ee9efe20e2
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
lindquist
parents:
9
diff
changeset
|
13 const llvm::FunctionType* LLVM_DtoFunctionType(FuncDeclaration* fdecl); |
9 | 14 llvm::Function* LLVM_DtoDeclareFunction(FuncDeclaration* fdecl); |
1 | 15 |
11
d3ee9efe20e2
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
lindquist
parents:
9
diff
changeset
|
16 const llvm::StructType* LLVM_DtoDelegateType(Type* t); |
1 | 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); |
11
d3ee9efe20e2
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
lindquist
parents:
9
diff
changeset
|
42 llvm::Value* LLVM_DtoGEPi(llvm::Value* ptr, unsigned i0, const std::string& var, llvm::BasicBlock* bb); |
d3ee9efe20e2
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
lindquist
parents:
9
diff
changeset
|
43 llvm::Value* LLVM_DtoGEPi(llvm::Value* ptr, unsigned i0, unsigned i1, const std::string& var, llvm::BasicBlock* bb); |
6 | 44 |
29
253a5fc4033a
[svn r33] * Added support for assignment to function arguments
lindquist
parents:
11
diff
changeset
|
45 void LLVM_DtoGiveArgumentStorage(elem* e); |
253a5fc4033a
[svn r33] * Added support for assignment to function arguments
lindquist
parents:
11
diff
changeset
|
46 |
34 | 47 llvm::Value* LLVM_DtoRealloc(llvm::Value* ptr, const llvm::Type* ty); |
48 llvm::Value* LLVM_DtoRealloc(llvm::Value* ptr, llvm::Value* len); | |
49 | |
50 void LLVM_DtoAssert(llvm::Value* cond, llvm::Value* loc, llvm::Value* msg); | |
51 | |
1 | 52 #include "enums.h" |