comparison gen/llvmhelpers.h @ 1503:cc5fee7836dc

Made is and !is use the same numeric comparison as == and !=, fixes #328 Factored out common code from EqualExp and IdentityExp into DtoBinNumericEquals in binexp.cpp.
author Christian Kamm <kamm incasoftware de>
date Tue, 16 Jun 2009 23:00:27 +0200
parents 4f7d50c744ed
children 1e5a14691e77
comparison
equal deleted inserted replaced
1502:2292878925f4 1503:cc5fee7836dc
117 // these binops need an explicit result type to handling 117 // these binops need an explicit result type to handling
118 // to give 'ifloat op float' and 'float op ifloat' the correct type 118 // to give 'ifloat op float' and 'float op ifloat' the correct type
119 DValue* DtoBinMul(Type* resulttype, DValue* lhs, DValue* rhs); 119 DValue* DtoBinMul(Type* resulttype, DValue* lhs, DValue* rhs);
120 DValue* DtoBinDiv(Type* resulttype, DValue* lhs, DValue* rhs); 120 DValue* DtoBinDiv(Type* resulttype, DValue* lhs, DValue* rhs);
121 DValue* DtoBinRem(Type* resulttype, DValue* lhs, DValue* rhs); 121 DValue* DtoBinRem(Type* resulttype, DValue* lhs, DValue* rhs);
122 LLValue* DtoBinNumericEquals(Loc loc, DValue* lhs, DValue* rhs, TOK op);
122 123
123 // target stuff 124 // target stuff
124 void findDefaultTarget(); 125 void findDefaultTarget();
125 126
126 /// Fixup an overloaded intrinsic name string. 127 /// Fixup an overloaded intrinsic name string.