diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2019-10-18 10:53:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-18 10:53:56 +0200 |
commit | 66fca65b58bfb944cad45da5836613726498e4b7 (patch) | |
tree | a78b5d92952ea9f95623bb3daf8028d2402d023b /kernel/rtlil.h | |
parent | 46af9a0ff7727c2d47b1dc12501e3328cba1f2e9 (diff) | |
parent | 5ffb0053ec7d53ffc5c57e3277bfbab5d3fddb54 (diff) | |
download | yosys-66fca65b58bfb944cad45da5836613726498e4b7.tar.gz yosys-66fca65b58bfb944cad45da5836613726498e4b7.tar.bz2 yosys-66fca65b58bfb944cad45da5836613726498e4b7.zip |
Merge branch 'master' into mmicko/anlogic
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r-- | kernel/rtlil.h | 3 |
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; |