LLVM 24.0.0git
GVNSink.h
Go to the documentation of this file.
1//===- GVNSink.h - Sink expressions into successors -----------------------===//
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/// \file
10/// This file provides the interface for the GVNSink pass.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_TRANSFORMS_SCALAR_GVNSINK_H
15#define LLVM_TRANSFORMS_SCALAR_GVNSINK_H
16
17#include "llvm/IR/PassManager.h"
18
19namespace llvm {
20
21/// Uses an "inverted" value numbering to decide the similarity of
22/// expressions and sinks similar expressions into successors.
23struct GVNSinkPass : OptionalPassInfoMixin<GVNSinkPass> {
24 /// Run the pass over the function.
26};
27
28} // end namespace llvm
29
30#endif // LLVM_TRANSFORMS_SCALAR_GVNSINK_H
#define LLVM_ABI
Definition Compiler.h:215
This header defines various interfaces for pass management in LLVM.
#define F(x, y, z)
Definition MD5.cpp:54
A set of analyses that are preserved following a run of a transformation pass.
Definition Analysis.h:112
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.
Uses an "inverted" value numbering to decide the similarity of expressions and sinks similar expressi...
Definition GVNSink.h:23
LLVM_ABI PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Run the pass over the function.
Definition GVNSink.cpp:847
A CRTP mix-in for passes that can be skipped.