tvm_tirx/sym.rs
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20//! Symbolic integer analysis. An [`Analyzer`] proves, bounds and simplifies integer expressions
21//! under the facts of a [`ConstraintContext`]; [`int_set`] and [`iter_affine_map`] describe the
22//! values and the iterator structure of index expressions.
23
24// An object registered under `sym` that no file has a block for yet is generated here, to be moved
25// to the file of the Python module that defines it.
26// tvm-ffi-stubgen(file): mod(missing_docs = allow, prefix = sym)
27// tvm-ffi-stubgen(object): sym.ConstraintContext(skip)
28// The canonical simplifier's intermediate forms are internal to it.
29// tvm-ffi-stubgen(object): sym.CanonicalExpr(skip)
30// tvm-ffi-stubgen(object): sym.SplitExpr(skip)
31// tvm-ffi-stubgen(object): sym.SumExpr(skip)
32// Integer sets and iterator sums are hand-written in their modules: C++ constructs them.
33// tvm-ffi-stubgen(object): sym.IntSet(skip)
34// tvm-ffi-stubgen(object): sym.IntervalSet(skip)
35// tvm-ffi-stubgen(object): sym.IterMapExpr(skip)
36// tvm-ffi-stubgen(object): sym.IterSplitExpr(skip)
37// tvm-ffi-stubgen(object): sym.IterSumExpr(skip)
38
39pub mod analyzer;
40pub mod constraint;
41pub mod int_set;
42pub mod iter_affine_map;
43
44pub use analyzer::*;
45pub use constraint::*;
46pub use int_set::*;
47pub use iter_affine_map::*;
48
49// tvm-ffi-stubgen(begin): import-section
50// tvm-ffi-stubgen(end)