LLVM API Documentation

Public Types | Public Member Functions | Static Public Member Functions
llvm::UnOpInit Class Reference

#include <Record.h>

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

List of all members.

Public Types

enum  UnaryOp { CAST, HEAD, TAIL, EMPTY }

Public Member Functions

OpInitclone (std::vector< Init * > &Operands) const override
int getNumOperands () const override
InitgetOperand (int i) const override
UnaryOp getOpcode () const
InitgetOperand () const
InitFold (Record *CurRec, MultiClass *CurMultiClass) const override
InitresolveReferences (Record &R, const RecordVal *RV) const override
std::string getAsString () const override
 getAsString - Convert this value to a string form.

Static Public Member Functions

static bool classof (const Init *I)
static UnOpInitget (UnaryOp opc, Init *lhs, RecTy *Type)

Detailed Description

UnOpInit - !op (X) - Transform an init.

Definition at line 891 of file Record.h.


Member Enumeration Documentation

Enumerator:
CAST 
HEAD 
TAIL 
EMPTY 

Definition at line 893 of file Record.h.


Member Function Documentation

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

Reimplemented from llvm::OpInit.

Definition at line 906 of file Record.h.

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

OpInit* llvm::UnOpInit::clone ( std::vector< Init * > &  Operands) const [inline, override, virtual]

Implements llvm::OpInit.

Definition at line 912 of file Record.h.

References get(), getOpcode(), and llvm::TypedInit::getType().

Init * UnOpInit::Fold ( Record CurRec,
MultiClass CurMultiClass 
) const [override, virtual]
UnOpInit * UnOpInit::get ( UnaryOp  opc,
Init lhs,
RecTy Type 
) [static]
std::string UnOpInit::getAsString ( ) const [override, virtual]

getAsString - Convert this value to a string form.

Implements llvm::Init.

Definition at line 876 of file Record.cpp.

References CAST, EMPTY, llvm::RecTy::getAsString(), llvm::Init::getAsString(), llvm::TypedInit::getType(), HEAD, and TAIL.

Referenced by Fold().

int llvm::UnOpInit::getNumOperands ( ) const [inline, override, virtual]

Implements llvm::OpInit.

Definition at line 918 of file Record.h.

UnaryOp llvm::UnOpInit::getOpcode ( ) const [inline]
Init* llvm::UnOpInit::getOperand ( int  i) const [inline, override, virtual]

Implements llvm::OpInit.

Definition at line 919 of file Record.h.

References getOperand().

Referenced by llvm::StringRecTy::convertValue(), and llvm::DagRecTy::convertValue().

Init* llvm::UnOpInit::getOperand ( ) const [inline]

Definition at line 925 of file Record.h.

Referenced by getOperand().

Init * UnOpInit::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 868 of file Record.cpp.

References Fold(), get(), getOpcode(), llvm::TypedInit::getType(), and llvm::Init::resolveReferences().


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