LLVM 22.0.0git
|
#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 SDNodeDesc & | getDesc (unsigned Opcode) const |
Returns the description of a node with the given opcode. | |
ArrayRef< SDTypeConstraint > | getConstraints (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 |
Definition at line 75 of file SDNodeInfo.h.
|
inlineconstexpr |
Definition at line 82 of file SDNodeInfo.h.
|
inline |
Returns operand constraints for a node with the given opcode.
Definition at line 101 of file SDNodeInfo.h.
References llvm::ArrayRef(), and getDesc().
|
inline |
Returns the description of a node with the given opcode.
Definition at line 95 of file SDNodeInfo.h.
References assert(), llvm::ISD::BUILTIN_OP_END, and hasDesc().
Referenced by getConstraints(), getName(), and verifyNode().
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.
Returns true if there is a generated description for a node with the given target-specific opcode.
Definition at line 89 of file SDNodeInfo.h.
References assert(), and llvm::ISD::BUILTIN_OP_END.
Referenced by getDesc().
void SDNodeInfo::verifyNode | ( | const SelectionDAG & | DAG, |
const SDNode * | N ) const |
Definition at line 43 of file SDNodeInfo.cpp.
References checkOperandType(), checkResultType(), getDesc(), N, OpIdx, llvm::ISD::Register, llvm::ISD::RegisterMask, reportNodeError(), llvm::SDNPHasChain, llvm::SDNPInGlue, llvm::SDNPOptInGlue, llvm::SDNPOutGlue, and llvm::SDNPVariadic.