LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::VarBitInit Class Reference

#include <Record.h>

Inheritance diagram for llvm::VarBitInit:
Inheritance graph
[legend]
Collaboration diagram for llvm::VarBitInit:
Collaboration graph
[legend]

List of all members.

Public Member Functions

InitconvertInitializerTo (RecTy *Ty) const override
InitgetBitVar () const override
unsigned getBitNum () const override
std::string getAsString () const override
 getAsString - Convert this value to a string form.
InitresolveReferences (Record &R, const RecordVal *RV) const override
InitgetBit (unsigned B) const override

Static Public Member Functions

static bool classof (const Init *I)
static VarBitInitget (TypedInit *T, unsigned B)

Detailed Description

VarBitInit - Opcode{0} - Represent access to one bit of a variable or field.

Definition at line 1102 of file Record.h.


Member Function Documentation

static bool llvm::VarBitInit::classof ( const Init I) [inline, static]

Definition at line 1118 of file Record.h.

References llvm::Init::getKind(), and llvm::Init::IK_VarBitInit.

Init* llvm::VarBitInit::convertInitializerTo ( RecTy Ty) const [inline, override, virtual]

convertInitializerTo - This virtual function is a simple call-back function that should be overridden to call the appropriate RecTy::convertValue method.

Implements llvm::Init.

Definition at line 1123 of file Record.h.

References llvm::RecTy::convertValue().

VarBitInit * VarBitInit::get ( TypedInit T,
unsigned  B 
) [static]
std::string VarBitInit::getAsString ( ) const [override, virtual]

getAsString - Convert this value to a string form.

Implements llvm::Init.

Definition at line 1425 of file Record.cpp.

References llvm::Init::getAsString(), and llvm::utostr().

Init* llvm::VarBitInit::getBit ( unsigned  Bit) const [inline, override, virtual]

getBit - This method is used to return the initializer for the specified bit.

Implements llvm::Init.

Definition at line 1133 of file Record.h.

unsigned llvm::VarBitInit::getBitNum ( ) const [inline, override, virtual]

getBitNum - This method is used to retrieve the bit number of a bit reference. For non-VarBitInit, it simply returns 0.

Reimplemented from llvm::Init.

Definition at line 1128 of file Record.h.

Referenced by resolveReferences().

Init* llvm::VarBitInit::getBitVar ( ) const [inline, override, virtual]

getBitVar - This method is used to retrieve the initializer for bit reference. For non-VarBitInit, it simply returns itself.

Reimplemented from llvm::Init.

Definition at line 1127 of file Record.h.

Init * VarBitInit::resolveReferences ( Record R,
const RecordVal RV 
) const [override, virtual]

resolveReferences - This method is used by classes that refer to other variables which may not be defined at the time the expression is formed. If a value is set for the variable later, this method will be called on users of the value to allow the value to propagate out.

Reimplemented from llvm::Init.

Definition at line 1429 of file Record.cpp.

References llvm::Init::getBit(), getBitNum(), I, and llvm::Init::resolveReferences().


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