Skip to content

index.max

← index dialect

Signed maximum of two logical coordinate values.

Operation contract

Property Value
Semantic phase executable
Traits Pure, Commutative, DistributionTransfer, SafeToSpeculate

Signature

Kind Name Type Cardinality Description
Operand lhs index required —
Operand rhs index required —
Result result index required —

Verification constraints

  • SameType(lhs, rhs, result)

Examples

%r = index.max %lhs, %rhs : index