xref: /linux/tools/perf/util/llvm.h (revision d9007afca0cf6c549c5049d5a75bce470453b024)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_LLVM_H
3 #define __PERF_LLVM_H
4 
5 #include <stdbool.h>
6 #include <linux/types.h>
7 
8 struct annotate_args;
9 struct dso;
10 struct inline_node;
11 struct symbol;
12 
13 int llvm__addr2line(const char *dso_name, u64 addr,
14 		char **file, unsigned int *line, struct dso *dso,
15 		bool unwind_inlines, struct inline_node *node,
16 		struct symbol *sym);
17 
18 
19 void dso__free_a2l_llvm(struct dso *dso);
20 
21 int symbol__disassemble_llvm(const char *filename, struct symbol *sym,
22 			     struct annotate_args *args);
23 
24 #endif /* __PERF_LLVM_H */
25