comparison gen/tollvm.h @ 945:03d7c4aac654

SWITCHED TO LLVM 2.5 ! 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 .
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 08 Feb 2009 05:26:54 +0100
parents 8e6135be6999
children 2667e3a145be
comparison
equal deleted inserted replaced
944:eb310635d80e 945:03d7c4aac654
90 LLConstant* getNullValue(const LLType* t); 90 LLConstant* getNullValue(const LLType* t);
91 91
92 // type sizes 92 // type sizes
93 size_t getTypeBitSize(const LLType* t); 93 size_t getTypeBitSize(const LLType* t);
94 size_t getTypeStoreSize(const LLType* t); 94 size_t getTypeStoreSize(const LLType* t);
95 size_t getABITypeSize(const LLType* t); 95 size_t getTypePaddedSize(const LLType* t);
96 96
97 // type alignments 97 // type alignments
98 unsigned char getABITypeAlign(const LLType* t); 98 unsigned char getABITypeAlign(const LLType* t);
99 unsigned char getPrefTypeAlign(const LLType* t); 99 unsigned char getPrefTypeAlign(const LLType* t);
100 100
103 103
104 // pair type helpers 104 // pair type helpers
105 LLValue* DtoAggrPair(const LLType* type, LLValue* V1, LLValue* V2, const char* name = 0); 105 LLValue* DtoAggrPair(const LLType* type, LLValue* V1, LLValue* V2, const char* name = 0);
106 LLValue* DtoAggrPair(LLValue* V1, LLValue* V2, const char* name = 0); 106 LLValue* DtoAggrPair(LLValue* V1, LLValue* V2, const char* name = 0);
107 LLValue* DtoAggrPaint(LLValue* aggr, const LLType* as); 107 LLValue* DtoAggrPaint(LLValue* aggr, const LLType* as);
108 LLValue* DtoAggrPairSwap(LLValue* aggr);
108 109
109 /** 110 /**
110 * Generates a call to llvm.memset.i32 (or i64 depending on architecture). 111 * Generates a call to llvm.memset.i32 (or i64 depending on architecture).
111 * @param dst Destination memory. 112 * @param dst Destination memory.
112 * @param nbytes Number of bytes to overwrite. 113 * @param nbytes Number of bytes to overwrite.