[PATCH] D159250: [X86][RFC] Add new option `-m[no-]evex512` to disable ZMM and 64-bit mask instructions for AVX512 features

Phoebe Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 1 00:21:16 PDT 2023


pengfei updated this revision to Diff 555283.
pengfei added a comment.

Address review comments.

In D159250#4631786 <https://reviews.llvm.org/D159250#4631786>, @RKSimon wrote:

> Would it be possible to add function multiversioning tests to ensure the evex512 attribute would work with it?

Function multiversioning is orthogonal to evex512 feature.

When user uses `-mno-evex512` in command line, all the code generation, including function multiversioning are limited to 256-bit vector and 32-bit mask.

User is not suggested to use `avx512xxx,evex512` in function attributes for function multiversioning, because EVEX512 is a software concept and the dispatcher cannot distinguish between `avx512xxx` and `avx512xxx,evex512`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159250/new/

https://reviews.llvm.org/D159250

Files:
  clang/docs/ReleaseNotes.rst
  clang/include/clang/Basic/BuiltinsX86.def
  clang/include/clang/Driver/Options.td
  clang/lib/Basic/Targets/X86.cpp
  clang/lib/Basic/Targets/X86.h
  clang/lib/CodeGen/Targets/X86.cpp
  clang/lib/Headers/avx512bf16intrin.h
  clang/lib/Headers/avx512bitalgintrin.h
  clang/lib/Headers/avx512bwintrin.h
  clang/lib/Headers/avx512cdintrin.h
  clang/lib/Headers/avx512dqintrin.h
  clang/lib/Headers/avx512fintrin.h
  clang/lib/Headers/avx512fp16intrin.h
  clang/lib/Headers/avx512ifmaintrin.h
  clang/lib/Headers/avx512vbmi2intrin.h
  clang/lib/Headers/avx512vbmiintrin.h
  clang/lib/Headers/avx512vnniintrin.h
  clang/lib/Headers/avx512vp2intersectintrin.h
  clang/lib/Headers/avx512vpopcntdqintrin.h
  clang/lib/Headers/gfniintrin.h
  clang/lib/Headers/vaesintrin.h
  clang/test/CodeGen/X86/avx512-error.c
  clang/test/CodeGen/attr-cpuspecific.c
  clang/test/CodeGen/attr-target-x86.c
  clang/test/CodeGen/regcall2.c
  clang/test/CodeGen/target-avx-abi-diag.c
  clang/test/Driver/x86-target-features.c
  clang/test/Preprocessor/x86_target_features.c
  llvm/include/llvm/TargetParser/X86TargetParser.def
  llvm/lib/IR/Verifier.cpp
  llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
  llvm/lib/Target/X86/X86.td
  llvm/lib/Target/X86/X86InstrInfo.td
  llvm/lib/Target/X86/X86RegisterInfo.cpp
  llvm/lib/Target/X86/X86Subtarget.cpp
  llvm/lib/Target/X86/X86Subtarget.h
  llvm/lib/TargetParser/X86TargetParser.cpp
  llvm/test/CodeGen/X86/avx512bwvl-arith.ll
  llvm/test/CodeGen/X86/avx512vl-arith.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159250.555283.patch
Type: text/x-patch
Size: 180142 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230901/bc51fcfb/attachment-0001.bin>


More information about the cfe-commits mailing list