pipeline.append(make_unique<DeadObjectEliminationPass>());
// Lower Copy as Shuffle
pipeline.append(make_unique<CopyLoweringPass>());
+ // Lower ConcatF as Shuffle if it is not delegated to NNAPI yet
+ pipeline.append(make_unique<ConcatLoweringPass>());
// Apply transforms in the pipeline
for (uint32_t n = 0; n < pipeline.size(); ++n)
// that share the same bag as their underlying bag
assert(!has_inout_bag(code(sess)->module()));
- // Lower ConcatF as Shuffle if it is not delegated to NNAPI yet
- lower_concat(code(sess));
-
generate_bypass_shuffle(code(sess));
eliminate_free_instr(code(sess));
#define __ENCO_CONCAT_LOWERING_H__
#include "Code.h"
+#include "Pass.h"
namespace enco
{
*/
void lower_concat(enco::Code *code);
+struct ConcatLoweringPass final : public Pass
+{
+ PASS_CTOR(ConcatLoweringPass)
+ {
+ // DO NOTHING
+ }
+
+ void run(const SessionID &sess) const override { lower_concat(code(sess)); }
+};
+
} // namespace enco
#endif // __ENCO_CONCAT_LOWERING_H__