LLVM 24.0.0git
ControlHeightReduction.h
Go to the documentation of this file.
1//===- ControlHeightReduction.h - Control Height Reduction ------*- C++ -*-===//
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// This pass merges conditional blocks of code and reduces the number of
10// conditional branches in the hot paths based on profiles.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_CONTROLHEIGHTREDUCTION_H
15#define LLVM_TRANSFORMS_INSTRUMENTATION_CONTROLHEIGHTREDUCTION_H
16
17#include "llvm/ADT/StringSet.h"
18#include "llvm/IR/PassManager.h"
19
20namespace llvm {
21
22struct InstrumentationOptions;
23
25 : public OptionalPassInfoMixin<ControlHeightReductionPass> {
26public:
28
29private:
30 const InstrumentationOptions *ParsedOpts = nullptr;
31 StringSet<> CHRModules, CHRFunctions;
32};
33} // end namespace llvm
34
35#endif // LLVM_TRANSFORMS_INSTRUMENTATION_CONTROLHEIGHTREDUCTION_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
FunctionAnalysisManager FAM
StringSet - A set-like wrapper for the StringMap.
LLVM_ABI PreservedAnalyses run(Function &F, FunctionAnalysisManager &FAM)
A set of analyses that are preserved following a run of a transformation pass.
Definition Analysis.h:112
StringSet - A wrapper for StringMap that provides set-like functionality.
Definition StringSet.h:25
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.
A CRTP mix-in for passes that can be skipped.