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: boolemit_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.Instructionemit_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.Instructionsplat_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