[all-commits] [llvm/llvm-project] 632c26: [RISCV] Add RISCVProcFamilyEnum and add SiFive7.

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Jan 12 09:34:16 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 632c263eb3022189b82280e09b47522b7c623949
      https://github.com/llvm/llvm-project/commit/632c263eb3022189b82280e09b47522b7c623949
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-01-12 (Wed, 12 Jan 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCV.td
    M llvm/lib/Target/RISCV/RISCVSubtarget.h
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

  Log Message:
  -----------
  [RISCV] Add RISCVProcFamilyEnum and add SiFive7.

Use it to remove explicit string compares from unrolling preferences.

I'm of two minds on this. Ideally, we would define things in terms
of architectural or microarchitectural features, but it's hard to
do that with things like unrolling preferences without just ending up
with FeatureSiFive7UnrollingPreferences.

Having a proc enum is consistent with ARM and AArch64. X86 only has
a few and is trying to move away from it.

Reviewed By: asb, mcberg2021

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




More information about the All-commits mailing list