LLVM API Documentation
#include <TargetRegisterInfo.h>
Public Member Functions | |
PrintRegUnit (unsigned unit, const TargetRegisterInfo *tri) | |
void | print (raw_ostream &) const |
Protected Attributes | |
const TargetRegisterInfo * | TRI |
unsigned | Unit |
PrintRegUnit - Helper class for printing register units on a raw_ostream.
Register units are named after their root registers:
AL - Single root. FP0~ST7 - Dual roots.
Usage: OS << PrintRegUnit(Unit, TRI) << '
';
Definition at line 931 of file TargetRegisterInfo.h.
llvm::PrintRegUnit::PrintRegUnit | ( | unsigned | unit, |
const TargetRegisterInfo * | tri | ||
) | [inline] |
Definition at line 936 of file TargetRegisterInfo.h.
void PrintRegUnit::print | ( | raw_ostream & | OS | ) | const |
Reimplemented in llvm::PrintVRegOrUnit.
Definition at line 55 of file TargetRegisterInfo.cpp.
References llvm::MCRegisterInfo::getName(), llvm::MCRegisterInfo::getNumRegUnits(), llvm::MCRegUnitRootIterator::isValid(), TRI, and Unit.
Referenced by llvm::operator<<().
const TargetRegisterInfo* llvm::PrintRegUnit::TRI [protected] |
Definition at line 933 of file TargetRegisterInfo.h.
Referenced by print(), and llvm::PrintVRegOrUnit::print().
unsigned llvm::PrintRegUnit::Unit [protected] |
Definition at line 934 of file TargetRegisterInfo.h.
Referenced by print(), and llvm::PrintVRegOrUnit::print().