Debian Codegraph @

llvm/unittests/CodeGen/CGPluginTest/Plugin/CodeGenTestPass.h

raw
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 #ifndef CODEGEN_TEST_PASS
10 #define CODEGEN_TEST_PASS
11
12 #include <llvm/CodeGen/MachineFunctionPass.h>
13
14 using namespace llvm;
15
16 namespace llvm {
17 void initializeCodeGenTestPass(PassRegistry &);
18 } // namespace llvm
19
20 class CodeGenTest : public MachineFunctionPass {
21 public:
22 static char ID;
23
24 CodeGenTest();
25
26 bool runOnMachineFunction(MachineFunction &MF) override;
27
28 StringRef getPassName() const override;
29
30 static std::function<void()> RunCallback;
31 };
32
33 #endif // CODEGEN_TEST_PASS