[llvm] [AArch64] Add AArch64PassRegistry.def (PR #85215)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 15 09:41:28 PDT 2024


================
@@ -0,0 +1,45 @@
+//===-- AArch64CodeGenPassBuilder.cpp -----------------------------*- C++ -*-=//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+/// \file
+/// This file contains AArch64 CodeGen pipeline builder.
+/// TODO: Port CodeGen passes to new pass manager.
+//===----------------------------------------------------------------------===//
+
+#include "AArch64LoopIdiomTransform.h"
+#include "AArch64TargetMachine.h"
+#include "llvm/Passes/CodeGenPassBuilder.h"
+#include "llvm/Passes/PassBuilder.h"
+
+using namespace llvm;
+
+void AArch64TargetMachine::registerPassBuilderCallbacks(
+    PassBuilder &PB, bool PopulateClassToPassNames) {
+  if (PopulateClassToPassNames) {
----------------
aeubanks wrote:

oh man I really don't want to use tablegen for this.

I think a solution would require the preprocessor since the existing code does a lot with the preprocessor

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


More information about the llvm-commits mailing list