mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-18 09:49:02 +02:00
[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 :/
This commit is contained in:
@@ -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* DtoComplexMul(Type* type, DValue* lhs, DValue* rhs);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user