Skip to content

Commit 2d13693

Browse files
committed
[X86] Update release notes for -mtune support.
1 parent 82875dc commit 2d13693

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ X86 Support in Clang
190190

191191
- Support for -march=sapphirerapids was added.
192192

193+
- The -mtune command line option is no longer ignored for X86. This can be used
194+
to request microarchitectural optimizations independent on -march. -march=<cpu>
195+
implies -mtune=<cpu>. -mtune=generic is the default with no -march or -mtune
196+
specified.
197+
193198
Internal API Changes
194199
--------------------
195200

llvm/docs/ReleaseNotes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ During this release ...
101101
* The assembler now has support for {disp32} and {disp8} pseudo prefixes for
102102
controlling displacement size for memory operands and jump displacements. The
103103
assembler also supports the .d32 and .d8 mnemonic suffixes to do the same.
104+
* A new function attribute "tune-cpu" has been added to support -mtune like gcc.
105+
This allows microarchitectural optimizations to be applied independent from
106+
the "target-cpu" attribute or TargetMachine CPU which will be used to select
107+
Instruction Set. If the attribute is not present, the tune CPU will follow
108+
the target CPU.
104109

105110
Changes to the AMDGPU Target
106111
-----------------------------

0 commit comments

Comments
 (0)