Skip to content

bloqade.qasm2.dialects.expr.stmts.ConstInt

← Module overview

classConstIntsource

bloqade.qasm2.dialects.expr.stmts.ConstInt

Bases: ir.Statement

IR Statement representing a constant integer value.

class ConstInt

Attributes

NameTypeDefaultDescription
name—'constant.int'
traits—frozenset({ir.Pure(), ir.ConstantLike(), lowering.FromPythonCall()})
valueintinfo.attribute(types.Int)value (int): The constant integer value.
resultir.ResultValueinfo.result(types.Int)result (Int): The result value.

methodprint_implsource

bloqade.qasm2.dialects.expr.stmts.ConstInt.print_impl

def print_impl(printer: Printer) -> None

Parameters

NameTypeDescription
printerPrinter
source