[all-commits] [llvm/llvm-project] a2ea5b: [X86] Add support for `-mharden-sls=[none|all|retu...

Phoebe Wang via All-commits all-commits at lists.llvm.org
Tue May 31 18:45:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2ea5b496bcd3762f96c38a09db1d38729fa6325
      https://github.com/llvm/llvm-project/commit/a2ea5b496bcd3762f96c38a09db1d38729fa6325
  Author: Phoebe Wang <phoebe.wang at intel.com>
  Date:   2022-06-01 (Wed, 01 Jun 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Arch/X86.cpp
    M clang/test/Driver/x86-target-features.c
    M llvm/lib/Target/X86/X86.td
    M llvm/lib/Target/X86/X86AsmPrinter.cpp
    M llvm/lib/Target/X86/X86AsmPrinter.h
    A llvm/test/CodeGen/X86/speculation-hardening-sls.ll

  Log Message:
  -----------
  [X86] Add support for `-mharden-sls=[none|all|return|indirect-jmp]`

The patch addresses the feature request from https://github.com/ClangBuiltLinux/linux/issues/1633. The implementation borrows a lot from aarch64.

Reviewed By: nickdesaulniers, MaskRay

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




More information about the All-commits mailing list