Mercurial > projects > ldc
annotate gen/classes.h @ 113:27b9f749d9fe trunk
[svn r117] Initial working implementation of interfaces.
Groundwork for all the different types of class/interface casts laid out.
author | lindquist |
---|---|
date | Sat, 24 Nov 2007 06:33:00 +0100 |
parents | 027b8d8b71ec |
children | 5880c12dba83 |
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 | |
113
27b9f749d9fe
[svn r117] Initial working implementation of interfaces.
lindquist
parents:
102
diff
changeset
|
30 DValue* DtoCastObjectToInterface(DValue* val, Type* to); |
27b9f749d9fe
[svn r117] Initial working implementation of interfaces.
lindquist
parents:
102
diff
changeset
|
31 DValue* DtoCastInterfaceToObject(DValue* val); |
27b9f749d9fe
[svn r117] Initial working implementation of interfaces.
lindquist
parents:
102
diff
changeset
|
32 |
100 | 33 #endif |