comparison gen/tollvm.h @ 323:0d52412d5b1a trunk

[svn r344] Fixed some very minor issues with the usage listing when calling llvmdc with no arguments. Changed the way moduleinfo is registered to use the same approach as DMD, this eliminates the need for correct linking order and should make the way for using a natively compiled runtime library. This should speed up linking tremendously and should now be possible. Fixed the llvm.used array to only be emitted if really necessary.
author lindquist
date Wed, 09 Jul 2008 23:43:51 +0200
parents d59c363fccad
children 7086a84ab3d6
comparison
equal deleted inserted replaced
322:1aaf6ff7f685 323:0d52412d5b1a
38 38
39 // some types 39 // some types
40 const LLType* DtoSize_t(); 40 const LLType* DtoSize_t();
41 const LLStructType* DtoInterfaceInfoType(); 41 const LLStructType* DtoInterfaceInfoType();
42 const LLStructType* DtoMutexType(); 42 const LLStructType* DtoMutexType();
43 const LLStructType* DtoModuleReferenceType();
43 44
44 // getelementptr helpers 45 // getelementptr helpers
45 LLValue* DtoGEP1(LLValue* ptr, LLValue* i0, const char* var=NULL, llvm::BasicBlock* bb=NULL); 46 LLValue* DtoGEP1(LLValue* ptr, LLValue* i0, const char* var=NULL, llvm::BasicBlock* bb=NULL);
46 LLValue* DtoGEP(LLValue* ptr, LLValue* i0, LLValue* i1, const char* var=NULL, llvm::BasicBlock* bb=NULL); 47 LLValue* DtoGEP(LLValue* ptr, LLValue* i0, LLValue* i1, const char* var=NULL, llvm::BasicBlock* bb=NULL);
47 LLValue* DtoGEPi(LLValue* ptr, const DStructIndexVector& src, const char* var=NULL, llvm::BasicBlock* bb=NULL); 48 LLValue* DtoGEPi(LLValue* ptr, const DStructIndexVector& src, const char* var=NULL, llvm::BasicBlock* bb=NULL);