mirror of
https://github.com/verilator/verilator.git
synced 2026-10-05 17:43:31 +02:00
Split V3Hashed to V3Hasher and V3DupFinder (#2967)
V3Hasher is responsible for computing AstNode hashes, while V3DupFinder can be used to find duplicate trees based on hashes. Interface of V3DupFinder simplified somewhat. No functional change intended at this point, but hash computation might differ in minor details, this however should have no perceivable effect on output/runtime. Implements (#2964)
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include "V3Global.h"
|
||||
#include "V3String.h"
|
||||
#include "V3ProtectLib.h"
|
||||
#include "V3Hashed.h"
|
||||
#include "V3Hasher.h"
|
||||
#include "V3Task.h"
|
||||
|
||||
#include <list>
|
||||
@@ -87,7 +87,7 @@ private:
|
||||
|
||||
iterateChildren(nodep);
|
||||
|
||||
V3Hash hash = V3Hashed::uncachedHash(m_cfilep);
|
||||
V3Hash hash = V3Hasher::uncachedHash(m_cfilep);
|
||||
m_hashValuep->addText(fl, cvtToStr(hash.fullValue()) + ";\n");
|
||||
m_cHashValuep->addText(fl, cvtToStr(hash.fullValue()) + "U;\n");
|
||||
m_foundTop = true;
|
||||
|
||||
Reference in New Issue
Block a user