eliminate_allocation.hpp 431 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#ifndef MIGRAPH_GUARD_RTGLIB_ELIMINATE_ALLOCATION_HPP
#define MIGRAPH_GUARD_RTGLIB_ELIMINATE_ALLOCATION_HPP

#include <string>
#include <migraph/instruction_ref.hpp>

namespace migraph {
struct program;

struct eliminate_allocation
{
Paul's avatar
Paul committed
12
13
    std::string allocation_op{};
    std::size_t alignment = 32;
14
15
16
17
18
19
    std::string name() const { return "eliminate_allocation"; }
    void apply(program& p) const;
};
} // namespace migraph

#endif