LLVM
23.0.0git
include
llvm
Transforms
Vectorize
SandboxVectorizer
Passes
NullPass.h
Go to the documentation of this file.
1
//===- NullPass.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
// A null region pass that does nothing. Used for testing.
10
//
11
12
#ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_NULLPASS_H
13
#define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_NULLPASS_H
14
15
#include "
llvm/SandboxIR/Pass.h
"
16
17
namespace
llvm::sandboxir
{
18
19
class
Region
;
20
21
/// A Region pass that does nothing, for use as a placeholder in tests.
22
class
NullPass
final :
public
RegionPass
{
23
public
:
24
NullPass
() :
RegionPass
(
"null"
) {}
25
bool
runOnRegion
(
Region
&R,
const
Analyses
&
A
)
final
{
return
false
; }
26
};
27
28
}
// namespace llvm::sandboxir
29
30
#endif
// LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_NULLPASS_H
A
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
Pass.h
llvm::sandboxir::Analyses
Definition
Pass.h:26
llvm::sandboxir::NullPass::runOnRegion
bool runOnRegion(Region &R, const Analyses &A) final
\Returns true if it modifies R.
Definition
NullPass.h:25
llvm::sandboxir::NullPass::NullPass
NullPass()
Definition
NullPass.h:24
llvm::sandboxir::RegionPass::RegionPass
RegionPass(StringRef Name)
Name can't contain any spaces or start with '-'.
Definition
Pass.h:87
llvm::sandboxir::Region
Definition
Region.h:66
llvm::sandboxir
Definition
Argument.h:15
Generated on
for LLVM by
1.14.0