irx.builder.vector

irx.builder.vector

Source: packages/irx/src/irx/builder/vector.py

title: Vector helpers for llvmliteir codegen.

Functions

is_vector(value: ir.Value) -> bool

title: Is vector.
parameters:
  value:
    type: ir.Value
returns:
  type: bool

emit_int_div(ir_builder: ir.IRBuilder, lhs: ir.Value, rhs: ir.Value, unsigned: bool) -> ir.Instruction

title: Emit int div.
parameters:
  ir_builder:
    type: ir.IRBuilder
  lhs:
    type: ir.Value
  rhs:
    type: ir.Value
  unsigned:
    type: bool
returns:
  type: ir.Instruction

emit_add(ir_builder: ir.IRBuilder, lhs: ir.Value, rhs: ir.Value, name: str='addtmp') -> ir.Instruction

title: Emit add.
parameters:
  ir_builder:
    type: ir.IRBuilder
  lhs:
    type: ir.Value
  rhs:
    type: ir.Value
  name:
    type: str
returns:
  type: ir.Instruction

splat_scalar(ir_builder: ir.IRBuilder, scalar: ir.Value, vec_type: ir.VectorType) -> ir.Value

title: Splat scalar.
parameters:
  ir_builder:
    type: ir.IRBuilder
  scalar:
    type: ir.Value
  vec_type:
    type: ir.VectorType
returns:
  type: ir.Value