mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
Based on corrections mentioned in patch for clang for PR27635 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299072 91177308-0d34-0410-b5e6-96231b3b80d8
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
//===- MachineFunctionInitializer.h - machine function initializer ---------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file declares an interface that allows custom machine function
|
|
// initialization.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_CODEGEN_MACHINEFUNCTIONINITIALIZER_H
|
|
#define LLVM_CODEGEN_MACHINEFUNCTIONINITIALIZER_H
|
|
|
|
namespace llvm {
|
|
|
|
class MachineFunction;
|
|
|
|
/// This interface provides a way to initialize machine functions after they are
|
|
/// created by the machine function analysis pass.
|
|
class MachineFunctionInitializer {
|
|
virtual void anchor();
|
|
|
|
public:
|
|
virtual ~MachineFunctionInitializer() {}
|
|
|
|
/// Initialize the machine function.
|
|
///
|
|
/// Return true if error occurred.
|
|
virtual bool initializeMachineFunction(MachineFunction &MF) = 0;
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif
|