Class: Kumi::IR::Buf::Instruction

Inherits:
Kumi::IR::Base::Instruction show all
Defined in:
lib/kumi/ir/buf.rb

Instance Attribute Summary

Attributes inherited from Kumi::IR::Base::Instruction

#attributes, #axes, #dtype, #effects, #inputs, #metadata, #opcode, #result

Instance Method Summary collapse

Methods inherited from Kumi::IR::Base::Instruction

#control_effect?, #defs, #effectful?, #initialize, #io_effect?, #memory_effect?, #normalized_attributes, #printer_attributes, #printer_axes, #printer_dtype, #produces?, #stamp, #state_effect?, #to_h, #to_print_string, #uses, #validate!, #value_signature, #with_metadata

Constructor Details

This class inherits a constructor from Kumi::IR::Base::Instruction

Instance Method Details

#allocation?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/kumi/ir/buf.rb', line 7

def allocation?
  opcode == :alloc_buffer
end

#deallocation?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/kumi/ir/buf.rb', line 11

def deallocation?
  opcode == :free_buffer
end