1#ifndef FREE_TENSOR_INVERT_FROM_STORE_H
2#define FREE_TENSOR_INVERT_FROM_STORE_H
5#include <unordered_set>
14 std::function<
Expr(
const Expr &)> invertFromStore_;
18 const std::function<
Expr(
const Expr &)> &invertFromStore)
19 : store_(
store), yExpr_(yExpr), invertFromStore_(invertFromStore) {}
21 const auto &
store()
const {
return store_; }
26 std::unordered_set<std::string>
Definition: invert_from_store.h:11
InvertFromStore(const Store &store, const Expr &yExpr, const std::function< Expr(const Expr &)> &invertFromStore)
Definition: invert_from_store.h:17
std::unordered_set< std::string > allReadsExcludingInversion(const Expr &expr) const
Definition: invert_from_store.cc:65
const auto & store() const
Definition: invert_from_store.h:21
bool find(const Expr &expr) const
Definition: invert_from_store.cc:54
bool match(const Expr &expr) const
Definition: invert_from_store.cc:60
Expr invert(const Expr &e) const
Definition: invert_from_store.h:29
Definition: allocator.h:9
Ref< ExprNode > Expr
Definition: ast.h:184