LLVM  3.7.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::RecordRecTy Class Reference

RecordRecTy - '[classname]' - Represent an instance of a class, such as: (R32 X = EAX). More...

#include <Record.h>

Inheritance diagram for llvm::RecordRecTy:
[legend]
Collaboration diagram for llvm::RecordRecTy:
[legend]

Public Member Functions

RecordgetRecord () const
 
std::string getAsString () const override
 
bool typeIsConvertibleTo (const RecTy *RHS) const override
 typeIsConvertibleTo - Return true if all values of 'this' type can be converted to the specified type. More...
 
- Public Member Functions inherited from llvm::RecTy
RecTyKind getRecTyKind () const
 
 RecTy (RecTyKind K)
 
virtual ~RecTy ()
 
void print (raw_ostream &OS) const
 
void dump () const
 
ListRecTygetListTy ()
 getListTy - Returns the type representing list<this>. More...
 

Static Public Member Functions

static bool classof (const RecTy *RT)
 
static RecordRecTyget (Record *R)
 

Friends

class Record
 

Additional Inherited Members

- Public Types inherited from llvm::RecTy
enum  RecTyKind {
  BitRecTyKind, BitsRecTyKind, IntRecTyKind, StringRecTyKind,
  ListRecTyKind, DagRecTyKind, RecordRecTyKind
}
 Subclass discriminator (for dyn_cast<> et al.) More...
 

Detailed Description

RecordRecTy - '[classname]' - Represent an instance of a class, such as: (R32 X = EAX).

Definition at line 192 of file Record.h.

Member Function Documentation

static bool llvm::RecordRecTy::classof ( const RecTy RT)
inlinestatic

Definition at line 198 of file Record.h.

References llvm::RecTy::getRecTyKind(), and llvm::RecTy::RecordRecTyKind.

RecordRecTy * RecordRecTy::get ( Record R)
static

Definition at line 154 of file Record.cpp.

References llvm::dyn_cast(), llvm::Record::getDefInit(), and llvm::TypedInit::getType().

Referenced by llvm::resolveTypes().

std::string RecordRecTy::getAsString ( ) const
overridevirtual

Implements llvm::RecTy.

Definition at line 158 of file Record.cpp.

References llvm::Record::getName().

Record* llvm::RecordRecTy::getRecord ( ) const
inline

Definition at line 204 of file Record.h.

Referenced by typeIsConvertibleTo().

bool RecordRecTy::typeIsConvertibleTo ( const RecTy RHS) const
overridevirtual

typeIsConvertibleTo - Return true if all values of 'this' type can be converted to the specified type.

Reimplemented from llvm::RecTy.

Definition at line 162 of file Record.cpp.

References llvm::dyn_cast(), getRecord(), llvm::Record::getSuperClasses(), llvm::Record::isSubClassOf(), and llvm::PPCISD::SC.

Friends And Related Function Documentation

friend class Record
friend

Definition at line 195 of file Record.h.


The documentation for this class was generated from the following files: