AsmJit
Low-Latency Machine Code Generation
Docs
Interactive Parser
Support
GitHub
API Reference
Index
Class List
Build Instructions
Breaking Changes
Core
Assembler
Builder
Compiler
Function
Logging
Error Handling
Instruction DB
Virtual Memory
Zone Memory
Utilities
X86 Backend
ARM Commons
AArch64 Backend
asmjit::CommentNode Class Reference
Builder
Inheritance diagram for asmjit::CommentNode:
Comment node.
Member Functions
CommentNode
(
const
CommentNode
& other) =
delete
CommentNode
&
operator=
(
const
CommentNode
& other) =
delete
Construction & Destruction
CommentNode
(
BaseBuilder
* cb,
const
char
* comment)
noexcept
Public Member Functions inherited from
asmjit::BaseNode
BaseNode
(
const
BaseNode
& other) =
delete
BaseNode
&
operator=
(
const
BaseNode
& other) =
delete
BaseNode
(
BaseBuilder
* cb,
NodeType
nodeType,
NodeFlags
nodeFlags =
NodeFlags::kNone
)
noexcept
template<typename T>
T*
as
()
noexcept
template<typename T>
const
T*
as
()
const
noexcept
BaseNode
*
prev
()
const
noexcept
BaseNode
*
next
()
const
noexcept
NodeType
type
()
const
noexcept
void
setType
(
NodeType
type
)
noexcept
bool
isInst
()
const
noexcept
bool
isSection
()
const
noexcept
bool
isLabel
()
const
noexcept
bool
isAlign
()
const
noexcept
bool
isEmbedData
()
const
noexcept
bool
isEmbedLabel
()
const
noexcept
bool
isEmbedLabelDelta
()
const
noexcept
bool
isConstPool
()
const
noexcept
bool
isComment
()
const
noexcept
bool
isSentinel
()
const
noexcept
bool
isFunc
()
const
noexcept
bool
isFuncRet
()
const
noexcept
bool
isInvoke
()
const
noexcept
NodeFlags
flags
()
const
noexcept
bool
hasFlag
(
NodeFlags
flag)
const
noexcept
void
setFlags
(
NodeFlags
flags
)
noexcept
void
addFlags
(
NodeFlags
flags
)
noexcept
void
clearFlags
(
NodeFlags
flags
)
noexcept
bool
isCode
()
const
noexcept
bool
isData
()
const
noexcept
bool
isInformative
()
const
noexcept
bool
isRemovable
()
const
noexcept
bool
hasNoEffect
()
const
noexcept
bool
isActive
()
const
noexcept
bool
hasPosition
()
const
noexcept
uint32_t
position
()
const
noexcept
void
setPosition
(
uint32_t
position
)
noexcept
template<typename T>
T*
userDataAsPtr
()
const
noexcept
int64_t
userDataAsInt64
()
const
noexcept
uint64_t
userDataAsUInt64
()
const
noexcept
template<typename T>
void
setUserDataAsPtr
(T* data)
noexcept
void
setUserDataAsInt64
(
int64_t
value)
noexcept
void
setUserDataAsUInt64
(
uint64_t
value)
noexcept
void
resetUserData
()
noexcept
bool
hasPassData
()
const
noexcept
template<typename T>
T*
passData
()
const
noexcept
template<typename T>
void
setPassData
(T* data)
noexcept
void
resetPassData
()
noexcept
bool
hasInlineComment
()
const
noexcept
const
char
*
inlineComment
()
const
noexcept
void
setInlineComment
(
const
char
* s)
noexcept
void
resetInlineComment
()
noexcept
Additional Inherited Members
Public Attributes inherited from
asmjit::BaseNode
union {
struct {
BaseNode
*
_prev
BaseNode
*
_next
}
BaseNode
*
_links
[2]
};
union {
AnyData
_any
AlignData
_alignData
InstData
_inst
EmbedData
_embed
SentinelData
_sentinel
};
uint32_t
_position
union {
uint64_t
_userDataU64
void
*
_userDataPtr
};
void
*
_passData
const
char
*
_inlineComment
Constructor & Destructor Documentation
CommentNode::
CommentNode
(
BaseBuilder
*
cb
,
const
char
*
comment
)
noexcept
◆
Creates a new
CommentNode
instance.