Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (21 sloc) 806 Bytes
#ifndef LDC_GEN_FUNCTIONS_H
#define LDC_GEN_FUNCTIONS_H
#include "mars.h"
struct FuncDeclaration;
struct Type;
struct IRAsmBlock;
namespace llvm
{
class Value;
}
llvm::FunctionType* DtoFunctionType(Type* t, Type* thistype, Type* nesttype, bool ismain = false);
llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl);
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(Parameter* fnarg, Expression* argexp);
void DtoVariadicArgument(Expression* argexp, llvm::Value* dst);
#endif
Jump to Line
Something went wrong with that request. Please try again.