From 05483619f0b776eda2f96ca7a9bfb8cdc3732a0e Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 9 Aug 2013 12:42:32 +0200 Subject: Some fixes to improve determinism --- kernel/rtlil.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kernel/rtlil.h') diff --git a/kernel/rtlil.h b/kernel/rtlil.h index f5e8ae477..4a4e82356 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -129,6 +129,12 @@ namespace RTLIL #define NEW_ID \ RTLIL::new_id(__FILE__, __LINE__, __FUNCTION__) + template struct sort_by_name { + bool operator()(T *a, T *b) const { + return a->name < b->name; + } + }; + // see calc.cc for the implementation of this functions RTLIL::Const const_not (const RTLIL::Const &arg1, const RTLIL::Const &arg2, bool signed1, bool signed2, int result_len); RTLIL::Const const_and (const RTLIL::Const &arg1, const RTLIL::Const &arg2, bool signed1, bool signed2, int result_len); -- cgit v1.2.3