[all-commits] [llvm/llvm-project] a4bf1b: [RISCV] Unify depedency check and extension implic...

Yueh-Ting (eop) Chen via All-commits all-commits at lists.llvm.org
Thu Dec 9 21:16:17 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a4bf1b449dc0691e182db879bfb53bc52fbf11b7
      https://github.com/llvm/llvm-project/commit/a4bf1b449dc0691e182db879bfb53bc52fbf11b7
  Author: eopXD <eop.chen at sifive.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M clang/test/CodeGen/RISCV/riscv-metadata.c
    M clang/test/CodeGen/RISCV/riscv32-ilp32-ilp32f-ilp32d-abi.c
    M clang/test/CodeGen/RISCV/riscv32-ilp32d-abi.c
    M clang/test/CodeGen/RISCV/riscv32-ilp32f-ilp32d-abi.c
    M clang/test/CodeGen/RISCV/riscv64-lp64-lp64f-lp64d-abi.c
    M clang/test/CodeGen/RISCV/riscv64-lp64d-abi.c
    M clang/test/CodeGen/RISCV/riscv64-lp64f-lp64d-abi.c
    M clang/test/CodeGen/riscv32-ilp32d-abi.cpp
    M llvm/include/llvm/Support/RISCVISAInfo.h
    M llvm/lib/Support/RISCVISAInfo.cpp
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    A llvm/test/MC/RISCV/attribute-arch-invalid.s
    M llvm/test/MC/RISCV/attribute-arch.s

  Log Message:
  -----------
  [RISCV] Unify depedency check and extension implication parsing logics

Originially there are two places that does parsing - `parseArchString` and
`parseFeatures`, each with its code on dependency check and implication.
This patch extracts common parts of the two  as functions of `RISCVISAInfo`
and let them 2 use it.

Reviewed By: asb

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




More information about the All-commits mailing list