Mercurial > projects > ldc
view gen/complex.h @ 212:4c2689d57ba4 trunk
[svn r228] Fixed: when new'ing basic types, the storage was not default initialized.
Fixed: the tango/lib/compiler/llvmdc/llvmdc.mak makefile was a bit incorrect.
Changed: the basic gc is now the default.
Changed: renamed a few temporary names in the LLVM IR output.
author | lindquist |
---|---|
date | Tue, 27 May 2008 22:14:24 +0200 |
parents | a64becf2a702 |
children | 7816aafeea3c |
line wrap: on
line source
#ifndef LLVMDC_GEN_COMPLEX_H #define LLVMDC_GEN_COMPLEX_H 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); llvm::Constant* DtoComplexShuffleMask(unsigned a, unsigned b); llvm::Value* DtoRealPart(DValue* val); llvm::Value* 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 DtoGetComplexParts(DValue* c, llvm::Value*& re, llvm::Value*& im); DValue* DtoComplexAdd(Type* type, DValue* lhs, DValue* rhs); DValue* DtoComplexSub(Type* type, DValue* lhs, DValue* rhs); 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); #endif // LLVMDC_GEN_COMPLEX_H