LLVM API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions
llvm::OpInit Class Reference

#include <Record.h>

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

List of all members.

Public Member Functions

virtual OpInitclone (std::vector< Init * > &Operands) const =0
virtual int getNumOperands () const =0
virtual InitgetOperand (int i) const =0
virtual InitFold (Record *CurRec, MultiClass *CurMultiClass) const =0
InitconvertInitializerTo (RecTy *Ty) const override
InitresolveListElementReference (Record &R, const RecordVal *RV, unsigned Elt) const override
InitgetBit (unsigned Bit) const override

Static Public Member Functions

static bool classof (const Init *I)

Protected Member Functions

 OpInit (InitKind K, RecTy *Type)

Detailed Description

OpInit - Base class for operators

Definition at line 857 of file Record.h.


Constructor & Destructor Documentation

llvm::OpInit::OpInit ( InitKind  K,
RecTy Type 
) [inline, explicit, protected]

Definition at line 862 of file Record.h.


Member Function Documentation

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

Reimplemented from llvm::TypedInit.

Reimplemented in llvm::TernOpInit, llvm::BinOpInit, and llvm::UnOpInit.

Definition at line 865 of file Record.h.

References llvm::Init::getKind(), llvm::Init::IK_FirstOpInit, and llvm::Init::IK_LastOpInit.

virtual OpInit* llvm::OpInit::clone ( std::vector< Init * > &  Operands) const [pure virtual]
Init* llvm::OpInit::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 879 of file Record.h.

References llvm::RecTy::convertValue().

virtual Init* llvm::OpInit::Fold ( Record CurRec,
MultiClass CurMultiClass 
) const [pure virtual]
Init * OpInit::getBit ( unsigned  Bit) const [override, virtual]

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

Implements llvm::Init.

Definition at line 747 of file Record.cpp.

References llvm::BitRecTy::get(), llvm::VarBitInit::get(), and llvm::TypedInit::getType().

virtual int llvm::OpInit::getNumOperands ( ) const [pure virtual]
virtual Init* llvm::OpInit::getOperand ( int  i) const [pure virtual]
Init * OpInit::resolveListElementReference ( Record R,
const RecordVal RV,
unsigned  Elt 
) const [override, virtual]

resolveListElementReference - This method is used to implement VarListElementInit::resolveReferences. If the list element is resolvable now, we return the resolved value, otherwise we return null.

Implements llvm::TypedInit.

Definition at line 725 of file Record.cpp.

References llvm::dyn_cast(), Fold(), llvm::VarListElementInit::get(), llvm::TypedInit::resolveListElementReference(), and llvm::Init::resolveReferences().


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