mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 11:26:02 +03:00

Added: started support for x86 80bit floating point. Changed: aggregates passed by value now use the llvm 'byval' parameter attribute, also lays ground work for using other attributes. Changed: eliminated a lot more std::vectorS, these showed up pretty much at the top when profiling! Changed: performed other misc. cleanups. Changed: halt expression now call the new llvm trap intrinsic instead of an assert(0). Changed: dstress suite now passes -O0 by default, this only eliminates unreferenced globals, which speeds up linking quite a bit.
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
#ifndef LLVMDC_GEN_CLASSES_H
|
|
#define LLVMDC_GEN_CLASSES_H
|
|
|
|
#include "gen/structs.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, DStructIndexVector& idxs);
|
|
|
|
LLValue* DtoVirtualFunctionPointer(DValue* inst, FuncDeclaration* fdecl);
|
|
|
|
#endif
|