private static AllocaArrayPrototype DecodeAllocaArray(IReadOnlyList <LNode> data, DecoderState state)
 {
     return(AllocaArrayPrototype.Create(state.DecodeType(data[0])));
 }
 private static IReadOnlyList <LNode> EncodeAllocaArray(AllocaArrayPrototype value, EncoderState state)
 {
     return(new LNode[] { state.Encode(value.ResultType) });
 }
 /// <summary>
 /// Creates an instruction that allocates storage on the stack
 /// for a variable number of elements of a particular type.
 /// </summary>
 /// <param name="elementType">
 /// The type of value to allocate storage for.
 /// </param>
 /// <param name="elementCount">
 /// The number of elements to allocate storage for.
 /// </param>
 /// <returns>
 /// An alloca-array instruction.
 /// </returns>
 public static Instruction CreateAllocaArray(
     IType elementType, ValueTag elementCount)
 {
     return(AllocaArrayPrototype.Create(elementType).Instantiate(elementCount));
 }