LLVM 20.0.0git
NullPass.h
Go to the documentation of this file.
1#ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_NULLPASS_H
2#define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_NULLPASS_H
3
5
6namespace llvm::sandboxir {
7
8class Region;
9
10/// A Region pass that does nothing, for use as a placeholder in tests.
11class NullPass final : public RegionPass {
12public:
13 NullPass() : RegionPass("null") {}
14 bool runOnRegion(Region &R, const Analyses &A) final { return false; }
15};
16
17} // namespace llvm::sandboxir
18
19#endif // LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_NULLPASS_H
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
A Region pass that does nothing, for use as a placeholder in tests.
Definition: NullPass.h:11
bool runOnRegion(Region &R, const Analyses &A) final
\Returns true if it modifies R.
Definition: NullPass.h:14
A pass that runs on a sandbox::Region.
Definition: Pass.h:80
The main job of the Region is to point to new instructions generated by vectorization passes.
Definition: Region.h:54