xref: /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/Annotation2Metadata.h (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 //===- Annotation2Metadata.h - Add !annotation metadata. --------*- C++ -*-===//
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 // New pass manager pass to convert @llvm.global.annotations to !annotation
10 // metadata.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_TRANSFORMS_IPO_ANNOTATION2METADATA_H
15 #define LLVM_TRANSFORMS_IPO_ANNOTATION2METADATA_H
16 
17 #include "llvm/IR/PassManager.h"
18 
19 namespace llvm {
20 
21 class Module;
22 
23 /// Pass to convert @llvm.global.annotations to !annotation metadata.
24 struct Annotation2MetadataPass : public PassInfoMixin<Annotation2MetadataPass> {
25   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
26 };
27 
28 } // end namespace llvm
29 
30 #endif // LLVM_TRANSFORMS_IPO_ANNOTATION2METADATA_H
31