view gen/functions.h @ 608:52ab8f3130d9

Removed dmdintrinsic.d from the runtime, we already have llvmdc.bitmanip. Updated tango patch to import tango.core.BitManip instead of std.intrinsic.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Thu, 18 Sep 2008 21:14:37 +0200
parents a34078905d01
children eef8ac26c66c
line wrap: on
line source

#ifndef LLVMDC_GEN_FUNCTIONS_H
#define LLVMDC_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 DtoDefineFunc(FuncDeclaration* fd);

DValue* DtoArgument(Argument* fnarg, Expression* argexp);
void DtoVariadicArgument(Expression* argexp, LLValue* dst);

#endif