LLVM 24.0.0git
LeonPasses.h
Go to the documentation of this file.
1//===------- LeonPasses.h - Define passes specific to LEON ----------------===//
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//
10//===----------------------------------------------------------------------===//
11
12#ifndef LLVM_LIB_TARGET_SPARC_LEON_PASSES_H
13#define LLVM_LIB_TARGET_SPARC_LEON_PASSES_H
14
16#include "llvm/Pass.h"
17
18namespace llvm {
19class SparcSubtarget;
20
22 : public MachineFunctionPass {
23public:
24 static char ID;
25
27 bool runOnMachineFunction(MachineFunction &MF) override;
28
29 StringRef getPassName() const override { return "Errata workaround pass"; };
30
35};
36
37} // namespace llvm
38
39#endif // LLVM_LIB_TARGET_SPARC_LEON_PASSES_H
#define LLVM_LIBRARY_VISIBILITY
Definition Compiler.h:137
Represent the analysis usage information of a pass.
LLVM_ABI void setPreservesCFG()
This function should be called by the pass, iff they do not:
Definition Pass.cpp:280
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
bool runOnMachineFunction(MachineFunction &MF) override
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
Definition LeonPasses.h:31
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
Definition LeonPasses.h:29
Represent a constant reference to a string, i.e.
Definition StringRef.h:56
This is an optimization pass for GlobalISel generic memory operations.