17 return op &&
op->
argument(0) == argument(0) &&
op->result(0) == result(0);
23 return "TestUnaryOperation";
26std::unique_ptr<Operation>
29 return std::make_unique<TestUnaryOperation>(*
this);
38 return op &&
op->
argument(0) == argument(0) &&
op->result(0) == result(0);
62 return "TestBinaryOperation";
65std::unique_ptr<Operation>
68 return std::make_unique<TestBinaryOperation>(*
this);
83 for (
size_t n = 0;
n < narguments();
n++)
89 for (
size_t n = 0;
n < nresults();
n++)
101 return "TestOperation";
104std::unique_ptr<Operation>
107 return std::make_unique<TestOperation>(*
this);
const std::shared_ptr< const rvsdg::Type > & argument(size_t index) const noexcept
binop_reduction_path_t can_reduce_operand_pair(const Output *op1, const Output *op2) const noexcept override
~TestBinaryOperation() noexcept override
std::unique_ptr< Operation > copy() const override
Output * reduce_operand_pair(binop_reduction_path_t path, Output *op1, Output *op2) const override
enum BinaryOperation::flags flags_
enum BinaryOperation::flags flags() const noexcept override
std::string debug_string() const override
std::string debug_string() const override
std::unique_ptr< Operation > copy() const override
~TestOperation() noexcept override
~TestUnaryOperation() noexcept override
std::unique_ptr< Operation > copy() const override
std::string debug_string() const override
size_t binop_reduction_path_t
NodeType * TryGetOwnerNode(const rvsdg::Input &input) noexcept
Checks if this is an input to a node of specified type.
static const binop_reduction_path_t binop_reduction_none