LLVM 22.0.0git
TransactionSave.cpp
Go to the documentation of this file.
1//===- TransactionSave.cpp - Save the IR state ----------------------------===//
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
12
13namespace llvm::sandboxir {
14
16 LLVM_DEBUG(dbgs() << DEBUG_PREFIX << "*** Save Transaction ***\n");
17 Rgn.getContext().save();
18 return false;
19}
20
21} // namespace llvm::sandboxir
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
This file defines an InstructionCost class that is used when calculating the cost of an instruction,...
#define LLVM_DEBUG(...)
Definition Debug.h:119
#define DEBUG_PREFIX
Definition Debug.h:19
void save()
Convenience function for getTracker().save()
Definition Context.h:247
The main job of the Region is to point to new instructions generated by vectorization passes.
Definition Region.h:96
Context & getContext() const
Definition Region.h:148
bool runOnRegion(Region &Rgn, const Analyses &A) final
\Returns true if it modifies R.
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
Definition Debug.cpp:207