LLVM  8.0.1
LoopStrengthReduce.h
Go to the documentation of this file.
1 //===- LoopStrengthReduce.h - Loop Strength Reduce Pass ---------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This transformation analyzes and transforms the induction variables (and
11 // computations derived from them) into forms suitable for efficient execution
12 // on the target.
13 //
14 // This pass performs a strength reduction on array references inside loops that
15 // have as one or more of their components the loop induction variable, it
16 // rewrites expressions to take advantage of scaled-index addressing modes
17 // available on the target, and it performs a variety of other optimizations
18 // related to loop induction variables.
19 //
20 //===----------------------------------------------------------------------===//
21 
22 #ifndef LLVM_TRANSFORMS_SCALAR_LOOPSTRENGTHREDUCE_H
23 #define LLVM_TRANSFORMS_SCALAR_LOOPSTRENGTHREDUCE_H
24 
26 #include "llvm/IR/PassManager.h"
27 
28 namespace llvm {
29 
30 class Loop;
31 class LPMUpdater;
32 
33 /// Performs Loop Strength Reduce Pass.
34 class LoopStrengthReducePass : public PassInfoMixin<LoopStrengthReducePass> {
35 public:
38 };
39 
40 } // end namespace llvm
41 
42 #endif // LLVM_TRANSFORMS_SCALAR_LOOPSTRENGTHREDUCE_H
This class represents lattice values for constants.
Definition: AllocatorList.h:24
The adaptor from a function pass to a loop pass computes these analyses and makes them available to t...
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:366
This header provides classes for managing per-loop analyses.
PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM, LoopStandardAnalysisResults &AR, LPMUpdater &U)
A set of analyses that are preserved following a run of a transformation pass.
Definition: PassManager.h:154
Performs Loop Strength Reduce Pass.
This class provides an interface for updating the loop pass manager based on mutations to the loop ne...
Represents a single loop in the control flow graph.
Definition: LoopInfo.h:465
A container for analyses that lazily runs them and caches their results.
This header defines various interfaces for pass management in LLVM.