Skip to main content

tvm_tirx/ir/
transform.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//! Pass infrastructure. A [`Pass`] transforms an [`IRModule`](super::IRModule) under the current
21//! [`PassContext`], whose instruments observe each pass it runs.
22
23// An object registered under `transform` that no file has a block for yet is generated here, to be
24// moved to the file of the Python module that defines it.
25// tvm-ffi-stubgen(file): mod(missing_docs = allow, prefix = transform)
26
27pub mod core;
28pub mod instrument;
29
30pub use core::*;
31pub use instrument::*;
32
33// tvm-ffi-stubgen(begin): import-section
34// tvm-ffi-stubgen(end)