mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
22 lines
461 B
C++
22 lines
461 B
C++
#pragma once
|
|
|
|
#include "sir/transform/pass.h"
|
|
|
|
namespace seq {
|
|
namespace ir {
|
|
namespace transform {
|
|
namespace pythonic {
|
|
|
|
/// Pass to optimize print str.cat(...) or file.write(str.cat(...)).
|
|
class IOCatOptimization : public OperatorPass {
|
|
public:
|
|
static const std::string KEY;
|
|
std::string getKey() const override { return KEY; }
|
|
void handle(CallInstr *v) override;
|
|
};
|
|
|
|
} // namespace pythonic
|
|
} // namespace transform
|
|
} // namespace ir
|
|
} // namespace seq
|