Mercurial > projects > ldc
annotate gen/tollvm.h @ 40:8b0e809563df trunk
[svn r44] Lots of bug fixes.
New array literal support
New array ~= operator support (for single element)
New with statement support
More...
author | lindquist |
---|---|
date | Fri, 19 Oct 2007 07:43:21 +0200 |
parents | 4648206ca213 |
children | 6fcc08a4d406 |
rev | line source |
---|---|
1 | 1 // D -> LLVM helpers |
2 | |
3 struct StructInitializer; | |
4 | |
5 const llvm::Type* LLVM_DtoType(Type* t); | |
40 | 6 bool LLVM_DtoIsPassedByRef(Type* type); |
7 Type* LLVM_DtoDType(Type* t); | |
1 | 8 |
11
d3ee9efe20e2
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
lindquist
parents:
9
diff
changeset
|
9 const llvm::Type* LLVM_DtoStructType(Type* t); |
1 | 10 llvm::Value* LLVM_DtoStructZeroInit(TypeStruct* t, llvm::Value* v); |
11 llvm::Value* LLVM_DtoStructCopy(TypeStruct* t, llvm::Value* dst, llvm::Value* src); | |
40 | 12 llvm::Constant* LLVM_DtoConstStructInitializer(StructInitializer* si); |
1 | 13 |
11
d3ee9efe20e2
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
lindquist
parents:
9
diff
changeset
|
14 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
|
15 const llvm::FunctionType* LLVM_DtoFunctionType(FuncDeclaration* fdecl); |
9 | 16 llvm::Function* LLVM_DtoDeclareFunction(FuncDeclaration* fdecl); |
1 | 17 |
11
d3ee9efe20e2
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
lindquist
parents:
9
diff
changeset
|
18 const llvm::StructType* LLVM_DtoDelegateType(Type* t); |
1 | 19 llvm::Value* LLVM_DtoNullDelegate(llvm::Value* v); |
20 llvm::Value* LLVM_DtoDelegateCopy(llvm::Value* dst, llvm::Value* src); | |
21 | |
22 llvm::GlobalValue::LinkageTypes LLVM_DtoLinkage(PROT prot, uint stc); | |
23 unsigned LLVM_DtoCallingConv(LINK l); | |
24 | |
25 llvm::Value* LLVM_DtoPointedType(llvm::Value* ptr, llvm::Value* val); | |
26 llvm::Value* LLVM_DtoBoolean(llvm::Value* val); | |
27 | |
28 const llvm::Type* LLVM_DtoSize_t(); | |
29 | |
30 void LLVM_DtoMain(); | |
31 | |
32 void LLVM_DtoCallClassDtors(TypeClass* tc, llvm::Value* instance); | |
33 void LLVM_DtoInitClass(TypeClass* tc, llvm::Value* dst); | |
34 | |
40 | 35 llvm::Constant* LLVM_DtoConstInitializer(Type* type, Initializer* init); |
36 void LLVM_DtoInitializer(Initializer* init); | |
1 | 37 |
4
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
38 llvm::Function* LLVM_DeclareMemSet32(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
39 llvm::Function* LLVM_DeclareMemSet64(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
40 llvm::Function* LLVM_DeclareMemCpy32(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
41 llvm::Function* LLVM_DeclareMemCpy64(); |
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
42 |
6 | 43 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
|
44 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
|
45 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
|
46 llvm::Value* LLVM_DtoGEPi(llvm::Value* ptr, unsigned i0, unsigned i1, const std::string& var, llvm::BasicBlock* bb); |
6 | 47 |
29
253a5fc4033a
[svn r33] * Added support for assignment to function arguments
lindquist
parents:
11
diff
changeset
|
48 void LLVM_DtoGiveArgumentStorage(elem* e); |
253a5fc4033a
[svn r33] * Added support for assignment to function arguments
lindquist
parents:
11
diff
changeset
|
49 |
34 | 50 llvm::Value* LLVM_DtoRealloc(llvm::Value* ptr, const llvm::Type* ty); |
51 llvm::Value* LLVM_DtoRealloc(llvm::Value* ptr, llvm::Value* len); | |
52 | |
53 void LLVM_DtoAssert(llvm::Value* cond, llvm::Value* loc, llvm::Value* msg); | |
54 | |
40 | 55 llvm::Value* LLVM_DtoArgument(const llvm::Type* paramtype, Argument* fnarg, Expression* argexp); |
56 | |
1 | 57 #include "enums.h" |