Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Apply &on-heap selectively #1781

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change a set to an unordered_set.
For efficiency and consistency.
rsmmr committed Aug 9, 2024
commit 35aa3c015584a59fc811114dfef2080ecd82d585
2 changes: 1 addition & 1 deletion spicy/toolchain/src/compiler/codegen/codegen.cc
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ namespace spicy::detail::codegen {

// Information collected from the AST in an initial pass for any code generation.
struct ASTInfo {
std::set<ID> uses_sync_advance; // type ID of units implementing %sync_advance
std::unordered_set<ID> uses_sync_advance; // type ID of units implementing %sync_advance
std::unordered_set<ID>
units_with_references; // type IDs if any unit types that are wrapped into a reference somewhere
};