[PATCH] D69500: [X86] NFC: Convert LLVM command-line flag to target attribute

David Zarzycki via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 01:52:33 PDT 2019


davezarzycki created this revision.
davezarzycki added reviewers: craig.topper, RKSimon, spatel.
davezarzycki added a project: LLVM.

Swift and perhaps other users of LLVM do not leave `cl::opt` style command-line option parsing enabled due to C++ global constructor overhead, therefore let's convert the VZEROUPPER option to a target attribute.

      

Furthermore, this change stops the conflation of VZEROUPPER emission with enabling/disabling fast partial YMM/ZMM updates. The compiler doesn't intentionally emit partial updates at the moment, but it could.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69500

Files:
  lib/Target/X86/X86.td
  lib/Target/X86/X86Subtarget.h
  lib/Target/X86/X86TargetMachine.cpp
  lib/Target/X86/X86TargetTransformInfo.h
  lib/Target/X86/X86VZeroUpper.cpp
  test/CodeGen/X86/avx-vzeroupper.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69500.226621.patch
Type: text/x-patch
Size: 13373 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191028/20c478a2/attachment.bin>


More information about the llvm-commits mailing list