diff gen/tollvm.h @ 344:e20ce6d8d374 trunk

[svn r365] Implemented raw struct equality comparison, uses C memcmp. Renamed DtoDelegateCompare to DtoDelegateEquals, for consistency with the other equality helpers.
author lindquist
date Sun, 13 Jul 2008 04:11:08 +0200
parents 7086a84ab3d6
children 8014dbd24605
line wrap: on
line diff
--- a/gen/tollvm.h	Sun Jul 13 03:02:15 2008 +0200
+++ b/gen/tollvm.h	Sun Jul 13 04:11:08 2008 +0200
@@ -27,7 +27,7 @@
 
 // delegate helpers
 const LLStructType* DtoDelegateType(Type* t);
-LLValue* DtoDelegateCompare(TOK op, LLValue* lhs, LLValue* rhs);
+LLValue* DtoDelegateEquals(TOK op, LLValue* lhs, LLValue* rhs);
 
 // return linkage type for symbol using the current ir state for context
 LLGlobalValue::LinkageTypes DtoLinkage(Dsymbol* sym);
@@ -114,6 +114,11 @@
 void DtoMemCpy(LLValue* dst, LLValue* src, LLValue* nbytes);
 
 /**
+ * Generates a call to C memcmp.
+ */
+LLValue* DtoMemCmp(LLValue* lhs, LLValue* rhs, LLValue* nbytes);
+
+/**
  * The same as DtoMemSetZero but figures out the size itself by "dereferencing" the v pointer once.
  * @param v Destination memory.
  */