Mercurial > projects > ldc
diff gen/tollvm.h @ 104:4d1e9eb001e0 trunk
[svn r108] Now basic suppport for complex types. =,+,-,*,/ are supported.
author | lindquist |
---|---|
date | Mon, 19 Nov 2007 02:58:58 +0100 |
parents | 027b8d8b71ec |
children | 5b5194b25f33 |
line wrap: on
line diff
--- a/gen/tollvm.h Sun Nov 18 08:25:07 2007 +0100 +++ b/gen/tollvm.h Mon Nov 19 02:58:58 2007 +0100 @@ -22,8 +22,6 @@ const llvm::Type* DtoSize_t(); -const llvm::StructType* DtoComplexType(const llvm::Type* base); - llvm::Constant* DtoConstInitializer(Type* type, Initializer* init); llvm::Constant* DtoConstFieldInitializer(Type* type, Initializer* init); DValue* DtoInitializer(Initializer* init); @@ -50,6 +48,8 @@ llvm::ConstantInt* DtoConstSize_t(size_t); llvm::ConstantInt* DtoConstUint(unsigned i); llvm::ConstantInt* DtoConstInt(int i); +llvm::ConstantFP* DtoConstFP(Type* t, long double value); + llvm::Constant* DtoConstString(const char*); llvm::Constant* DtoConstStringPtr(const char* str, const char* section = 0); llvm::Constant* DtoConstBool(bool); @@ -98,6 +98,7 @@ DValue* DtoCastInt(DValue* val, Type* to); DValue* DtoCastPtr(DValue* val, Type* to); DValue* DtoCastFloat(DValue* val, Type* to); +DValue* DtoCastComplex(DValue* val, Type* to); DValue* DtoCastClass(DValue* val, Type* to); DValue* DtoCast(DValue* val, Type* to);