Mercurial > projects > ldc
view gen/tollvm.h @ 4:e116aa1488e6 trunk
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
fixed passing string literals as array parameters
few other fixes
moved some array routines into gen/arrays
author | lindquist |
---|---|
date | Mon, 03 Sep 2007 17:34:30 +0200 |
parents | c53b6e3fe49a |
children | 35d93ce68cf4 |
line wrap: on
line source
// D -> LLVM helpers struct StructInitializer; const llvm::Type* LLVM_DtoType(Type* t); llvm::Type* LLVM_DtoStructType(Type* t); llvm::Value* LLVM_DtoStructZeroInit(TypeStruct* t, llvm::Value* v); llvm::Value* LLVM_DtoStructCopy(TypeStruct* t, llvm::Value* dst, llvm::Value* src); llvm::Constant* LLVM_DtoStructInitializer(StructInitializer* si); llvm::FunctionType* LLVM_DtoFunctionType(Type* t, const llvm::Type* thisparam = 0); llvm::FunctionType* LLVM_DtoFunctionType(FuncDeclaration* fdecl); llvm::StructType* LLVM_DtoDelegateType(Type* t); llvm::Value* LLVM_DtoNullDelegate(llvm::Value* v); llvm::Value* LLVM_DtoDelegateCopy(llvm::Value* dst, llvm::Value* src); llvm::GlobalValue::LinkageTypes LLVM_DtoLinkage(PROT prot, uint stc); unsigned LLVM_DtoCallingConv(LINK l); llvm::Value* LLVM_DtoPointedType(llvm::Value* ptr, llvm::Value* val); llvm::Value* LLVM_DtoBoolean(llvm::Value* val); const llvm::Type* LLVM_DtoSize_t(); void LLVM_DtoMain(); void LLVM_DtoCallClassDtors(TypeClass* tc, llvm::Value* instance); void LLVM_DtoInitClass(TypeClass* tc, llvm::Value* dst); llvm::Constant* LLVM_DtoInitializer(Type* type, Initializer* init); llvm::Function* LLVM_DeclareMemSet32(); llvm::Function* LLVM_DeclareMemSet64(); llvm::Function* LLVM_DeclareMemCpy32(); llvm::Function* LLVM_DeclareMemCpy64(); #include "enums.h"