Class Opcode
An opcode that specifies the operation performed by an Instruction
.
Import path
import semmle.code.cpp.ir.IR
Direct supertypes
Known direct subtypes
- AliasedDefinition
- AliasedUse
- ArithmeticOpcode
- BinaryOpcode
- BitwiseOpcode
- BufferAccessOpcode
- BuiltInOperationOpcode
- Call
- CatchOpcode
- Chi
- Constant
- CopyOpcode
- EnterFunction
- EntireAllocationAccessOpcode
- Error
- EscapedReadOpcode
- EscapedWriteOpcode
- ExitFunction
- FunctionAddress
- IndirectMemoryAccessOpcode
- InitializeNonLocal
- InitializeThis
- InlineAsm
- MayReadOpcode
- MayWriteOpcode
- NewObj
- NoOp
- Phi
- ReturnOpcode
- SideEffectOpcode
- StringConstant
- ThrowOpcode
- UnaryOpcode
- Unreached
- Unwind
- VariableAddress
- VirtualDeleteFunctionAddress
Predicates
getReadMemoryAccess |
Gets the kind of memory access performed by this instruction’s |
getWriteMemoryAccess |
Gets the kind of memory access performed by this instruction’s result. Holds only for opcodes with a memory result. |
hasAddressOperand |
Holds if the instruction has an |
hasBufferSizeOperand |
Holds if the instruction has a |
hasMayReadMemoryAccess |
Holds if the instruction’s read memory access is a |
hasMayWriteMemoryAccess |
Holds if the instruction’s write memory access is a |
hasOperand |
Holds if the instruction must have an operand with the specified |
hasOperandInternal |
Holds if the instruction must have an operand with the specified |
toString |
Gets a textual representation of this element. |