Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
96:ce7ed8f59b99 | 97:c4e161556a21 |
---|---|
87 llvm::Argument* isaArgument(llvm::Value* v); | 87 llvm::Argument* isaArgument(llvm::Value* v); |
88 | 88 |
89 // basic operations | 89 // basic operations |
90 void DtoAssign(DValue* lhs, DValue* rhs); | 90 void DtoAssign(DValue* lhs, DValue* rhs); |
91 | 91 |
92 // casts | |
93 DValue* DtoCastInt(DValue* val, Type* to); | |
94 DValue* DtoCastPtr(DValue* val, Type* to); | |
95 DValue* DtoCastFloat(DValue* val, Type* to); | |
96 DValue* DtoCastArray(DValue* val, Type* to); | |
97 DValue* DtoCastClass(DValue* val, Type* to); | |
98 DValue* DtoCast(DValue* val, Type* to); | |
99 | |
92 // binary operations | 100 // binary operations |
93 DValue* DtoBinAdd(DValue* lhs, DValue* rhs); | 101 DValue* DtoBinAdd(DValue* lhs, DValue* rhs); |
94 DValue* DtoBinSub(DValue* lhs, DValue* rhs); | 102 DValue* DtoBinSub(DValue* lhs, DValue* rhs); |
95 DValue* DtoBinMul(DValue* lhs, DValue* rhs); | 103 DValue* DtoBinMul(DValue* lhs, DValue* rhs); |
96 DValue* DtoBinDiv(DValue* lhs, DValue* rhs); | 104 DValue* DtoBinDiv(DValue* lhs, DValue* rhs); |