[llvm] [RISCV] Use TableGen-based macro fusion (PR #72224)

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 00:34:16 PST 2023


================
@@ -0,0 +1,21 @@
+//==----- RISCVMacroFusion.td - Macro Fusion Definitions -----*- 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
+//
+//===----------------------------------------------------------------------===//
+
+// ===---------------------------------------------------------------------===//
+// The following definitions describe the macro fusion predicators.
+
----------------
wangpc-pp wrote:

The `MacroFusionUtils` can be useful to simplify TableGen-generated code. It's a good idea, I will try to implement this later!

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


More information about the llvm-commits mailing list