tvm
transform.h
Go to the documentation of this file.
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 
25 #ifndef TVM_TIR_USMP_TRANSFORM_H_
26 #define TVM_TIR_USMP_TRANSFORM_H_
27 
28 #include <tvm/tir/usmp/utils.h>
29 
30 namespace tvm {
31 namespace tir {
32 namespace usmp {
33 namespace transform {
34 
36 
47  Bool emit_tvmscript_printable = Bool(false));
48 
57 TVM_DLL Pass AssignPoolInfo();
58 
69 
70 } // namespace transform
71 } // namespace usmp
72 } // namespace tir
73 } // namespace tvm
74 
75 #endif // TVM_TIR_USMP_TRANSFORM_H_
Boolean constant.
Definition: expr.h:597
Map container of NodeRef->NodeRef in DSL graph. Map implements copy on write semantics,...
Definition: map.h:1271
Definition: transform.h:426
Box< bool > Bool
Boxed version of C++ bool.
Definition: boxed_primitive.h:121
Pass AssignPoolInfo()
Assign PoolInfo objects to tir.allocate nodes depending on the PrimFunc's target.
Pass ConvertPoolAllocationsToOffsets(const Map< tir::Stmt, PoolAllocation > &pool_allocations, Bool emit_tvmscript_printable=Bool(false))
Convert the analyzed PoolAllocation to offsets from pool variables.
tvm::transform::Pass Pass
Definition: transform.h:35
Pass CreateAllocatesForIO()
This pass creates Allocate nodes for I/O tensors.
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
Utilities for Unified Static Memory Planner.