aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-01-31 16:10:27 +0100
committerClifford Wolf <clifford@clifford.at>2016-01-31 16:10:27 +0100
commitaed8fb353cf164487962100776da0d4e2d5a97f0 (patch)
tree886edb949dc7bd71e6bb3108c7d4d4363499c60b /kernel/rtlil.h
parentfe97110be0179b522ec03f942f47c4cc4174c590 (diff)
parent43756559d8b2e0c19deaa95b45832c1acb837907 (diff)
downloadyosys-aed8fb353cf164487962100776da0d4e2d5a97f0.tar.gz
yosys-aed8fb353cf164487962100776da0d4e2d5a97f0.tar.bz2
yosys-aed8fb353cf164487962100776da0d4e2d5a97f0.zip
Merge branch 'rtlil_remove2_speedup' of https://github.com/kc8apf/yosys
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 7b669536e..5dff5579f 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -192,12 +192,12 @@ namespace RTLIL
return std::string(global_id_storage_.at(index_));
}
- bool operator<(IdString rhs) const {
+ bool operator<(const IdString &rhs) const {
return index_ < rhs.index_;
}
- bool operator==(IdString rhs) const { return index_ == rhs.index_; }
- bool operator!=(IdString rhs) const { return index_ != rhs.index_; }
+ bool operator==(const IdString &rhs) const { return index_ == rhs.index_; }
+ bool operator!=(const IdString &rhs) const { return index_ != rhs.index_; }
// The methods below are just convenience functions for better compatibility with std::string.
@@ -670,6 +670,8 @@ public:
void remove(const pool<RTLIL::SigBit> &pattern, RTLIL::SigSpec *other) const;
void remove2(const pool<RTLIL::SigBit> &pattern, RTLIL::SigSpec *other);
+ void remove2(const std::set<RTLIL::SigBit> &pattern, RTLIL::SigSpec *other);
+
void remove(int offset, int length = 1);
void remove_const();