LLVM 23.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(StringRef AuxArg) : RegionPass("tr-save") {
23 assert(AuxArg.empty() && "This pass ignores aux arg!");
24 }
25 bool runOnRegion(Region &Rgn, const Analyses &A) final;
26};
27
28} // namespace llvm::sandboxir
29
30#endif // LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_TRANSACTIONSAVE_H
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
#define LLVM_ABI
Definition Compiler.h:215
Represent a constant reference to a string, i.e.
Definition StringRef.h:56
constexpr bool empty() const
Check if the string is empty.
Definition StringRef.h:141
RegionPass(StringRef Name)
Name can't contain any spaces or start with '-'.
Definition Pass.h:87