diff options
| author | Guray Ozen <guray.ozen@gmail.com> | 2025-10-14 17:56:17 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-14 17:56:17 +0200 | 
| commit | 66bf252707d79be4bb1d61e1b2ff6dc71a4ccced (patch) | |
| tree | 62de932c62ab945f91c19261691648b364bb3bfb /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
| parent | e156d1ee6cc3ce75f9da70ba0aab1d91401c6e47 (diff) | |
| download | llvm-66bf252707d79be4bb1d61e1b2ff6dc71a4ccced.zip llvm-66bf252707d79be4bb1d61e1b2ff6dc71a4ccced.tar.gz llvm-66bf252707d79be4bb1d61e1b2ff6dc71a4ccced.tar.bz2 | |
[MLIR] Implement remark emitting policies in MLIR (#161202)
This update introduces two new remark emitting policies:
1. `RemarkEmittingPolicyAll`, which emits all remarks,
2. `RemarkEmittingPolicyFinal`, which only emits final remarks after
processing.
The `RemarkEngine` is modified to support these policies, allowing for
more flexible remark handling based on user configuration.
PR also adds flag to `mlir-opt`
```
  --remark-policy=<value>                                    - Specify the policy for remark output.
    =all                                                     -   Print all remarks
    =final                                                   -   Print final remarks
```
Relanding https://github.com/llvm/llvm-project/pull/160526
This PR requires RemarkEngine to be finalize manually. So here is usage:
```
MLIRContext ctx;
ctx.setRemarkEngine(...)
...
ctx.getRemarkEngine().shutdown() <-- PR adds this, it is required when the emission policy is final
```
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions
