[PATCH] D98236: [RISCV] Add SiFive-VIU75 for llvm

Zakk Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 10 17:14:39 PST 2021


khchen added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCV.td:281-283
+                                                    FeatureStdExtV,
+                                                    FeatureStdExtZvlsseg,
+                                                    FeatureExtZvamo,
----------------
jrtc27 wrote:
> I don't think we should ever enable V and related extensions here for two reasons:
> 
> 1. They're currently experimental, so -mcpu=sifive-viu75 bypasses -menable-experimental-extensions.
> 
> 2. They're still drafts that are going to see changes and we don't maintain backwards compatibility between draft revisions, so as soon as there's a new draft spec we'll have to remove these extensions from this model as the core will no longer implement the spec version we do.
> They're currently experimental, so -mcpu=sifive-viu75 bypasses -menable-experimental-extensions.

Agree.
I think maybe we could find a way to force users to give `-menable-experimental-extensions` in llc when they use a cpu which has experimental features, it will be acceptable for me.

or maybe the cpu naming should be `-mcput=experimental-sifive-viu75` like `-mattr=+experimental-v`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98236/new/

https://reviews.llvm.org/D98236



More information about the llvm-commits mailing list