-
Notifications
You must be signed in to change notification settings - Fork 30
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
Remove optimizer context #990
Remove optimizer context #990
Conversation
launch jenkins |
launch jenkins |
launch jenkins |
@jdahm could you provide some guidance on how to review it? If you write a list of things that changed (e.g. where the logic of the OptimizerContext was moved to) we can focus on those points. thx! |
@Stagno no problem. Here it is:
Other changes:
|
@Stagno @mroethlin Let me know if you would like to walk through the code together. I'd like to get this merged soon, as most other PRs will conflict with it. Once it's merged we can go ahead and split the projects (finally!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just few minor points to clarify, other than that it looks fine!
const IIRSerializer::Format serializationKind = | ||
options.SerializeIIR ? IIRSerializer::parseFormatString(options.IIRFormat) | ||
: IIRSerializer::Format::Json; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we ever used a serialization format different from json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is just defaulting to Json unless we specify the output format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe @twicki thinks we should keep the byte IO option. Thoughts @twicki, @eddie-c-davis?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would agree, no harm in keeping that option.
launch jenkins |
@Stagno Sorry for the delay! It should be ready for a final review now. Please merge overnight if you think it's ready to go! |
Technical Description
Removes the OptimizerContext object.
OptimizerContext.{cpp,h}
becameLowering.{cpp,h}
, and the salient parts were namedtoStencilInstantiation
andrestoreIIR
. The latter is only used in the IIR builder.Other changes:
PassManager
has a default constructorOptimizerContext
toOptimizer/Options.inc
OptimizerContext
Testing
CTests are updated by this PR.