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