LLVM 22.0.0git
Public Member Functions | List of all members
llvm::SDNodeInfo Class Referencefinal

#include "llvm/CodeGen/SDNodeInfo.h"

Public Member Functions

constexpr SDNodeInfo (unsigned NumOpcodes, const SDNodeDesc *Descs, StringTable Names, const SDTypeConstraint *Constraints)
 
bool hasDesc (unsigned Opcode) const
 Returns true if there is a generated description for a node with the given target-specific opcode.
 
const SDNodeDescgetDesc (unsigned Opcode) const
 Returns the description of a node with the given opcode.
 
ArrayRef< SDTypeConstraintgetConstraints (unsigned Opcode) const
 Returns operand constraints for a node with the given opcode.
 
StringRef getName (unsigned Opcode) const
 Returns the name of the given target-specific opcode, suitable for debug printing.
 
void verifyNode (const SelectionDAG &DAG, const SDNode *N) const
 

Detailed Description

Definition at line 75 of file SDNodeInfo.h.

Constructor & Destructor Documentation

◆ SDNodeInfo()

constexpr llvm::SDNodeInfo::SDNodeInfo ( unsigned  NumOpcodes,
const SDNodeDesc Descs,
StringTable  Names,
const SDTypeConstraint Constraints 
)
inlineconstexpr

Definition at line 82 of file SDNodeInfo.h.

Member Function Documentation

◆ getConstraints()

ArrayRef< SDTypeConstraint > llvm::SDNodeInfo::getConstraints ( unsigned  Opcode) const
inline

Returns operand constraints for a node with the given opcode.

Definition at line 101 of file SDNodeInfo.h.

References getDesc().

◆ getDesc()

const SDNodeDesc & llvm::SDNodeInfo::getDesc ( unsigned  Opcode) const
inline

◆ getName()

StringRef llvm::SDNodeInfo::getName ( unsigned  Opcode) const
inline

Returns the name of the given target-specific opcode, suitable for debug printing.

Definition at line 108 of file SDNodeInfo.h.

References getDesc(), and llvm::SDNodeDesc::NameOffset.

Referenced by llvm::SelectionDAGGenTargetInfo::getTargetNodeName().

◆ hasDesc()

bool llvm::SDNodeInfo::hasDesc ( unsigned  Opcode) const
inline

◆ verifyNode()

void SDNodeInfo::verifyNode ( const SelectionDAG DAG,
const SDNode N 
) const

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