LLVM 22.0.0git
InstrMaps.cpp
Go to the documentation of this file.
1//===- InstructionMaps.cpp - Maps scalars to vectors and reverse ----------===//
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
10#include "llvm/Support/Debug.h"
12
13namespace llvm::sandboxir {
14
15#ifndef NDEBUG
17 OS << Idx << ". " << *LegalityRes << " Depth:" << Depth << "\n";
18 OS.indent(2) << "Bndl:\n";
19 for (Value *V : Bndl)
20 OS.indent(4) << *V << "\n";
21 OS.indent(2) << "UserBndl:\n";
22 for (Value *V : UserBndl)
23 OS.indent(4) << *V << "\n";
24}
25
26void Action::dump() const { print(dbgs()); }
27
28void InstrMaps::dump() const {
29 print(dbgs());
30 dbgs() << "\n";
31}
32#endif // NDEBUG
33
34} // namespace llvm::sandboxir
raw_pwrite_stream & OS
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
void print(raw_ostream &OS) const
Definition: InstrMaps.h:100
LLVM_DUMP_METHOD void dump() const
Definition: InstrMaps.cpp:28
A SandboxIR Value has users. This is the base class.
Definition: Value.h:66
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
Definition: Debug.cpp:207
SmallVector< Value * > UserBndl
Definition: InstrMaps.h:32
SmallVector< Value *, 4 > Bndl
Definition: InstrMaps.h:31
void print(raw_ostream &OS) const
Definition: InstrMaps.cpp:16
const LegalityResult * LegalityRes
Definition: InstrMaps.h:30