LLVM 20.0.0git
SandboxVectorizerPassBuilder.h
Go to the documentation of this file.
1//===- SandboxVectorizerPassBuilder.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//
9// Utility functions so passes with sub-pipelines can create SandboxVectorizer
10// passes without replicating the same logic in each pass.
11//
12#ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_SANDBOXVECTORIZERPASSBUILDER_H
13#define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_SANDBOXVECTORIZERPASSBUILDER_H
14
15#include "llvm/ADT/StringRef.h"
16#include "llvm/SandboxIR/Pass.h"
17
18#include <memory>
19
20namespace llvm::sandboxir {
21
23public:
24 static std::unique_ptr<FunctionPass> createFunctionPass(StringRef Name,
25 StringRef Args);
26 static std::unique_ptr<RegionPass> createRegionPass(StringRef Name,
27 StringRef Args);
28};
29
30} // namespace llvm::sandboxir
31
32#endif // LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_SANDBOXVECTORIZERPASSBUILDER_H
std::string Name
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:51
static std::unique_ptr< RegionPass > createRegionPass(StringRef Name, StringRef Args)
static std::unique_ptr< FunctionPass > createFunctionPass(StringRef Name, StringRef Args)