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

instrument: Clean up generation code #5090

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

jeremyg-lunarg
Copy link
Contributor

@jeremyg-lunarg jeremyg-lunarg commented Jan 30, 2023

  • Make more use of InstructionBuilder instruction helper methods
  • Use MakeUnique<>() rather than new
  • Add InstrumentPass::GenReadFunctionCall() which optimizes function calls in a loop with constant arguments and no side effects.

This is a prepatory change for future work on the instrumentation code which will add more generated functions.

-Make more use of InstructionBuilder instruction helper methods
-Use MakeUnique<>() rather than new
-Add InstrumentPass::GenReadFunctionCall() which optimizes function
calls in a loop with constant arguments and no side effects.

This is a prepatory change for future work on the instrumentation
code which will add more generated functions.
Copy link
Contributor

@greg-lunarg greg-lunarg left a comment

Choose a reason for hiding this comment

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

LGTM.

@jeremyg-lunarg
Copy link
Contributor Author

@s-perron can this merge now? Thanks!

@s-perron s-perron merged commit 5890763 into KhronosGroup:main Feb 3, 2023
@jeremyg-lunarg jeremyg-lunarg deleted the jeremyg-inst-cleanup branch August 8, 2023 19:41
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.

3 participants