1#ifndef FREE_TENSOR_RENAME_VAR_H
2#define FREE_TENSOR_RENAME_VAR_H
4#include <unordered_map>
12 std::unordered_map<std::string, std::string>
rename_;
16 RenameVar(
const std::unordered_map<std::string, std::string> &rename)
40 const std::unordered_map<std::string, std::string> &rename) {
44 const std::string &newName) {
45 return renameVar(op, {{oldName, newName}});
Definition: rename_var.h:10
RenameVar(const std::unordered_map< std::string, std::string > &rename)
Definition: rename_var.h:16
Stmt visit(const VarDef &op) override
Definition: rename_var.cc:5
RenameVar()
Definition: rename_var.h:15
std::unordered_map< std::string, std::string > rename_
Definition: rename_var.h:12
Definition: allocator.h:9
Ref< StmtNode > Stmt
Definition: ast.h:152
Stmt renameVar(const Stmt &op, const std::unordered_map< std::string, std::string > &rename)
Definition: rename_var.h:39