Method LibLLVMMDNodeReplaceOperand
LibLLVMMDNodeReplaceOperand(LLVMMetadataRef, UInt32, LLVMMetadataRef)
Replace an operand in a node
Declaration
public static void LibLLVMMDNodeReplaceOperand(LLVMMetadataRef node, uint index, LLVMMetadataRef operand)
Parameters
public static void LibLLVMMDNodeReplaceOperand(LLVMMetadataRef node, uint index, LLVMMetadataRef operand)
LLVMMetadataRef | node | Node to replace the operand in |
UInt32 | index | Index of the operand |
LLVMMetadataRef | operand | New operand value |
Remarks
It is important to fully understand the node hierarchy and actual kinds of operands for a given node type as there is no type checking with this function. It is very easy to create invalid metadata nodes by setting the operands incorrectly. This, function is intended as a very low-level function that is called from some higher level that will validate correct usage.