LLVM  10.0.0svn
Scalarizer.h
Go to the documentation of this file.
1 //===- Scalarizer.h --- Scalarize vector operations -----------------------===//
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 pass converts vector operations into scalar operations, in order
11 /// to expose optimization opportunities on the individual scalar operations.
12 /// It is mainly intended for targets that do not have vector units, but it
13 /// may also be useful for revectorizing code to different vector widths.
14 //
15 //===----------------------------------------------------------------------===//
16 
17 #ifndef LLVM_TRANSFORMS_SCALAR_SCALARIZER_H
18 #define LLVM_TRANSFORMS_SCALAR_SCALARIZER_H
19 
20 #include "llvm/IR/PassManager.h"
21 
22 namespace llvm {
23 
24 class ScalarizerPass : public PassInfoMixin<ScalarizerPass> {
25 public:
27 };
28 
29 /// Create a legacy pass manager instance of the Scalarizer pass
31 
32 }
33 
34 #endif /* LLVM_TRANSFORMS_SCALAR_SCALARIZER_H */
This class represents lattice values for constants.
Definition: AllocatorList.h:23
F(f)
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:373
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Definition: Scalarizer.cpp:855
A set of analyses that are preserved following a run of a transformation pass.
Definition: PassManager.h:154
FunctionPass class - This class is used to implement most global optimizations.
Definition: Pass.h:284
FunctionPass * createScalarizerPass()
Create a legacy pass manager instance of the Scalarizer pass.
Definition: Scalarizer.cpp:310
A container for analyses that lazily runs them and caches their results.
This header defines various interfaces for pass management in LLVM.