"vscode:/vscode.git/clone" did not exist on "88a225f84700a9b78738b4a973a63fd1f0cbab84"
Commit d26bf882 authored by Paul's avatar Paul
Browse files

Add function signatures

parent 1c0b2a4a
/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef MIGRAPHX_GUARD_MIGRAPHX_PARTITION_HPP
#define MIGRAPHX_GUARD_MIGRAPHX_PARTITION_HPP
#include <migraphx/config.hpp>
#include <migraphx/instruction_ref.hpp>
#include <string>
#include <unordered_map>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
struct program;
void partition(program& p, module& root, const std::unordered_map<instruction_ref, std::string>& assignments);
} // namespace MIGRAPHX_INLINE_NS
} // namespace migraphx
#endif
......@@ -47,6 +47,7 @@ struct module_pass_manager
void run_passes(module& mod, const std::vector<pass>& passes, tracer trace = tracer{});
void run_passes(program& prog, const std::vector<pass>& passes, tracer trace = tracer{});
void run_passes(program& prog, module& root const std::vector<pass>& passes, tracer trace = tracer{});
} // namespace MIGRAPHX_INLINE_NS
} // namespace migraphx
......
#include <migraphx/partition.hpp>
#include <migraphx/program.hpp>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
struct partition_op
{
std::string label;
std::string name() const { return "partition"; }
// TODO: Implement compute_shape and compute
};
void partition(program& p, module& root, const std::unordered_map<instruction_ref, std::string>& assignments)
{
}
} // namespace MIGRAPHX_INLINE_NS
} // namespace migraphx
......@@ -148,5 +148,10 @@ void run_passes(program& prog, const std::vector<pass>& passes, tracer trace)
}
}
void run_passes(program& prog, module& root const std::vector<pass>& passes, tracer trace)
{
// Run passes starting at root module instead of main module
}
} // namespace MIGRAPHX_INLINE_NS
} // namespace migraphx
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