| 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 |
| 22 |