llvm-project
76c84e70 - [Driver][X86] Add flang visibility for -mapx-features= (#97525)

Commit
1 year ago
[Driver][X86] Add flang visibility for -mapx-features= (#97525) The default visibility of `m_x86_Features_Group` is `ClangOption, CLOption`. For x86, we expose `-march` to flang but not `-m<cpuid>`. `apxf` is special b/c it contains several independent features like `egpr, ndd, ppx, push2pop2, ccmp, nf, cf` and `zu`. Users may would like to turn on part of features in different cases 1. enable `ndd` only when writing a code-size sensitive library 2. disable `ccmp`, `cf` when building component has strong security request on caches Hence, we expose `-mapx-features=` to flang for Fortran users.
Author
Parents
Loading