Class MDNode
Metadata node for LLVM IR Bitcode modules
Namespace: Llvm.NET
Assembly: Llvm.NET.dll
Syntax
public class MDNode : LlvmMetadata, IOperandContainer<LlvmMetadata>
Remarks
Metadata nodes may be uniqued, or distinct. Temporary nodes with support for ReplaceAllUsesWith(LlvmMetadata) may be used to defer uniqueing until the forward references are known.
There is limited support for ReplaceAllUsesWith(LlvmMetadata) at construction. At construction, if any operand is a temporary or otherwise unresolved uniqued node, the node itself is unresolved. As soon as all operands become resolved the node will no longer support ReplaceAllUsesWith(LlvmMetadata)
Properties
Context | Gets the Context this node belongs to |
IsDeleted | Gets a value indicating whether this node was deleted |
IsDistinct | Gets a value indicating whether this node is distinct |
IsResolved | Gets a value indicating whether this node is resolved |
IsTemporary | Gets a value indicating whether this node is a temporary |
IsUniqued | Gets a value indicating whether this node is uniqued |
Operands | Gets the operands for this node, if any |
Methods
GetOperand<T>(Int32) | Gets an operand by index as a specific type |
GetOperandString(Int32) | Gets a string operand by index |
ReplaceAllUsesWith(LlvmMetadata) | Replace all uses of this node with a new node |