[PATCH] D54915: [clang][slh] add attribute for speculative load hardening

Zola Bridges via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 26 14:01:02 PST 2018


zbrid created this revision.
zbrid added reviewers: chandlerc, echristo, kristof.beyls, aaron.ballman.

The prior diff had to be reverted because there were two tests
that failed. I updated the two tests in this diff

clang/test/Misc/pragma-attribute-supported-attributes-list.test
clang/test/SemaCXX/attr-speculative-load-hardening.cpp

- Summary from Previous Diff (Still Accurate) -----

LLVM IR already has an attribute for speculative_load_hardening. Before
this commit, when a user passed the -mspeculative-load-hardening flag to
Clang, every function would have this attribute added to it. This Clang
attribute will allow users to opt into SLH on a function by function basis.

This can be applied to functions and Objective C methods.


Repository:
  rL LLVM

https://reviews.llvm.org/D54915

Files:
  clang/include/clang/Basic/Attr.td
  clang/include/clang/Basic/AttrDocs.td
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/CodeGen/attr-speculative-load-hardening.cpp
  clang/test/CodeGen/attr-speculative-load-hardening.m
  clang/test/Misc/pragma-attribute-supported-attributes-list.test
  clang/test/SemaCXX/attr-speculative-load-hardening.cpp
  llvm/docs/LangRef.rst

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54915.175336.patch
Type: text/x-patch
Size: 9982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181126/6a468cb0/attachment.bin>


More information about the llvm-commits mailing list