Commit e599b939 authored by Artur Wojcik's avatar Artur Wojcik
Browse files

incorporate review feedback

parent 03b03f48
......@@ -39,7 +39,6 @@
#include <migraphx/json.hpp>
#include <migraphx/version.h>
#include <migraphx/instruction.hpp>
#include <migraphx/dead_code_elimination.hpp>
#include <migraphx/eliminate_identity.hpp>
#include <migraphx/eliminate_pad.hpp>
......
......@@ -25,10 +25,7 @@
#define MIGRAPHX_GUARD_CONFIG_HPP
#include <migraphx/export.h>
#if defined(_MSC_VER) && !defined(__clang__)
#include <ciso646>
#endif
#if !defined(MIGRAPHX_USE_CLANG_TIDY) && !defined(DOXYGEN)
......
......@@ -65,4 +65,8 @@ struct equal_to<migraphx::instruction_ref> // NOLINT
} // namespace std
#ifdef _MSC_VER
#include <migraphx/instruction.hpp>
#endif
#endif
......@@ -333,12 +333,14 @@ enum class color
bg_blue = 44,
bg_default = 49
};
inline std::ostream& operator<<(std::ostream& os, [[maybe_unused]] const color& c)
inline std::ostream& operator<<(std::ostream& os, const color& c)
{
#ifndef _WIN32
static const bool use_color = isatty(STDOUT_FILENO) != 0;
if(use_color)
return os << "\033[" << static_cast<std::size_t>(c) << "m";
#else
(void)c;
#endif
return os;
}
......
......@@ -26,7 +26,6 @@
#include <migraphx/program.hpp>
#include <migraphx/dead_code_elimination.hpp>
#include <migraphx/eliminate_common_subexpression.hpp>
#include <migraphx/instruction.hpp>
#include <migraphx/pass_manager.hpp>
#include <migraphx/make_op.hpp>
#include <migraphx/serialize.hpp>
......
......@@ -44,8 +44,7 @@ MIGRAPHX_DECLARE_ENV_VAR(MIGRAPHX_DUMP_TEST)
// An improved async, that doesn't block
template <class Function>
std::future<typename std::invoke_result_t<Function>> detach_async(Function&& f,
bool parallel = true)
std::future<std::invoke_result_t<Function>> detach_async(Function&& f, bool parallel = true)
{
if(parallel)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment