[all-commits] [llvm/llvm-project] 7ab488: [RISCV][FMV] Support target_version (#99040)

Piyou Chen via All-commits all-commits at lists.llvm.org
Thu Oct 3 20:03:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ab488e92c39c813a50cb4fd6587e7afc161c7d5
      https://github.com/llvm/llvm-project/commit/7ab488e92c39c813a50cb4fd6587e7afc161c7d5
  Author: Piyou Chen <piyou.chen at sifive.com>
  Date:   2024-10-04 (Fri, 04 Oct 2024)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    A clang/test/CodeGen/attr-target-version-riscv-invalid.c
    A clang/test/CodeGen/attr-target-version-riscv.c
    A clang/test/CodeGenCXX/attr-target-version-riscv.cpp
    A clang/test/SemaCXX/attr-target-version-riscv.cpp

  Log Message:
  -----------
  [RISCV][FMV] Support target_version (#99040)

This patch enable `target_version` attribute for RISC-V target.

The proposal of `target_version` syntax can be found at the
https://github.com/riscv-non-isa/riscv-c-api-doc/pull/48 (which has
landed), as modified by the proposed
https://github.com/riscv-non-isa/riscv-c-api-doc/pull/85 (which adds the
priority syntax).

`target_version` attribute will trigger the function multi-versioning
feature and act like `target_clones` attribute. See
https://github.com/llvm/llvm-project/pull/85786 for the implementation
of `target_clones`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list