LLVM 20.0.0git
IPO.h
Go to the documentation of this file.
1//===- llvm/Transforms/IPO.h - Interprocedural Transformations --*- 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 header file defines prototypes for accessor functions that expose passes
10// in the IPO transformations library.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_TRANSFORMS_IPO_H
15#define LLVM_TRANSFORMS_IPO_H
16
17namespace llvm {
18
19class ModulePass;
20class Pass;
21class raw_ostream;
22
23//===----------------------------------------------------------------------===//
24/// createDeadArgEliminationPass - This pass removes arguments from functions
25/// which are not used by the body of the function.
26///
28
29/// DeadArgHacking pass - Same as DAE, but delete arguments of external
30/// functions as well. This is definitely not safe, and should only be used by
31/// bugpoint.
33
34//===----------------------------------------------------------------------===//
35//
36/// createLoopExtractorPass - This pass extracts all natural loops from the
37/// program into a function if it can.
38///
40
41/// createSingleLoopExtractorPass - This pass extracts one natural loop from the
42/// program into a function if it can. This is used by bugpoint.
43///
45
46//===----------------------------------------------------------------------===//
47/// createBarrierNoopPass - This pass is purely a module pass barrier in a pass
48/// manager.
50
51/// What to do with the summary when running passes that operate on it.
53 None, ///< Do nothing.
54 Import, ///< Import information from summary.
55 Export, ///< Export information to summary.
56};
57
58} // End llvm namespace
59
60#endif
aarch64 AArch64 CCMP Pass
ModulePass class - This class is used to implement unstructured interprocedural optimizations and ana...
Definition: Pass.h:251
Pass interface - Implemented by all 'passes'.
Definition: Pass.h:94
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
ModulePass * createDeadArgEliminationPass()
createDeadArgEliminationPass - This pass removes arguments from functions which are not used by the b...
PassSummaryAction
What to do with the summary when running passes that operate on it.
Definition: IPO.h:52
@ Export
Export information to summary.
@ Import
Import information from summary.
@ None
Definition: CodeGenData.h:101
Pass * createLoopExtractorPass()
createLoopExtractorPass - This pass extracts all natural loops from the program into a function if it...
Pass * createSingleLoopExtractorPass()
createSingleLoopExtractorPass - This pass extracts one natural loop from the program into a function ...
ModulePass * createBarrierNoopPass()
createBarrierNoopPass - This pass is purely a module pass barrier in a pass manager.
ModulePass * createDeadArgHackingPass()
DeadArgHacking pass - Same as DAE, but delete arguments of external functions as well.