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

Add blacklist to prevent inlining #40

Merged
merged 4 commits into from
Feb 24, 2020
Merged

Add blacklist to prevent inlining #40

merged 4 commits into from
Feb 24, 2020

Conversation

leonardt
Copy link
Owner

Enables the user to prevent a wire from being inlined. Will be used by coreir to preserve intermediate wires.

public:
AssignInliner() : wire_blacklist() {};
AssignInliner(std::set<std::string> wire_blacklist) :
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use explicit keyword for 1-arg constructors

if (this->wire_blacklist.count(key)) {
return false;
}
std::map<std::string, std::unique_ptr<Expression>>::iterator it =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: auto for stuff like this is pretty useful

@leonardt leonardt merged commit 9ae39d2 into master Feb 24, 2020
@leonardt leonardt deleted the inline-wire-blacklist branch February 24, 2020 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants