Mercurial > projects > ldc
diff gen/complex.h @ 213:7816aafeea3c trunk
[svn r229] Updated the object.d implementation to the latest Tango.
Fixed a bunch of the built-in typeinfos for arrays, they did not inherit TypeInfo_Array.
Applied patch to tango/text/convert/Layout.d by fvbommel, closes #47 .
Cleaned up some type code.
Replaced uses of llvm::Type with LLType (a typedef), same for Value and Constant.
Fixed a few cases where typeinfo for user structs could be emitted multiple times, seems to still be some cases of this :/
author | lindquist |
---|---|
date | Fri, 30 May 2008 19:32:04 +0200 |
parents | a64becf2a702 |
children | 0806379a5eca |
line wrap: on
line diff
--- a/gen/complex.h Tue May 27 22:14:24 2008 +0200 +++ b/gen/complex.h Fri May 30 19:32:04 2008 +0200 @@ -4,20 +4,20 @@ const llvm::StructType* DtoComplexType(Type* t); const llvm::Type* DtoComplexBaseType(Type* t); -llvm::Constant* DtoConstComplex(Type* t, llvm::Constant* re, llvm::Constant* im); -llvm::Constant* DtoConstComplex(Type* t, long double re, long double im); -llvm::Constant* DtoUndefComplex(Type* _ty); +LLConstant* DtoConstComplex(Type* t, LLConstant* re, LLConstant* im); +LLConstant* DtoConstComplex(Type* t, long double re, long double im); +LLConstant* DtoUndefComplex(Type* _ty); -llvm::Constant* DtoComplexShuffleMask(unsigned a, unsigned b); +LLConstant* DtoComplexShuffleMask(unsigned a, unsigned b); -llvm::Value* DtoRealPart(DValue* val); -llvm::Value* DtoImagPart(DValue* val); +LLValue* DtoRealPart(DValue* val); +LLValue* DtoImagPart(DValue* val); DValue* DtoComplex(Type* to, DValue* val); -void DtoComplexAssign(llvm::Value* l, llvm::Value* r); -void DtoComplexSet(llvm::Value* c, llvm::Value* re, llvm::Value* im); +void DtoComplexAssign(LLValue* l, LLValue* r); +void DtoComplexSet(LLValue* c, LLValue* re, LLValue* im); -void DtoGetComplexParts(DValue* c, llvm::Value*& re, llvm::Value*& im); +void DtoGetComplexParts(DValue* c, LLValue*& re, LLValue*& im); DValue* DtoComplexAdd(Type* type, DValue* lhs, DValue* rhs); DValue* DtoComplexSub(Type* type, DValue* lhs, DValue* rhs); @@ -25,6 +25,6 @@ DValue* DtoComplexDiv(Type* type, DValue* lhs, DValue* rhs); DValue* DtoComplexNeg(Type* type, DValue* val); -llvm::Value* DtoComplexEquals(TOK op, DValue* lhs, DValue* rhs); +LLValue* DtoComplexEquals(TOK op, DValue* lhs, DValue* rhs); #endif // LLVMDC_GEN_COMPLEX_H