[all-commits] [llvm/llvm-project] d80e46: [RISCV] Support target attribute for function

Piyou Chen via All-commits all-commits at lists.llvm.org
Thu Nov 23 23:05:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d80e46da7d20645afd7b751a4e6cba9837addcb4
      https://github.com/llvm/llvm-project/commit/d80e46da7d20645afd7b751a4e6cba9837addcb4
  Author: Piyou Chen <piyou.chen at sifive.com>
  Date:   2023-11-23 (Thu, 23 Nov 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Basic/Targets/RISCV.cpp
    M clang/lib/Basic/Targets/RISCV.h
    M clang/lib/Sema/SemaDeclAttr.cpp
    A clang/test/CodeGen/RISCV/riscv-func-attr-target-err.c
    A clang/test/CodeGen/RISCV/riscv-func-attr-target.c

  Log Message:
  -----------
  [RISCV] Support target attribute for function

The proposal of target attribute is https://github.com/riscv-non-isa/riscv-c-api-doc/pull/35

This patch implements it by emitting .option arch during codegen.

Reviewed By: craig.topper

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




More information about the All-commits mailing list