[PATCH] D51157: [x86/SLH] Add a real Clang flag and LLVM IR attribute for Speculative Load Hardening.

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 23 13:22:57 PDT 2018


rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

It makes sense to me to do this all in one go and defer the clang `__attribute__` until later.



================
Comment at: llvm/include/llvm/IR/Attributes.td:249
 def : MergeRule<"adjustNullPointerValidAttr">;
+
----------------
I can't tell if this is just vim fixing the lack of a proper trailing newline, but revert any whitespace change if possible.


================
Comment at: llvm/lib/Bitcode/Reader/BitcodeReader.cpp:1169
+  case Attribute::SpeculativeLoadHardening:
+    return 1ULL << 60;
   case Attribute::Dereferenceable:
----------------
These appear to repeat LLVMBitcodes.h, unless I am mistaken. Weird. Anyway, fixing that is out of scope.


Repository:
  rL LLVM

https://reviews.llvm.org/D51157





More information about the cfe-commits mailing list