Represents a TableGen type.

Synopsis

Declared in <llvm/TableGen/Record.h>

class RecTy;

Enums

Name

Description

RecTyKind

Subclass discriminator (for dyn_cast<> et al.)

Member Functions

Name

Description

RecTy [constructor]

Construct a type of kind K uniqued by RK.

~RecTy [destructor] [virtual]

Destroy this type.

dump

Print this type to the standard error stream.

getAsString [virtual]

Return the TableGen spelling of this type.

getListTy

Returns the type representing list<thistype>.

getRecTyKind

Return this type's kind.

getRecordKeeper

Return the RecordKeeper that uniqued this Type.

print

Print this type to OS.

typeIsA [virtual]

Return true if 'this' type is equal to or a subtype of RHS. For example, a bit set is not an int, but they are convertible.

typeIsConvertibleTo [virtual]

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

Non-Member Functions

Name

Description

resolveTypes

Find a common type that T1 and T2 convert to. Return 0 if no such type exists.

Derived Classes

Name

Description

BitRecTy

'bit' ‐ Represent a single bit

BitsRecTy

'bits<n>' ‐ Represent a fixed number of bits

DagRecTy

'dag' ‐ Represent a dag fragment

IntRecTy

'int' ‐ Represent an integer value of no particular size

ListRecTy

'list<Ty>' ‐ Represent a list of element values, all of which must be of the specified type. The type is stored in ElementTy.

RecordRecTy

'[classname]' ‐ Type of record values that have zero or more superclasses.

StringRecTy

'string' ‐ Represent an string value

Created with MrDocs