asmjit::JumpNode Class Reference

Jump instruction with JumpAnnotation.

This node should be only used to represent jump where the jump target cannot be deduced by examining instruction operands. For example if the jump target is register or memory location. This pattern is often used to perform indirect jumps that use jump table, e.g. to implement switch{} statement.

Public Members

- Public Attributes inherited from asmjit::InstNode
- Public Attributes inherited from asmjit::BaseNode

Member Functions

Construction & Destruction
- Public Member Functions inherited from asmjit::InstNode
- Public Member Functions inherited from asmjit::BaseNode

Additional Inherited Members

- Public Types inherited from asmjit::InstNode
- Public Types inherited from asmjit::BaseNode

Member Function Documentation

bool JumpNode::hasAnnotation() constnoexcept

Tests whether this JumpNode has associated a JumpAnnotation.

JumpAnnotation* JumpNode::annotation() constnoexcept

Returns the JumpAnnotation associated with this jump, or nullptr.

void JumpNode::setAnnotation(JumpAnnotation* annotation)noexcept

Sets the JumpAnnotation associated with this jump to annotation.