1#ifndef FREE_TENSOR_GPU_NORMALIZE_THREAD_DIMS_H
2#define FREE_TENSOR_GPU_NORMALIZE_THREAD_DIMS_H
6#include <unordered_set>
16class NormalizeThreadDims :
public CompTransientBounds<SymbolTable<Mutator>> {
17 typedef CompTransientBounds<SymbolTable<Mutator>> BaseClass;
19 std::unordered_set<For> openLoopsInKernel_;
20 bool inKernel_ =
false;
26 bool isLegalLen(
const Expr &expr);
27 bool isLegalLen(
const std::unordered_set<std::string> &names);
30 using BaseClass::visit;
31 Stmt visit(
const For &op)
override;
40inline Stmt normalizeThreadDims(
const Stmt &ast) {
41 return NormalizeThreadDims{}(ast);
Definition: allocator.h:9
Ref< StmtNode > Stmt
Definition: ast.h:152