summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/util/BitSetSpec.scala
diff options
context:
space:
mode:
authormergify[bot]2022-11-08 07:05:53 +0000
committerGitHub2022-11-08 07:05:53 +0000
commitf2ef3a8ee378a307661bd598cd44d4b895b9352e (patch)
treedd99e65541126cea7518701540d12cfd7ff06ab0 /src/test/scala/chiselTests/util/BitSetSpec.scala
parent76ada881d077118384907f498576b3b338291ff6 (diff)
Improve Record.bind and Detect Records with unstable elements (backport #2829) (#2831)
* Add Aggregate.elementsIterator and micro-optimize elementsIterator provides a more efficient API for iterating on the elements of Aggregates. It is especially useful for Records where getElements returns a Seq and thus eagerly constructs a new datastructure which may then just be iterated on anyway. This new elementsIterator API is then used throughout the codebase where it makes sense. Also change Vec.getElements to just return the underlying self instead of constructing a new Seq. (cherry picked from commit defa440b349031475daeff4024fad04925cccee6) # Conflicts: # core/src/main/scala/chisel3/Aggregate.scala # core/src/main/scala/chisel3/Module.scala # core/src/main/scala/chisel3/experimental/Trace.scala * Move Aggregate.bind inline into Record.bind Vec overrides bind and does not call the version in Aggregate so the version in Aggregate is misleading in that its only ever used by Records. Now there is no version in Aggregate and the actual functionality and use is more clear. (cherry picked from commit b054c30ba47026cb2a9b28c696a0a0a58b1e2ee7) # Conflicts: # core/src/main/scala/chisel3/Aggregate.scala * Extract and optimize duplicate checking Record.bind This replaces an immutable.Map with a single mutable.HashSet and saves the allocation of # elements Seqs. (cherry picked from commit 832ea52bc23424bb75b9654422b725a9cafaef40) # Conflicts: # core/src/main/scala/chisel3/Aggregate.scala * Add check for Records that define def elements (cherry picked from commit a4f223415de19e2a732e0b6a8fe681f706a19a56) * Resolve backport conflicts * Make elementsIterator final and package private * Waive false MiMa failure Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to 'src/test/scala/chiselTests/util/BitSetSpec.scala')
0 files changed, 0 insertions, 0 deletions