<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/lib/Basic/ProfileList.cpp, branch users/ojhunt/ptrauth-additions</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[NFC][SpecialCaseList] Hide more details in private section (#162302)</title>
<updated>2025-10-08T20:22:22+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2025-10-08T20:22:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=857961d12ae953e1fe7d3ec452e6b0c5a43987fd'/>
<id>857961d12ae953e1fe7d3ec452e6b0c5a43987fd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "fix: replace report_fatal_error with Diags and exit" (#150662)</title>
<updated>2025-07-25T17:24:00+00:00</updated>
<author>
<name>Aaron Ballman</name>
<email>aaron@aaronballman.com</email>
</author>
<published>2025-07-25T17:24:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=479ae4aa8fe894dbb00a895b98620120c5e06769'/>
<id>479ae4aa8fe894dbb00a895b98620120c5e06769</id>
<content type='text'>
Reverts llvm/llvm-project#147959</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reverts llvm/llvm-project#147959</pre>
</div>
</content>
</entry>
<entry>
<title>fix: replace report_fatal_error with Diags and exit (#147959)</title>
<updated>2025-07-25T14:20:30+00:00</updated>
<author>
<name>woruyu</name>
<email>99597449+woruyu@users.noreply.github.com</email>
</author>
<published>2025-07-25T14:20:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9d3dd8efe07180a6b261ae617ffc1ee5e26419c9'/>
<id>9d3dd8efe07180a6b261ae617ffc1ee5e26419c9</id>
<content type='text'>
report_fatal_error is not a good way to report diagnostics to the users, so this switches to using actual diagnostic reporting mechanisms instead.

Fixes #147187</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
report_fatal_error is not a good way to report diagnostics to the users, so this switches to using actual diagnostic reporting mechanisms instead.

Fixes #147187</pre>
</div>
</content>
</entry>
<entry>
<title>Fix and reapply IR PGO support for Flang (#142892)</title>
<updated>2025-06-13T18:05:16+00:00</updated>
<author>
<name>FYK</name>
<email>fanju110@163.com</email>
</author>
<published>2025-06-13T18:05:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=52d34865b9db3485c8a671a88cc571270349f720'/>
<id>52d34865b9db3485c8a671a88cc571270349f720</id>
<content type='text'>
This PR resubmits the changes from #136098, which was previously
reverted due to a build failure during the linking stage:

```
undefined reference to `llvm::DebugInfoCorrelate'  
undefined reference to `llvm::ProfileCorrelate'
```

The root cause was that `llvm/lib/Frontend/Driver/CodeGenOptions.cpp`
references symbols from the `Instrumentation` component, but the
`LINK_COMPONENTS` in the `llvm/lib/Frontend/CMakeLists.txt` for
`LLVMFrontendDriver` did not include it. As a result, linking failed in
configurations where these components were not transitively linked.

### Fix:

This updated patch explicitly adds `Instrumentation` to
`LINK_COMPONENTS` in the relevant `llvm/lib/Frontend/CMakeLists.txt`
file to ensure the required symbols are properly resolved.

---------

Co-authored-by: ict-ql &lt;168183727+ict-ql@users.noreply.github.com&gt;
Co-authored-by: Chyaka &lt;52224511+liliumshade@users.noreply.github.com&gt;
Co-authored-by: Tarun Prabhu &lt;tarunprabhu@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR resubmits the changes from #136098, which was previously
reverted due to a build failure during the linking stage:

```
undefined reference to `llvm::DebugInfoCorrelate'  
undefined reference to `llvm::ProfileCorrelate'
```

The root cause was that `llvm/lib/Frontend/Driver/CodeGenOptions.cpp`
references symbols from the `Instrumentation` component, but the
`LINK_COMPONENTS` in the `llvm/lib/Frontend/CMakeLists.txt` for
`LLVMFrontendDriver` did not include it. As a result, linking failed in
configurations where these components were not transitively linked.

### Fix:

This updated patch explicitly adds `Instrumentation` to
`LINK_COMPONENTS` in the relevant `llvm/lib/Frontend/CMakeLists.txt`
file to ensure the required symbols are properly resolved.

---------

Co-authored-by: ict-ql &lt;168183727+ict-ql@users.noreply.github.com&gt;
Co-authored-by: Chyaka &lt;52224511+liliumshade@users.noreply.github.com&gt;
Co-authored-by: Tarun Prabhu &lt;tarunprabhu@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[Basic] Remove unused includes (NFC) (#142295)</title>
<updated>2025-06-01T02:00:31+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-06-01T02:00:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=cd9fe8a34cfbda448adf256ed0ce7d4dd14410fc'/>
<id>cd9fe8a34cfbda448adf256ed0ce7d4dd14410fc</id>
<content type='text'>
These are identified by misc-include-cleaner.  I've filtered out those
that break builds.  Also, I'm staying away from llvm-config.h,
config.h, and Compiler.h, which likely cause platform- or
compiler-specific build failures.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are identified by misc-include-cleaner.  I've filtered out those
that break builds.  Also, I'm staying away from llvm-config.h,
config.h, and Compiler.h, which likely cause platform- or
compiler-specific build failures.</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler" (#142159)</title>
<updated>2025-05-30T14:27:08+00:00</updated>
<author>
<name>Tarun Prabhu</name>
<email>tarun@lanl.gov</email>
</author>
<published>2025-05-30T14:27:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=597340b5b666bdee2887f56c111407b6737cbf34'/>
<id>597340b5b666bdee2887f56c111407b6737cbf34</id>
<content type='text'>
Reverts llvm/llvm-project#136098</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reverts llvm/llvm-project#136098</pre>
</div>
</content>
</entry>
<entry>
<title>Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (#136098)</title>
<updated>2025-05-30T14:13:53+00:00</updated>
<author>
<name>FYK</name>
<email>fanyikang@bosc.ac.cn</email>
</author>
<published>2025-05-30T14:13:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d27a210a77af63568db9f829702b4b2c98473a46'/>
<id>d27a210a77af63568db9f829702b4b2c98473a46</id>
<content type='text'>
This patch implements IR-based Profile-Guided Optimization support in
Flang through the following flags:

- `-fprofile-generate` for instrumentation-based profile generation

- `-fprofile-use=&lt;dir&gt;/file` for profile-guided optimization

Resolves #74216 (implements IR PGO support phase)

**Key changes:**

- Frontend flag handling aligned with Clang/GCC semantics

- Instrumentation hooks into LLVM PGO infrastructure

- LIT tests verifying:

    - Instrumentation metadata generation

    - Profile loading from specified path

    - Branch weight attribution (IR checks)

**Tests:**

- Added gcc-flag-compatibility.f90 test module verifying:

    -  Flag parsing boundary conditions

    -  IR-level profile annotation consistency

    -  Profile input path normalization rules

- SPEC2006 benchmark results will be shared in comments

For details on LLVM's PGO framework, refer to [Clang PGO
Documentation](https://clang.llvm.org/docs/UsersManual.html#profile-guided-optimization).

This implementation was developed by [XSCC Compiler
Team](https://github.com/orgs/OpenXiangShan/teams/xscc).

---------

Co-authored-by: ict-ql &lt;168183727+ict-ql@users.noreply.github.com&gt;
Co-authored-by: Tom Eccles &lt;t@freedommail.info&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch implements IR-based Profile-Guided Optimization support in
Flang through the following flags:

- `-fprofile-generate` for instrumentation-based profile generation

- `-fprofile-use=&lt;dir&gt;/file` for profile-guided optimization

Resolves #74216 (implements IR PGO support phase)

**Key changes:**

- Frontend flag handling aligned with Clang/GCC semantics

- Instrumentation hooks into LLVM PGO infrastructure

- LIT tests verifying:

    - Instrumentation metadata generation

    - Profile loading from specified path

    - Branch weight attribution (IR checks)

**Tests:**

- Added gcc-flag-compatibility.f90 test module verifying:

    -  Flag parsing boundary conditions

    -  IR-level profile annotation consistency

    -  Profile input path normalization rules

- SPEC2006 benchmark results will be shared in comments

For details on LLVM's PGO framework, refer to [Clang PGO
Documentation](https://clang.llvm.org/docs/UsersManual.html#profile-guided-optimization).

This implementation was developed by [XSCC Compiler
Team](https://github.com/orgs/OpenXiangShan/teams/xscc).

---------

Co-authored-by: ict-ql &lt;168183727+ict-ql@users.noreply.github.com&gt;
Co-authored-by: Tom Eccles &lt;t@freedommail.info&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[NFC] Run code formatter on Diagnostic.h/cpp ProfileList.cpp SpecialCaseList.cpp</title>
<updated>2025-05-17T21:11:49+00:00</updated>
<author>
<name>Qinkun Bao</name>
<email>qinkun@google.com</email>
</author>
<published>2025-05-17T21:11:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c6ad46434790ebcab6394dbe2381bebcf05c30f7'/>
<id>c6ad46434790ebcab6394dbe2381bebcf05c30f7</id>
<content type='text'>
Reviewers: vitalybuka

Reviewed By: vitalybuka

Pull Request: https://github.com/llvm/llvm-project/pull/140316
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewers: vitalybuka

Reviewed By: vitalybuka

Pull Request: https://github.com/llvm/llvm-project/pull/140316
</pre>
</div>
</content>
</entry>
<entry>
<title>[NFCI][Sanitizer] Convert SpecialCaseList::Sections from StringMap to vector.</title>
<updated>2025-05-16T19:32:54+00:00</updated>
<author>
<name>Qinkun Bao</name>
<email>qinkun@google.com</email>
</author>
<published>2025-05-16T19:32:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=dd4a73069c289985afc1ccfd0c512e5791ede404'/>
<id>dd4a73069c289985afc1ccfd0c512e5791ede404</id>
<content type='text'>
As discussed in https://github.com/llvm/llvm-project/pull/139772, SpecialCaseList::Sections can keep the order of Sections when parsing the case list.

Reviewers: thurstond, vitalybuka

Reviewed By: vitalybuka

Pull Request: https://github.com/llvm/llvm-project/pull/140127
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As discussed in https://github.com/llvm/llvm-project/pull/139772, SpecialCaseList::Sections can keep the order of Sections when parsing the case list.

Reviewers: thurstond, vitalybuka

Reviewed By: vitalybuka

Pull Request: https://github.com/llvm/llvm-project/pull/140127
</pre>
</div>
</content>
</entry>
<entry>
<title>[Coverage] Support -fprofile-list for cold function coverage (#136333)</title>
<updated>2025-05-08T17:51:38+00:00</updated>
<author>
<name>Lei Wang</name>
<email>wlei@fb.com</email>
</author>
<published>2025-05-08T17:51:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b836f96b8f51daa76f6387de364603db0fe553a7'/>
<id>b836f96b8f51daa76f6387de364603db0fe553a7</id>
<content type='text'>
Add a new instrumentation section type `[sample-coldcov]` to
support`-fprofile-list` for sample pgo based cold function coverage.
Note that the current cold function coverage is based on sampling PGO
pipeline, which is incompatible with the existing [llvm] option(see
[PGOOptions](https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Support/PGOOptions.h#L27-L43)),
so we can't reuse the IR-PGO(-fprofile-instrument=llvm) flag.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new instrumentation section type `[sample-coldcov]` to
support`-fprofile-list` for sample pgo based cold function coverage.
Note that the current cold function coverage is based on sampling PGO
pipeline, which is incompatible with the existing [llvm] option(see
[PGOOptions](https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Support/PGOOptions.h#L27-L43)),
so we can't reuse the IR-PGO(-fprofile-instrument=llvm) flag.</pre>
</div>
</content>
</entry>
</feed>
