[clang] [X86][AVX10] Permit AVX512 options/features used together with AVX10 (PR #71318)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 9 06:03:49 PST 2023


phoebewang wrote:

> I'm a little bit confused, What's the expected behavior of `+avx10.1-512 -avx10.1-256` in codegen aspect? Should we generate only instructions in the difference of sets? Or do we consider `avx10.1-256` as a base of `avx10.1-512` and if it is disabled `avx10.1-512` can't be enabled?

`-avx10.1-256` works like `-avx512f`, that says, they are special as a fundamental feature, which will turn off all derivative features for AVX10 and AVX512 respectively.
OTOH, derivative features will only turn off the difference set, e.g., `+avx10.3-256 -avx10.2-256` equals to `+avx10.1-256`.

https://github.com/llvm/llvm-project/pull/71318


More information about the cfe-commits mailing list