mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-02-19 08:43:01 +00:00
operand: Implement operand hashing and use hashed set for declarations
Instead of manually searching each element in the declarations vector, use an unordered_set to emplace new declarations avoiding repetition.
This commit is contained in:
@@ -933,7 +933,8 @@ private:
|
||||
std::vector<std::unique_ptr<Op>> execution_modes;
|
||||
std::vector<std::unique_ptr<Op>> debug;
|
||||
std::vector<std::unique_ptr<Op>> annotations;
|
||||
std::vector<std::unique_ptr<Op>> declarations;
|
||||
std::unordered_set<std::unique_ptr<Op>> declarations;
|
||||
std::vector<Id> sorted_declarations;
|
||||
|
||||
std::vector<Id> global_variables;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user