[llvm-branch-commits] [clang] [llvm] [RISCV] Add subtarget features for profiles (PR #84877)

Brandon Wu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Apr 26 05:54:56 PDT 2024


================
@@ -0,0 +1,204 @@
+//===------ RISCVProfiles.td - RISC-V Profiles -------------*- tablegen -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+class RISCVProfile<string name, list<SubtargetFeature> features>
+    : SubtargetFeature<name, "RISCVProfile", NAME,
----------------
4vtomat wrote:

Otherwise we have to define a member variable in `RISCVSubtarget`, even though, the subtarget emitter can't recognize the variable called for example: RVI20U32.

https://github.com/llvm/llvm-project/pull/84877


More information about the llvm-branch-commits mailing list