LLVM API Documentation

llvm::TargetOperandInfo Class Reference

#include <TargetInstrDesc.h>

Collaboration diagram for llvm::TargetOperandInfo:
[legend]

List of all members.

Public Member Functions

const TargetRegisterClass * getRegClass (const TargetRegisterInfo *TRI) const
 Currently no other information.
bool isLookupPtrRegClass () const
bool isPredicate () const
bool isOptionalDef () const

Public Attributes

unsigned short RegClass
unsigned short Flags
 Flags - These are flags from the TOI::OperandFlags enum.
unsigned Constraints


Detailed Description

TargetOperandInfo - This holds information about one operand of a machine instruction, indicating the register class for register operands, etc.

Definition at line 46 of file TargetInstrDesc.h.


Member Function Documentation

const TargetRegisterClass * TargetOperandInfo::getRegClass ( const TargetRegisterInfo *  TRI  )  const

Currently no other information.

getRegClass - Get the register class for the operand, handling resolution of "symbolic" pointer register classes etc. If this is not a register operand, this returns null.

getRegClass - Get the register class for the operand, handling resolution of "symbolic" pointer register classes etc. If this is not a register operand, this returns null.

Definition at line 28 of file TargetInstrInfo.cpp.

References llvm::TargetRegisterInfo::getPointerRegClass(), llvm::TargetRegisterInfo::getRegClass(), isLookupPtrRegClass(), and RegClass.

Referenced by llvm::X86InstrInfo::unfoldMemoryOperand().

bool llvm::TargetOperandInfo::isLookupPtrRegClass (  )  const [inline]

isLookupPtrRegClass - Set if this operand is a pointer value and it requires a callback to look up its register class.

Definition at line 73 of file TargetInstrDesc.h.

References Flags, and llvm::TOI::LookupPtrRegClass.

Referenced by llvm::ScheduleDAGInstrs::BuildSchedGraph(), and getRegClass().

bool llvm::TargetOperandInfo::isPredicate (  )  const [inline]

isPredicate - Set if this is one of the operands that made up of the predicate operand that controls an isPredicable() instruction.

Definition at line 77 of file TargetInstrDesc.h.

References Flags, and llvm::TOI::Predicate.

Referenced by llvm::MachineInstr::copyPredicates(), llvm::MachineInstr::findFirstPredOperandIdx(), and llvm::TargetInstrInfoImpl::PredicateInstruction().

bool llvm::TargetOperandInfo::isOptionalDef (  )  const [inline]

isOptionalDef - Set if this operand is a optional def.

Definition at line 81 of file TargetInstrDesc.h.

References Flags, and llvm::TOI::OptionalDef.


Member Data Documentation

RegClass - This specifies the register class enumeration of the operand if the operand is a register. If isLookupPtrRegClass is set, then this is an index that is passed to TargetRegisterInfo::getPointerRegClass(x) to get a dynamic register class.

NOTE: This member should be considered to be private, all access should go through "getRegClass(TRI)" below.

Definition at line 55 of file TargetInstrDesc.h.

Referenced by getRegClass().

Flags - These are flags from the TOI::OperandFlags enum.

Definition at line 58 of file TargetInstrDesc.h.

Referenced by isLookupPtrRegClass(), isOptionalDef(), and isPredicate().

Lower 16 bits are used to specify which constraints are set. The higher 16 bits are used to specify the value of constraints (4 bits each).

Definition at line 62 of file TargetInstrDesc.h.

Referenced by llvm::TargetInstrDesc::getOperandConstraint().


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