The language-neutral type of an IR
The interface to
IRType and its subclasses is the same across all languages for which the IR
is supported, so analyses that expect to be used for multiple languages should generally use
IRType rather than a language-specific type.
Many types from the language-specific type system will map to a single canonical
types that map to the same
IRType are considered equivalent by the IR. As an example, in C++,
all pointer types map to the same instance of
Gets the size of the type, in bytes, if known.
Gets a single instance of
Gets a string that uniquely identifies this
Gets a textual representation of this type.