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

Applied patch from ticket #129 to compile against latest LLVM. Thanks Frits van Bommel. Fixed implicit return by asm block at the end of a function on x86-32. Other architectures will produce an error at the moment. Adding support for new targets is fairly simple. Fixed return calling convention for complex numbers, ST and ST(1) were switched around. Added some testcases. I've run a dstress test and there are no regressions. However, the runtime does not seem to compile with symbolic debug information. -O3 -release -inline works well and is what I used for the dstress run. Tango does not compile, a small workaround is needed in tango.io.digest.Digest.Digest.hexDigest. See ticket #206 .
19 lines
721 B
C
19 lines
721 B
C
#ifndef LDC_GEN_FUNCTIONS_H
|
|
#define LDC_GEN_FUNCTIONS_H
|
|
|
|
const llvm::FunctionType* DtoFunctionType(Type* t, const LLType* thistype, const LLType* nesttype, bool ismain = false);
|
|
const llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl);
|
|
|
|
const llvm::FunctionType* DtoBaseFunctionType(FuncDeclaration* fdecl);
|
|
|
|
void DtoResolveFunction(FuncDeclaration* fdecl);
|
|
void DtoDeclareFunction(FuncDeclaration* fdecl);
|
|
void DtoDefineFunction(FuncDeclaration* fd);
|
|
|
|
void DtoDefineNakedFunction(FuncDeclaration* fd);
|
|
void emitABIReturnAsmStmt(IRAsmBlock* asmblock, Loc loc, FuncDeclaration* fdecl);
|
|
|
|
DValue* DtoArgument(Argument* fnarg, Expression* argexp);
|
|
void DtoVariadicArgument(Expression* argexp, LLValue* dst);
|
|
|
|
#endif
|