[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:19:13 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:

Is the third argument used anywhere? If not, can we set it to "true" to make it consistent to most of other features?

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


More information about the llvm-branch-commits mailing list