aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2019-10-18 10:52:50 +0200
committerGitHub <noreply@github.com>2019-10-18 10:52:50 +0200
commit0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc (patch)
tree24f6a3cd2c4fa19a41d90cd57b0908b668efeb21 /kernel/rtlil.h
parent0d60902fd97bba4f231f8f600434b8a69562ffff (diff)
parente0a67fce12647b4db7125d33264847c0a3781105 (diff)
downloadyosys-0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc.tar.gz
yosys-0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc.tar.bz2
yosys-0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc.zip
Merge branch 'master' into eddie/pr1352
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;