brintos

brintos / llvm-project-archived public Read only

0
0
Text · 852 B · 8eaf6d5 Raw
34 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef CODEGEN_TEST_PASS10#define CODEGEN_TEST_PASS11 12#include <llvm/CodeGen/MachineFunctionPass.h>13 14using namespace llvm;15 16namespace llvm {17void initializeCodeGenTestPass(PassRegistry &);18} // namespace llvm19 20class CodeGenTest : public MachineFunctionPass {21public: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_PASS34