LLVM
23.0.0git
include
llvm
CodeGen
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
17
#include "
llvm/CodeGen/MachineFunction.h
"
18
#include "
llvm/IR/DIBuilder.h
"
19
#include "
llvm/IR/Function.h
"
20
#include "
llvm/Support/Compiler.h
"
21
22
namespace
llvm
{
23
24
LLVM_ABI
bool
applyDebugifyMetadataToMachineFunction
(
25
DIBuilder
&DIB,
Function
&
F
,
26
llvm::function_ref
<
MachineFunction
*(
Function
&)> GetMF);
27
28
}
// namespace llvm
29
30
#endif
// LLVM_CODEGEN_MACHINEDEBUGIFY_H_
Compiler.h
LLVM_ABI
#define LLVM_ABI
Definition
Compiler.h:213
DIBuilder.h
Function.h
F
#define F(x, y, z)
Definition
MD5.cpp:54
MachineFunction.h
llvm::DIBuilder
Definition
DIBuilder.h:46
llvm::Function
Definition
Function.h:65
llvm::MachineFunction
Definition
MachineFunction.h:294
llvm::function_ref
An efficient, type-erasing, non-owning reference to a callable.
Definition
STLFunctionalExtras.h:37
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
FunctionInfo.h:25
llvm::applyDebugifyMetadataToMachineFunction
LLVM_ABI bool applyDebugifyMetadataToMachineFunction(DIBuilder &DIB, Function &F, llvm::function_ref< MachineFunction *(Function &)> GetMF)
Definition
MachineDebugify.cpp:32
Generated on
for LLVM by
1.14.0