tvm_tirx.script.ir_builder.parser_protocol.or_#
- tvm_tirx.script.ir_builder.parser_protocol.or_(*values)#
Construct a disjunction from already-evaluated operands.
- Parameters:
values (Any) – One or more host or language variant boolean operands in source order.
- Returns:
Any – Host result or language variant disjunction expression.
- Return type:
Any
Notes
No statement is emitted or frame entered. TIRx supports scalar/vector predicates; Relax also supports tensor predicates. Empty operands raise TypeError; native type checks propagate. Explicit constexpr operands retain host short-circuit syntax in the generated program. Result locs are attached by shared source handling.
# Source a or b # Generated builder X.or_(a, b)