2019-01-23 02:07:53 -05:00
|
|
|
#ifndef TDL_INCLUDE_CODEGEN_SHARED_COPY_H
|
|
|
|
#define TDL_INCLUDE_CODEGEN_SHARED_COPY_H
|
|
|
|
|
|
|
|
namespace tdl {
|
|
|
|
|
|
|
|
namespace ir {
|
|
|
|
class module;
|
2019-02-11 17:27:16 -05:00
|
|
|
class value;
|
|
|
|
class builder;
|
2019-01-23 02:07:53 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace codegen{
|
|
|
|
|
|
|
|
class place_shared_copy {
|
2019-02-11 17:27:16 -05:00
|
|
|
private:
|
|
|
|
void add(ir::value *x, ir::builder &builder);
|
|
|
|
|
2019-01-23 02:07:53 -05:00
|
|
|
public:
|
|
|
|
void run(ir::module &mod);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|