<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/flang/lib/Frontend/CompilerInvocation.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>[Flang] Add -ffast-real-mod and direct code for MOD on REAL types (#160660)</title>
<updated>2025-10-02T08:50:05+00:00</updated>
<author>
<name>Michael Klemm</name>
<email>michael.klemm@amd.com</email>
</author>
<published>2025-10-02T08:50:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8aa64edb34ec6b30e1e7d0dbcc86236a6290eb0c'/>
<id>8aa64edb34ec6b30e1e7d0dbcc86236a6290eb0c</id>
<content type='text'>
This patch adds direct code-gen support for a faster MOD intrinsic for
REAL types. Flang has maintained and keeps maintaining a high-precision
implementation of the MOD intrinsic as part of the Fortran runtime. With
the -ffast-real-mod flag, users can opt to avoid calling into the
Fortran runtime, but instead trigger code-gen that produces faster code
by avoiding the runtime call, at the expense of potentially risking bit
cancelation by having the compiler use the MOD formula a specified by
ISO Fortran.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds direct code-gen support for a faster MOD intrinsic for
REAL types. Flang has maintained and keeps maintaining a high-precision
implementation of the MOD intrinsic as part of the Fortran runtime. With
the -ffast-real-mod flag, users can opt to avoid calling into the
Fortran runtime, but instead trigger code-gen that produces faster code
by avoiding the runtime call, at the expense of potentially risking bit
cancelation by having the compiler use the MOD formula a specified by
ISO Fortran.</pre>
</div>
</content>
</entry>
<entry>
<title>[flang][Driver] Support -gsplit-dwarf. (#160540)</title>
<updated>2025-09-26T10:06:29+00:00</updated>
<author>
<name>Abid Qadeer</name>
<email>haqadeer@amd.com</email>
</author>
<published>2025-09-26T10:06:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=96675a467ef5811dc1e78b2bec3c90cf0c67ba1c'/>
<id>96675a467ef5811dc1e78b2bec3c90cf0c67ba1c</id>
<content type='text'>
This flags enables the compiler to generate most of the debug
information in a separate file which can be useful for executable size
and link times. Clang already supports this flag.
 
I have tried to follow the logic of the clang implementation where
possible. Some functions were moved where they could be used by both
clang and flang. The `addOtherOptions` was renamed to `addDebugOptions`
to better reflect its purpose.

Clang also set the `splitDebugFilename` field of the `DICompileUnit` in
the IR when this option is present. That part is currently missing from
this patch and will come in a follow-up PR.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This flags enables the compiler to generate most of the debug
information in a separate file which can be useful for executable size
and link times. Clang already supports this flag.
 
I have tried to follow the logic of the clang implementation where
possible. Some functions were moved where they could be used by both
clang and flang. The `addOtherOptions` was renamed to `addDebugOptions`
to better reflect its purpose.

Clang also set the `splitDebugFilename` field of the `DICompileUnit` in
the IR when this option is present. That part is currently missing from
this patch and will come in a follow-up PR.
</pre>
</div>
</content>
</entry>
<entry>
<title>[flang][Driver] Enables lto-partitions and fat-lto-object. (#158125)</title>
<updated>2025-09-18T15:55:20+00:00</updated>
<author>
<name>Anchu Rajendran S</name>
<email>asudhaku@amd.com</email>
</author>
<published>2025-09-18T15:55:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5b2af16be591172cde8203160d1e01f5815a16ac'/>
<id>5b2af16be591172cde8203160d1e01f5815a16ac</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[flang] Lowering support for -gdwarf-N flag. (#159137)</title>
<updated>2025-09-17T17:16:36+00:00</updated>
<author>
<name>Abid Qadeer</name>
<email>haqadeer@amd.com</email>
</author>
<published>2025-09-17T17:16:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=453e4102bd32b892e7fda2aea3f3ef9e9b038580'/>
<id>453e4102bd32b892e7fda2aea3f3ef9e9b038580</id>
<content type='text'>
This PR builds on the https://github.com/llvm/llvm-project/pull/158314
and adds the lowering support for `-gdwarf-N` flag. The changes to pass
the information to `AddDebugInfo` pass are mostly mechanical. The
`AddDebugInfo` pass adds `ModuleFlagsOp` in the module which gets
translated to correct llvm metadata during mlir-&gt;llvmir translation.

There is minor correction where the version is set to 0 in case no
-debug-version flag is provided. Previously it was set to 2 in this case
due to misreading of clang code.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR builds on the https://github.com/llvm/llvm-project/pull/158314
and adds the lowering support for `-gdwarf-N` flag. The changes to pass
the information to `AddDebugInfo` pass are mostly mechanical. The
`AddDebugInfo` pass adds `ModuleFlagsOp` in the module which gets
translated to correct llvm metadata during mlir-&gt;llvmir translation.

There is minor correction where the version is set to 0 in case no
-debug-version flag is provided. Previously it was set to 2 in this case
due to misreading of clang code.</pre>
</div>
</content>
</entry>
<entry>
<title>Reapply "Introduce -fexperimental-loop-fusion to clang and flang (#158844)</title>
<updated>2025-09-16T11:13:37+00:00</updated>
<author>
<name>Madhur Amilkanthwar</name>
<email>madhura@nvidia.com</email>
</author>
<published>2025-09-16T11:13:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a134b0621798d0c07a6c5ea23d8e8388b04c26ad'/>
<id>a134b0621798d0c07a6c5ea23d8e8388b04c26ad</id>
<content type='text'>
This PR is a reapplication of
https://github.com/llvm/llvm-project/pull/142686</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR is a reapplication of
https://github.com/llvm/llvm-project/pull/142686</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Introduce -fexperimental-loop-fuse to clang and flang (#142686)" (#158764)</title>
<updated>2025-09-16T02:30:18+00:00</updated>
<author>
<name>Vitaly Buka</name>
<email>vitalybuka@google.com</email>
</author>
<published>2025-09-16T02:30:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=cedceeb8002c112b33ff0974f04082849e6e202d'/>
<id>cedceeb8002c112b33ff0974f04082849e6e202d</id>
<content type='text'>
This reverts commit 895cda70a95529fd22aac05eee7c34f7624996af.
And fix attempt: 06f671e57a574ba1c5127038eff8e8773273790e.

Performance regressions and broken sanitizers, see #142686.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 895cda70a95529fd22aac05eee7c34f7624996af.
And fix attempt: 06f671e57a574ba1c5127038eff8e8773273790e.

Performance regressions and broken sanitizers, see #142686.</pre>
</div>
</content>
</entry>
<entry>
<title>[flang][driver] Support -gdwarf-N option. (#158314)</title>
<updated>2025-09-15T14:57:33+00:00</updated>
<author>
<name>Abid Qadeer</name>
<email>haqadeer@amd.com</email>
</author>
<published>2025-09-15T14:57:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=99ec5b95da4fa4e32cf9854513413510d48781f6'/>
<id>99ec5b95da4fa4e32cf9854513413510d48781f6</id>
<content type='text'>
This PR adds the support for -gdwarf-N option where allows user to
choose the version of the dwarf. Currently N can be 2, 3, 4, or 5. This
is only the driver part of the change. Later PRs will propogate it to
the IR.

Fixes https://github.com/llvm/llvm-project/issues/112910.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR adds the support for -gdwarf-N option where allows user to
choose the version of the dwarf. Currently N can be 2, 3, 4, or 5. This
is only the driver part of the change. Later PRs will propogate it to
the IR.

Fixes https://github.com/llvm/llvm-project/issues/112910.</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce -fexperimental-loop-fuse to clang and flang (#142686)</title>
<updated>2025-09-15T13:18:32+00:00</updated>
<author>
<name>Sebastian Pop</name>
<email>spop@nvidia.com</email>
</author>
<published>2025-09-15T13:18:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=895cda70a95529fd22aac05eee7c34f7624996af'/>
<id>895cda70a95529fd22aac05eee7c34f7624996af</id>
<content type='text'>
This patch adds the flag -fexperimental-loop-fuse to the clang and flang
drivers. This is primarily useful for experiments as we envision to
enable the pass one day.

The options are based on the same principles and reason on which we have
`floop-interchange`.

---------

Co-authored-by: Madhur Amilkanthwar &lt;madhura@nvidia.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds the flag -fexperimental-loop-fuse to the clang and flang
drivers. This is primarily useful for experiments as we envision to
enable the pass one day.

The options are based on the same principles and reason on which we have
`floop-interchange`.

---------

Co-authored-by: Madhur Amilkanthwar &lt;madhura@nvidia.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[flang] Fix build after #150124</title>
<updated>2025-09-02T20:22:26+00:00</updated>
<author>
<name>Jan Svoboda</name>
<email>jan_svoboda@apple.com</email>
</author>
<published>2025-09-02T20:21:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b0f85beeefbfdf3eb3f66fed6c5aed13ac423bb4'/>
<id>b0f85beeefbfdf3eb3f66fed6c5aed13ac423bb4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[flang][cuda] Define _CUDA only when preprocessor is enabled (#155913)</title>
<updated>2025-08-28T21:44:46+00:00</updated>
<author>
<name>Valentin Clement (バレンタイン クレメン)</name>
<email>clementval@gmail.com</email>
</author>
<published>2025-08-28T21:44:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1277a1111d420b244a0e595ad9b74827841b723a'/>
<id>1277a1111d420b244a0e595ad9b74827841b723a</id>
<content type='text'>
From the CUDA Fortran programming guide: 
&gt; If CUDA Fortran is enabled in compilation, either by specifying -⁠cuda
on the command line, and pre-processing is enabled by either the
-⁠Mpreprocess compiler option or by using capital letters in the
filename extension (.CUF, .F90, etc.) then the _CUDA macro is defined.

Move the definition of `_CUDA` to the compiler invocation.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
From the CUDA Fortran programming guide: 
&gt; If CUDA Fortran is enabled in compilation, either by specifying -⁠cuda
on the command line, and pre-processing is enabled by either the
-⁠Mpreprocess compiler option or by using capital letters in the
filename extension (.CUF, .F90, etc.) then the _CUDA macro is defined.

Move the definition of `_CUDA` to the compiler invocation.</pre>
</div>
</content>
</entry>
</feed>
