comparison gen/llvmhelpers.h @ 778:4adf0f742896

Get rid of DtoBoolean - use DtoCast(... Type::tbool) instead. Fixed some casts to bool that were using truncation.
author Christian Kamm <kamm incasoftware de>
date Sat, 22 Nov 2008 18:35:52 +0100
parents 46d0755451a4
children 6e7a4c3b64d2
comparison
equal deleted inserted replaced
777:961e249eb2aa 778:4adf0f742896
106 DValue* DtoBinRem(Type* resulttype, DValue* lhs, DValue* rhs); 106 DValue* DtoBinRem(Type* resulttype, DValue* lhs, DValue* rhs);
107 107
108 // target stuff 108 // target stuff
109 void findDefaultTarget(); 109 void findDefaultTarget();
110 110
111 /// Converts any value to a boolean (llvm i1)
112 LLValue* DtoBoolean(Loc& loc, DValue* dval);
113
114 /// get the default initializer of the type 111 /// get the default initializer of the type
115 LLConstant* DtoDefaultInit(Type* t); 112 LLConstant* DtoDefaultInit(Type* t);
116 113
117 // fixup an overloaded intrinsic name string 114 // fixup an overloaded intrinsic name string
118 void DtoOverloadedIntrinsicName(TemplateInstance* ti, TemplateDeclaration* td, std::string& name); 115 void DtoOverloadedIntrinsicName(TemplateInstance* ti, TemplateDeclaration* td, std::string& name);