aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-10-04 17:39:08 -0700
committerEddie Hung <eddie@fpgeh.com>2019-10-04 17:39:08 -0700
commitbbc0e06af3db4da924a3a92ced85adc87cf6abb6 (patch)
treea96251669139f7026733d9583d766ce6b244a258 /kernel/rtlil.h
parentd4212d128b5985cf09f5e7f14bc06e7323e644ac (diff)
parent0acc51c3d82f65f73fa9e475c6fc41beabd925a6 (diff)
downloadyosys-bbc0e06af3db4da924a3a92ced85adc87cf6abb6.tar.gz
yosys-bbc0e06af3db4da924a3a92ced85adc87cf6abb6.tar.bz2
yosys-bbc0e06af3db4da924a3a92ced85adc87cf6abb6.zip
Merge remote-tracking branch 'origin/master' into xaig_dff
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index c08653b65..e5b24cc02 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -609,8 +609,11 @@ struct RTLIL::Const
std::string decode_string() const;
inline int size() const { return bits.size(); }
+ inline bool empty() const { return bits.empty(); }
inline RTLIL::State &operator[](int index) { return bits.at(index); }
inline const RTLIL::State &operator[](int index) const { return bits.at(index); }
+ inline decltype(bits)::iterator begin() { return bits.begin(); }
+ inline decltype(bits)::iterator end() { return bits.end(); }
bool is_fully_zero() const;
bool is_fully_ones() const;