From a6fec9fe6052d2ec74fec4417be2fec45dea0df0 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Fri, 14 Feb 2020 12:01:03 -0800 Subject: abc9_ops: use TimingInfo for -prep_{lut,box} too --- kernel/timinginfo.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/timinginfo.h b/kernel/timinginfo.h index f31fbaab4..b1a1b85ac 100644 --- a/kernel/timinginfo.h +++ b/kernel/timinginfo.h @@ -56,7 +56,7 @@ struct TimingInfo } } - void setup_module(RTLIL::Module *module) + const ModuleTiming& setup_module(RTLIL::Module *module) { auto r = data.insert(module->name); log_assert(r.second); @@ -146,10 +146,13 @@ struct TimingInfo } } } + + return t; } decltype(data)::const_iterator find (RTLIL::IdString module_name) const { return data.find(module_name); } decltype(data)::const_iterator end () const { return data.end(); } + int count (RTLIL::IdString module_name) const { return data.count(module_name); } }; YOSYS_NAMESPACE_END -- cgit v1.2.3