Mercurial > projects > ldc
annotate gen/classes.h @ 132:1700239cab2e trunk
[svn r136] MAJOR UNSTABLE UPDATE!!!
Initial commit after moving to Tango instead of Phobos.
Lots of bugfixes...
This build is not suitable for most things.
author | lindquist |
---|---|
date | Fri, 11 Jan 2008 17:57:40 +0100 |
parents | 5880c12dba83 |
children | 44a95ac7368a |
rev | line source |
---|---|
100 | 1 #ifndef LLVMDC_GEN_CLASSES_H |
2 #define LLVMDC_GEN_CLASSES_H | |
3 | |
4 /** | |
102
027b8d8b71ec
[svn r106] Turns out the last commit wasn't enough, now the D->LLVM process is even more split up.
lindquist
parents:
100
diff
changeset
|
5 * Resolves the llvm type for a class declaration |
027b8d8b71ec
[svn r106] Turns out the last commit wasn't enough, now the D->LLVM process is even more split up.
lindquist
parents:
100
diff
changeset
|
6 */ |
027b8d8b71ec
[svn r106] Turns out the last commit wasn't enough, now the D->LLVM process is even more split up.
lindquist
parents:
100
diff
changeset
|
7 void DtoResolveClass(ClassDeclaration* cd); |
027b8d8b71ec
[svn r106] Turns out the last commit wasn't enough, now the D->LLVM process is even more split up.
lindquist
parents:
100
diff
changeset
|
8 |
027b8d8b71ec
[svn r106] Turns out the last commit wasn't enough, now the D->LLVM process is even more split up.
lindquist
parents:
100
diff
changeset
|
9 /** |
100 | 10 * Provides the llvm declaration for a class declaration |
11 */ | |
12 void DtoDeclareClass(ClassDeclaration* cd); | |
13 | |
14 /** | |
15 * Constructs the constant initializer for a class declaration | |
16 */ | |
17 void DtoConstInitClass(ClassDeclaration* cd); | |
18 | |
19 /** | |
20 * Provides the llvm definition for a class declaration | |
21 */ | |
22 void DtoDefineClass(ClassDeclaration* cd); | |
23 | |
24 void DtoDeclareClassInfo(ClassDeclaration* cd); | |
25 void DtoDefineClassInfo(ClassDeclaration* cd); | |
26 | |
27 void DtoCallClassDtors(TypeClass* tc, llvm::Value* instance); | |
28 void DtoInitClass(TypeClass* tc, llvm::Value* dst); | |
29 | |
114 | 30 DValue* DtoCastClass(DValue* val, Type* to); |
31 DValue* DtoDynamicCastObject(DValue* val, Type* to); | |
32 DValue* DtoCastInterfaceToObject(DValue* val, Type* to); | |
113
27b9f749d9fe
[svn r117] Initial working implementation of interfaces.
lindquist
parents:
102
diff
changeset
|
33 |
132 | 34 llvm::Value* DtoIndexClass(llvm::Value* ptr, ClassDeclaration* cd, Type* t, unsigned os, std::vector<unsigned>& idxs); |
35 | |
100 | 36 #endif |