LLVM 20.0.0git
RegionsFromMetadata.cpp
Go to the documentation of this file.
1//===- RegionsFromMetadata.cpp - A helper to test RegionPasses -----------===//
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
10
13
14namespace llvm::sandboxir {
15
17 : FunctionPass("regions-from-metadata"),
18 RPM("rpm", Pipeline, SandboxVectorizerPassBuilder::createRegionPass) {}
19
23 for (auto &R : Regions) {
24 RPM.runOnRegion(*R, A);
25 }
26 return false;
27}
28
29} // namespace llvm::sandboxir
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
#define F(x, y, z)
Definition: MD5.cpp:55
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Definition: SmallVector.h:1196
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:51
A pass that runs on a sandbox::Function.
Definition: Pass.h:71
bool runOnRegion(Region &R, const Analyses &A) final
\Returns true if it modifies R.
Definition: PassManager.cpp:23
static SmallVector< std::unique_ptr< Region > > createRegionsFromMD(Function &F)
Definition: Region.cpp:61
bool runOnFunction(Function &F, const Analyses &A) final
\Returns true if it modifies F.