[PATCH] D157680: [X86]Support options -mno-gather -mno-scatter
Wang, Xin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 11 00:29:21 PDT 2023
XinWang10 created this revision.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
XinWang10 requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, wangpc, MaskRay.
Herald added projects: clang, LLVM.
Gather instructions could lead to security issues, details please refer to https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/gather-data-sampling.html.
This supported options -mno-gather and -mno-scatter, which could avoid generating gather/scatter instructions in backend except using intrinsics or inline asms.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157680
Files:
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/x86-no-gather-no-scatter.cpp
llvm/lib/Target/X86/X86.td
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.h
llvm/test/CodeGen/X86/x86-prefer-no-gather-no-scatter.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157680.549267.patch
Type: text/x-patch
Size: 17035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230811/92e101d4/attachment.bin>
More information about the cfe-commits
mailing list