void genKerName(std::stringstream &kerStream, bool genInputs) { if (!genInputs) { // Make the hex representation of enum part of the Kernel name kerStream << std::setw(2) << std::setfill('0') << std::hex << m_op << std::dec; } m_lhs->genKerName(kerStream, genInputs); m_rhs->genKerName(kerStream, genInputs); }
void genKerName(std::stringstream &kerStream) { m_lhs->genKerName(kerStream); m_rhs->genKerName(kerStream); if (m_gen_name) return; // Make the hex representation of enum part of the Kernel name kerStream << "_" << std::setw(2) << std::setfill('0') << std::hex << m_op; kerStream << std::setw(2) << std::setfill('0') << std::hex << m_lhs->getId(); kerStream << std::setw(2) << std::setfill('0') << std::hex << m_rhs->getId(); kerStream << std::setw(2) << std::setfill('0') << std::hex << m_id << std::dec; m_gen_name = true; }
void genKerName(std::stringstream &kerStream) { m_child->genKerName(kerStream); // Make the dec representation of enum part of the Kernel name kerStream << "_" << std::setw(3) << std::setfill('0') << std::dec << m_op; kerStream << std::setw(3) << std::setfill('0') << std::dec << m_child->getId(); kerStream << std::setw(3) << std::setfill('0') << std::dec << m_id << std::dec; m_gen_name = true; }