LLVM 20.0.0git
SandboxVectorizer.h
Go to the documentation of this file.
1//===- SandboxVectorizer.h --------------------------------------*- 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#ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_SANDBOXVECTORIZER_H
9#define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_SANDBOXVECTORIZER_H
10
11#include <memory>
12
15#include "llvm/IR/PassManager.h"
18
19namespace llvm {
20
21class TargetTransformInfo;
22
23class SandboxVectorizerPass : public PassInfoMixin<SandboxVectorizerPass> {
24 TargetTransformInfo *TTI = nullptr;
25 AAResults *AA = nullptr;
26 ScalarEvolution *SE = nullptr;
27
28 std::unique_ptr<sandboxir::Context> Ctx;
29
30 // A pipeline of SandboxIR function passes run by the vectorizer.
32
33 bool runImpl(Function &F);
34
35public:
36 // Make sure the constructors/destructors are out-of-line. This works around a
37 // problem with -DBUILD_SHARED_LIBS=on where components that depend on the
38 // Vectorizer component can't find the vtable for classes like
39 // sandboxir::Pass. This way we don't have to make LLVMPasses add a direct
40 // dependency on SandboxIR.
44
46};
47
48} // namespace llvm
49
50#endif // LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_SANDBOXVECTORIZER_H
This header defines various interfaces for pass management in LLVM.
#define F(x, y, z)
Definition: MD5.cpp:55
A container for analyses that lazily runs them and caches their results.
Definition: PassManager.h:253
A set of analyses that are preserved following a run of a transformation pass.
Definition: Analysis.h:111
SandboxVectorizerPass(SandboxVectorizerPass &&)
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
The main scalar evolution driver.
This pass provides access to the codegen interfaces that are needed for IR-level transformations.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:69