Bind a variable to the expression. Parameters ---------- var : tvm.tirx.Var The variable. expr : Union[tirx.PrimExpr, ir.Range] The expression or the range to bind to. allow_override : bool Whether to allow overriding an
(
self,
var: tirx.Var,
expr: tirx.PrimExpr | ir.Range,
allow_override: bool = False,
)
| 285 | _ffi_api.AnalyzerSetMaximumRewriteSteps(self, maximum) |
| 286 | |
| 287 | def bind( |
| 288 | self, |
| 289 | var: tirx.Var, |
| 290 | expr: tirx.PrimExpr | ir.Range, |
| 291 | allow_override: bool = False, |
| 292 | ) -> None: |
| 293 | """Bind a variable to the expression. |
| 294 | |
| 295 | Parameters |
| 296 | ---------- |
| 297 | var : tvm.tirx.Var |
| 298 | The variable. |
| 299 | |
| 300 | expr : Union[tirx.PrimExpr, ir.Range] |
| 301 | The expression or the range to bind to. |
| 302 | |
| 303 | allow_override : bool |
| 304 | Whether to allow overriding an existing binding for the variable. |
| 305 | """ |
| 306 | return _ffi_api.AnalyzerBind(self, var, expr, allow_override) |
| 307 | |
| 308 | def constraint_scope(self, constraint: tirx.PrimExpr) -> ConstraintScope: |
| 309 | """Create a constraint scope. |
no outgoing calls