LLVM 22.0.0git
TransactionSave.h
Go to the documentation of this file.
1//===- TransactionSave.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// This is a region pass that simply calls Context::save() to save the IR state.
10//
11
12#ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_TRANSACTIONSAVE_H
13#define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_TRANSACTIONSAVE_H
14
15#include "llvm/SandboxIR/Pass.h"
17
18namespace llvm::sandboxir {
19
21public:
22 TransactionSave() : RegionPass("tr-save") {}
23 bool runOnRegion(Region &Rgn, const Analyses &A) final;
24};
25
26} // namespace llvm::sandboxir
27
28#endif // LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_TRANSACTIONSAVE_H
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
RegionPass(StringRef Name)
Name can't contain any spaces or start with '-'.
Definition Pass.h:87
The main job of the Region is to point to new instructions generated by vectorization passes.
Definition Region.h:96
bool runOnRegion(Region &Rgn, const Analyses &A) final
\Returns true if it modifies R.