diff options
author | Shengchen Kan <shengchen.kan@intel.com> | 2023-12-04 19:22:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 19:22:56 +0800 |
commit | 6d6baef5c9bf880a28c3b9861fc5c1f578b6635c (patch) | |
tree | 301b9ef8f7053d81bec8f1a1e256c0b6750fcd47 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 853682cc19e26964383af9e834215fae5966b140 (diff) | |
download | llvm-6d6baef5c9bf880a28c3b9861fc5c1f578b6635c.zip llvm-6d6baef5c9bf880a28c3b9861fc5c1f578b6635c.tar.gz llvm-6d6baef5c9bf880a28c3b9861fc5c1f578b6635c.tar.bz2 |
[X86] Support CFE flags for APX features (#74199)
Positive options: -mapx-features=<comma-separated-features>
Negative options: -mno-apx-features=<comma-separated-features>
-m[no-]apx-features is designed to be able to control separate APX
features.
Besides, we also support the flag -m[no-]apxf, which can be used like an
alias of -m[no-]apx-features=< all APX features covered by CPUID APX_F>
Behaviour when positive and negative options are used together:
For boolean flags, the last one wins
-mapxf -mno-apxf -> -mno-apxf
-mno-apxf -mapxf -> -mapxf
For flags that take a set as arguments, it sets the mask by order of the
flags
-mapx-features=egpr,ndd -mno-apx-features=egpr -> -egpr,+ndd
-mapx-features=egpr -mno-apx-features=egpr,ndd -> -egpr,-ndd
-mno-apx-features=egpr -mapx-features=egpr,ndd -> +egpr,+ndd
-mno-apx-features=egpr,ndd -mapx-features=egpr -> -ndd,+egpr
The design is aligned with gcc
https://gcc.gnu.org/pipermail/gcc-patches/2023-August/628905.html
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions