[llvm] [CodeGen] Port mir-debugify to new pass manager (PR #193201)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 05:02:37 PDT 2026
================
@@ -0,0 +1,29 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+//
+// Attaches synthetic debug info to the MachineFunction for a Function. To be
+// used both by the legacy and the new pass manager.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CODEGEN_MACHINEDEBUGIFY_H_
+#define LLVM_CODEGEN_MACHINEDEBUGIFY_H_
+
+#include "llvm/CodeGen/MachineFunction.h"
+#include "llvm/IR/DIBuilder.h"
+#include "llvm/IR/Function.h"
+
+namespace llvm {
+
+bool applyDebugifyMetadataToMachineFunction(
----------------
juanvazquez wrote:
Thanks, I've added the annotation. I'm closing as resolved, feel free to reopen if you think otherwise.
https://github.com/llvm/llvm-project/pull/193201
More information about the llvm-commits
mailing list