LLVM 24.0.0git
GVNHoist.h
Go to the documentation of this file.
1//===- GVNHoist.h - Hoist scalar and load expressions ---------------------===//
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 GVNHoist pass.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_TRANSFORMS_SCALAR_GVNHOIST_H
15#define LLVM_TRANSFORMS_SCALAR_GVNHOIST_H
16
17#include "llvm/IR/PassManager.h"
18
19namespace llvm {
20
21/// A simple and fast domtree-based GVN pass to hoist common expressions
22/// from sibling branches.
23struct GVNHoistPass : OptionalPassInfoMixin<GVNHoistPass> {
24 /// Run the pass over the function.
26};
27
28} // namespace llvm
29
30#endif // LLVM_TRANSFORMS_SCALAR_GVNHOIST_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.
A simple and fast domtree-based GVN pass to hoist common expressions from sibling branches.
Definition GVNHoist.h:23
LLVM_ABI PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Run the pass over the function.
A CRTP mix-in for passes that can be skipped.