Mercurial > projects > ldc
diff gen/tollvm.h @ 97:c4e161556a21 trunk
[svn r101] Split up CastExp into several smaller utility functions.
author | lindquist |
---|---|
date | Wed, 14 Nov 2007 20:18:01 +0100 |
parents | ce7ed8f59b99 |
children | 5071469303d4 |
line wrap: on
line diff
--- a/gen/tollvm.h Mon Nov 12 07:58:44 2007 +0100 +++ b/gen/tollvm.h Wed Nov 14 20:18:01 2007 +0100 @@ -89,6 +89,14 @@ // basic operations void DtoAssign(DValue* lhs, DValue* rhs); +// casts +DValue* DtoCastInt(DValue* val, Type* to); +DValue* DtoCastPtr(DValue* val, Type* to); +DValue* DtoCastFloat(DValue* val, Type* to); +DValue* DtoCastArray(DValue* val, Type* to); +DValue* DtoCastClass(DValue* val, Type* to); +DValue* DtoCast(DValue* val, Type* to); + // binary operations DValue* DtoBinAdd(DValue* lhs, DValue* rhs); DValue* DtoBinSub(DValue* lhs, DValue* rhs);