LLVM 22.0.0git
llvm::rdf Namespace Reference

Namespaces

namespace  detail

Classes

struct  BlockNode
struct  BuildOptions
struct  CodeNode
struct  CopyPropagation
struct  DataFlowGraph
struct  DeadCodeElimination
struct  DefNode
struct  FuncNode
struct  IndexedSet
struct  InstrNode
struct  LaneMaskIndex
struct  Liveness
struct  NodeAddr
struct  NodeAllocator
struct  NodeAttrs
struct  NodeBase
struct  PackedRegisterRef
struct  PhiNode
struct  PhiUseNode
struct  PhysicalRegisterInfo
struct  Print
struct  PrintLaneMaskShort
struct  PrintNode
struct  RefNode
struct  RegisterAggr
struct  RegisterAggrMap
struct  RegisterRef
struct  StmtNode
struct  TargetOperandInfo
struct  UseNode

Typedefs

using NodeId = uint32_t
using Node = NodeAddr<NodeBase *>
using Ref = NodeAddr<RefNode *>
using Def = NodeAddr<DefNode *>
using Use = NodeAddr<UseNode *>
using PhiUse = NodeAddr<PhiUseNode *>
using Code = NodeAddr<CodeNode *>
using Instr = NodeAddr<InstrNode *>
using Phi = NodeAddr<PhiNode *>
using Stmt = NodeAddr<StmtNode *>
using Block = NodeAddr<BlockNode *>
using Func = NodeAddr<FuncNode *>
using RegisterSet = std::set<RegisterRef>
using NodeList = SmallVector<Node, 4>
using NodeSet = std::set<NodeId>
using RegisterId = uint32_t

Functions

template<typename T>
 Print (const T &, const DataFlowGraph &) -> Print< T >
raw_ostreamoperator<< (raw_ostream &OS, const Print< RegisterRef > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< NodeId > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< Def > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< Use > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< PhiUse > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< Ref > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< NodeList > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< NodeSet > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< Phi > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< Stmt > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< Instr > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< Block > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< Func > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< RegisterSet > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< RegisterAggr > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< DataFlowGraph::DefStack > &P)
raw_ostreamoperator<< (raw_ostream &OS, const Print< Liveness::RefMap > &P)
template<typename T>
bool disjoint (const std::set< T > &A, const std::set< T > &B)
raw_ostreamoperator<< (raw_ostream &OS, const RegisterAggr &A)
raw_ostreamoperator<< (raw_ostream &OS, const PrintLaneMaskShort &P)
static void printRefHeader (raw_ostream &OS, const Ref RA, const DataFlowGraph &G)

Typedef Documentation

◆ Block

Definition at line 392 of file RDFGraph.h.

◆ Code

Definition at line 388 of file RDFGraph.h.

◆ Def

Definition at line 384 of file RDFGraph.h.

◆ Func

Definition at line 393 of file RDFGraph.h.

◆ Instr

Definition at line 389 of file RDFGraph.h.

◆ Node

Definition at line 381 of file RDFGraph.h.

◆ NodeId

Definition at line 262 of file RDFGraph.h.

◆ NodeList

Definition at line 550 of file RDFGraph.h.

◆ NodeSet

using llvm::rdf::NodeSet = std::set<NodeId>

Definition at line 551 of file RDFGraph.h.

◆ Phi

Definition at line 390 of file RDFGraph.h.

◆ PhiUse

Definition at line 386 of file RDFGraph.h.

◆ Ref

Definition at line 383 of file RDFGraph.h.

◆ RegisterId

Definition at line 32 of file RDFRegisters.h.

◆ RegisterSet

Definition at line 450 of file RDFGraph.h.

◆ Stmt

Definition at line 391 of file RDFGraph.h.

◆ Use

Definition at line 385 of file RDFGraph.h.

Function Documentation

◆ disjoint()

template<typename T>
bool llvm::rdf::disjoint ( const std::set< T > & A,
const std::set< T > & B )

Definition at line 35 of file RDFRegisters.h.

References A(), and B().

Referenced by llvm::rdf::PhysicalRegisterInfo::alias(), and llvm::rdf::DataFlowGraph::isTracked().

◆ operator<<() [1/19]

◆ operator<<() [2/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< DataFlowGraph::DefStack > & P )

Definition at line 317 of file RDFGraph.cpp.

References E(), I, P, and Print().

◆ operator<<() [3/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< Def > & P )

Definition at line 117 of file RDFGraph.cpp.

References N, P, Print(), and printRefHeader().

◆ operator<<() [4/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< Func > & P )

Definition at line 294 of file RDFGraph.cpp.

References I, P, and Print().

◆ operator<<() [5/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< Instr > & P )

Definition at line 247 of file RDFGraph.cpp.

References P, llvm::rdf::NodeAttrs::Phi, Print(), and llvm::rdf::NodeAttrs::Stmt.

◆ operator<<() [6/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< Liveness::RefMap > & P )

Definition at line 61 of file RDFLiveness.cpp.

References I, P, Print(), and llvm::printReg().

◆ operator<<() [7/19]

◆ operator<<() [8/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< NodeList > & P )

Definition at line 174 of file RDFGraph.cpp.

References I, N, P, and Print().

◆ operator<<() [9/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< NodeSet > & P )

Definition at line 184 of file RDFGraph.cpp.

References I, N, P, and Print().

◆ operator<<() [10/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< Phi > & P )

Definition at line 217 of file RDFGraph.cpp.

References P, and Print().

◆ operator<<() [11/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< PhiUse > & P )

Definition at line 145 of file RDFGraph.cpp.

References N, P, Print(), and printRefHeader().

◆ operator<<() [12/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< Ref > & P )

◆ operator<<() [13/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< RegisterAggr > & P )

Definition at line 312 of file RDFGraph.cpp.

References P.

◆ operator<<() [14/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< RegisterRef > & P )

Definition at line 44 of file RDFGraph.cpp.

References P.

◆ operator<<() [15/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< RegisterSet > & P )

Definition at line 304 of file RDFGraph.cpp.

References I, P, and Print().

◆ operator<<() [16/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< Stmt > & P )

Definition at line 223 of file RDFGraph.cpp.

References llvm::find_if(), MI, Opc, P, Print(), llvm::printMBBReference(), and T.

◆ operator<<() [17/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const Print< Use > & P )

Definition at line 134 of file RDFGraph.cpp.

References N, P, Print(), and printRefHeader().

◆ operator<<() [18/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const PrintLaneMaskShort & P )

Definition at line 409 of file RDFRegisters.cpp.

References llvm::format(), P, and llvm::PrintLaneMask().

◆ operator<<() [19/19]

raw_ostream & llvm::rdf::operator<< ( raw_ostream & OS,
const RegisterAggr & A )

Definition at line 404 of file RDFRegisters.cpp.

References A().

◆ Print()

◆ printRefHeader()

void llvm::rdf::printRefHeader ( raw_ostream & OS,
const Ref RA,
const DataFlowGraph & G )
static

Definition at line 110 of file RDFGraph.cpp.

References llvm::rdf::NodeAttrs::Fixed, G, Print(), and RA.

Referenced by operator<<(), operator<<(), and operator<<().