LLVM 23.0.0git
MachineDebugify.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Attaches synthetic debug info to the MachineFunction for a Function. To be
10// used both by the legacy and the new pass manager.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CODEGEN_MACHINEDEBUGIFY_H_
15#define LLVM_CODEGEN_MACHINEDEBUGIFY_H_
16
18#include "llvm/IR/DIBuilder.h"
19#include "llvm/IR/Function.h"
21
22namespace llvm {
23
25 DIBuilder &DIB, Function &F,
27
28} // namespace llvm
29
30#endif // LLVM_CODEGEN_MACHINEDEBUGIFY_H_
#define LLVM_ABI
Definition Compiler.h:213
#define F(x, y, z)
Definition MD5.cpp:54
An efficient, type-erasing, non-owning reference to a callable.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI bool applyDebugifyMetadataToMachineFunction(DIBuilder &DIB, Function &F, llvm::function_ref< MachineFunction *(Function &)> GetMF)