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 a feature to control logging via an annotation on annotated IR ob… #3882

Merged
merged 3 commits into from
Feb 10, 2023

Conversation

hanw
Copy link
Contributor

@hanw hanw commented Feb 9, 2023

…ject only

To use this feature, backend can set the enableLoggingGlobally to false based on a command line flag or a custom annotation, and set the enableLoggingInContext to true on the annotated IR class.

This helps to filter excessive logging in our backend to focus on certain instance of IR class that is touched by a pass.

@mihaibudiu
Copy link
Contributor

How about a test case using these?

@mihaibudiu
Copy link
Contributor

Don't forget to clang-format

@hanw hanw force-pushed the hanw/logging-annotation branch 2 times, most recently from e6d0fa5 to 87c6e94 Compare February 10, 2023 00:26
@hanw hanw force-pushed the hanw/logging-annotation branch 3 times, most recently from 3b2bf30 to b373aac Compare February 10, 2023 15:38
@fruffy
Copy link
Collaborator

fruffy commented Feb 10, 2023

If you install pip3 install --user "clang-format==15.0.4" and then run make clang-format-fix-errors you should get the same result as what CI checks for.

The MacOS tests are failing for an unrelated reason, which needs to be fixed.

@hanw
Copy link
Contributor Author

hanw commented Feb 10, 2023

Looks like the macos issue is gating a few other PRs as well?

@fruffy
Copy link
Collaborator

fruffy commented Feb 10, 2023

I think right now PRs can still be merged despite the test failing.

@hanw hanw merged commit 93d44b1 into main Feb 10, 2023
@fruffy fruffy deleted the hanw/logging-annotation branch February 16, 2023 23:17
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