CodeQL library for C/C++
codeql/cpp-all 0.12.9 (changelog, source)
Search

Class OperandTag

Identifies the kind of operand on an instruction. Each Instruction has at most one operand of any single OperandTag. The set of OperandTags used by an Instruction is determined by the instruction’s opcode.

Import path

import semmle.code.cpp.ir.implementation.internal.OperandTag

Direct supertypes

Known direct subtypes

    Predicates

    alwaysPrintLabel

    Holds if the operand should always be prefixed with its label in the dump of its instruction.

    getId

    Gets an identifier that uniquely identifies this operand within its instruction.

    getLabel

    Gets a label that will appear before the operand when the IR is printed.

    getSortOrder

    Gets an integer that represents where this this operand will appear in the operand list of an instruction when the IR is printed.

    toString

    Gets a textual representation of this operand tag