summaryrefslogtreecommitdiff
path: root/src/mir/operations.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-06-17 12:42:51 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-06-17 12:42:51 +0800
commitd524780a187a69e2c840359d9958ec16b41d1e68 (patch)
tree53ee7f418dd54bcc4c3e9033f97be680235c091d /src/mir/operations.hpp
parentbadd9c855f15c8d84eea0ea5d9aa0324393de959 (diff)
downloadmrust-d524780a187a69e2c840359d9958ec16b41d1e68.tar.gz
MIR Optimise - Sort BBs into approximate program flow
Diffstat (limited to 'src/mir/operations.hpp')
-rw-r--r--src/mir/operations.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mir/operations.hpp b/src/mir/operations.hpp
index 1c06bc8c..d8769dc4 100644
--- a/src/mir/operations.hpp
+++ b/src/mir/operations.hpp
@@ -16,5 +16,6 @@ extern void MIR_Validate_Full(const StaticTraitResolve& resolve, const ::HIR::It
extern void MIR_Cleanup(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path, ::MIR::Function& fcn, const ::HIR::Function::args_t& args, const ::HIR::TypeRef& ret_type);
// Optimise the MIR
extern void MIR_Optimise(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path, ::MIR::Function& fcn, const ::HIR::Function::args_t& args, const ::HIR::TypeRef& ret_type);
+extern void MIR_SortBlocks(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path, ::MIR::Function& fcn);
extern void MIR_Dump_Fcn(::std::ostream& sink, const ::MIR::Function& fcn, unsigned int il=0);