[all-commits] [llvm/llvm-project] 379e68: [clang][SLH] Add __has_feature(speculative_load_ha...

zbrid via All-commits all-commits at lists.llvm.org
Mon May 11 13:37:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 379e68a763097bed55556c6dc7453e4b732e3d68
      https://github.com/llvm/llvm-project/commit/379e68a763097bed55556c6dc7453e4b732e3d68
  Author: Zola Bridges <zbrid at google.com>
  Date:   2020-05-11 (Mon, 11 May 2020)

  Changed paths:
    M clang/include/clang/Basic/Features.def
    M clang/include/clang/Basic/LangOptions.def
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp

  Log Message:
  -----------
  [clang][SLH] Add __has_feature(speculative_load_hardening)

SLH doesn't support asm goto and is unlikely to ever support it. Users of asm
goto need a way to choose whether to use asm goto or fallback to an SLH
compatible code path when SLH is enabled. This feature flag will give users
this ability.

Tested via unit test

Reviewed By: mattdr

Differential Revision: https://reviews.llvm.org/D79733




More information about the All-commits mailing list