[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Analysis / Interval.cpp
blobe228ec4f212638ed636e4a18c302a1007cd47179
1 //===- Interval.cpp - Interval class code ---------------------------------===//
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 file contains the definition of the Interval class, which represents a
10 // partition of a control flow graph of some kind.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Analysis/Interval.h"
15 #include "llvm/IR/BasicBlock.h"
16 #include "llvm/IR/CFG.h"
17 #include "llvm/Support/raw_ostream.h"
19 using namespace llvm;
21 //===----------------------------------------------------------------------===//
22 // Interval Implementation
23 //===----------------------------------------------------------------------===//
25 void Interval::print(raw_ostream &OS) const {
26 OS << "-------------------------------------------------------------\n"
27 << "Interval Contents:\n";
29 // Print out all of the basic blocks in the interval...
30 for (const BasicBlock *Node : Nodes)
31 OS << *Node << "\n";
33 OS << "Interval Predecessors:\n";
34 for (const BasicBlock *Predecessor : Predecessors)
35 OS << *Predecessor << "\n";
37 OS << "Interval Successors:\n";
38 for (const BasicBlock *Successor : Successors)
39 OS << *Successor << "\n";