[llvm] [RISCV] Use TableGen-based macro fusion (PR #72224)
Mikhail Gudim via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 06:01:39 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.
+
----------------
mgudim wrote:
If we had a file `MacroFusionUtils` which contained same helper functions like `checkIsVRegOperaned`, would the same code written in C++ be much longer?
https://github.com/llvm/llvm-project/pull/72224
More information about the llvm-commits
mailing list