[all-commits] [llvm/llvm-project] 666815: [RISCV] Implement new architecture extension macros

Simon Cook via All-commits all-commits at lists.llvm.org
Mon Jan 25 01:03:31 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 666815d61bc2475aa7b3ecf8e3a91022d6ccce4b
      https://github.com/llvm/llvm-project/commit/666815d61bc2475aa7b3ecf8e3a91022d6ccce4b
  Author: Simon Cook <simon.cook at embecosm.com>
  Date:   2021-01-25 (Mon, 25 Jan 2021)

  Changed paths:
    M clang/lib/Basic/Targets/RISCV.cpp
    M clang/lib/Basic/Targets/RISCV.h
    M clang/lib/Driver/ToolChains/Arch/RISCV.cpp
    M clang/test/Preprocessor/riscv-target-features.c

  Log Message:
  -----------
  [RISCV] Implement new architecture extension macros

This adds support for the new architecture extension test macros as
defined in the C-API Document:
https://github.com/riscv/riscv-c-api-doc/blob/master/riscv-c-api.md

Extension versions have been taken from what are used in
RISCVTargetStreamer for ratified extensions, and the -march parser
for experimental extensions.

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


  Commit: a7c1239f374907107dcc65a3e6a4b20c53d973c9
      https://github.com/llvm/llvm-project/commit/a7c1239f374907107dcc65a3e6a4b20c53d973c9
  Author: Simon Cook <simon.cook at embecosm.com>
  Date:   2021-01-25 (Mon, 25 Jan 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
    M llvm/test/CodeGen/RISCV/attributes.ll
    M llvm/test/MC/RISCV/attribute-arch.s

  Log Message:
  -----------
  [RISCV] Add attribute support for all supported extensions

This adds support for ".attribute arch" for all extensions that are
currently supported by the compiler.

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


Compare: https://github.com/llvm/llvm-project/compare/5e7a93a954e6...a7c1239f3749


More information about the All-commits mailing list