View Source Orb.InstructionSequence (Orb v0.0.36)

Summary

Functions

Concatenates instructions in the second with those in first.

Examples

iex> Orb.InstructionSequence.concat(Orb.InstructionSequence.empty(), Orb.InstructionSequence.empty())
%Orb.InstructionSequence{type: :nop, body: []}

iex> Orb.InstructionSequence.concat(Orb.InstructionSequence.new([Orb.Instruction.i32(:const, 1)]), Orb.InstructionSequence.new([Orb.Instruction.f32(:const, 2.0)]))
%Orb.InstructionSequence{type: :f32, body: [
  Orb.Instruction.i32(:const, 1),
  Orb.Instruction.f32(:const, 2.0)
]}
Link to this function

do_get_type(type, instructions)

View Source
Link to this function

new(type, instructions, opts \\ [])

View Source