mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-24 16:43:14 +01:00
Fixed a bunch of the built-in typeinfos for arrays, they did not inherit TypeInfo_Array. Applied patch to tango/text/convert/Layout.d by fvbommel, closes #47 . Cleaned up some type code. Replaced uses of llvm::Type with LLType (a typedef), same for Value and Constant. Fixed a few cases where typeinfo for user structs could be emitted multiple times, seems to still be some cases of this :/
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
#ifndef LLVMDC_GEN_CLASSES_H
|
|
#define LLVMDC_GEN_CLASSES_H
|
|
|
|
/**
|
|
* Resolves the llvm type for a class declaration
|
|
*/
|
|
void DtoResolveClass(ClassDeclaration* cd);
|
|
|
|
/**
|
|
* Provides the llvm declaration for a class declaration
|
|
*/
|
|
void DtoDeclareClass(ClassDeclaration* cd);
|
|
|
|
/**
|
|
* Constructs the constant initializer for a class declaration
|
|
*/
|
|
void DtoConstInitClass(ClassDeclaration* cd);
|
|
|
|
/**
|
|
* Provides the llvm definition for a class declaration
|
|
*/
|
|
void DtoDefineClass(ClassDeclaration* cd);
|
|
|
|
void DtoDeclareClassInfo(ClassDeclaration* cd);
|
|
void DtoDefineClassInfo(ClassDeclaration* cd);
|
|
|
|
DValue* DtoNewClass(TypeClass* type, NewExp* newexp);
|
|
void DtoInitClass(TypeClass* tc, LLValue* dst);
|
|
DValue* DtoCallClassCtor(TypeClass* type, CtorDeclaration* ctor, Array* arguments, LLValue* mem);
|
|
void DtoFinalizeClass(LLValue* inst);
|
|
|
|
DValue* DtoCastClass(DValue* val, Type* to);
|
|
DValue* DtoDynamicCastObject(DValue* val, Type* to);
|
|
|
|
DValue* DtoCastInterfaceToObject(DValue* val, Type* to);
|
|
DValue* DtoDynamicCastInterface(DValue* val, Type* to);
|
|
|
|
LLValue* DtoIndexClass(LLValue* ptr, ClassDeclaration* cd, Type* t, unsigned os, std::vector<unsigned>& idxs);
|
|
|
|
LLValue* DtoVirtualFunctionPointer(DValue* inst, FuncDeclaration* fdecl);
|
|
|
|
#endif
|