[all-commits] [llvm/llvm-project] aa6d48: Implement target(branch-protection) attribute for ...

Momchil Velikov via All-commits all-commits at lists.llvm.org
Fri Nov 15 07:41:01 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: aa6d48fa70eb5d1769ea09ac0a2c4d956deeb06d
      https://github.com/llvm/llvm-project/commit/aa6d48fa70eb5d1769ea09ac0a2c4d956deeb06d
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2019-11-15 (Fri, 15 Nov 2019)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Basic/TargetInfo.h
    M clang/lib/Basic/Targets/AArch64.cpp
    M clang/lib/Basic/Targets/AArch64.h
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    A clang/test/CodeGen/aarch64-branch-protection-attr.c
    M clang/test/Sema/attr-target.c
    A clang/test/Sema/branch-protection-attr-err.c
    M llvm/include/llvm/Support/AArch64TargetParser.h
    M llvm/lib/Support/AArch64TargetParser.cpp

  Log Message:
  -----------
  Implement target(branch-protection) attribute for AArch64

This patch implements `__attribute__((target("branch-protection=...")))`
in a manner, compatible with the analogous GCC feature:

https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/AArch64-Function-Attributes.html#AArch64-Function-Attributes

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




More information about the All-commits mailing list