@@ -25,4 +25,5 @@ Typing
Optimization
~~~~~~~~~~~~
+.. c:autodoc:: optimize.c
.. c:autodoc:: simplify.c
@@ -1,10 +1,12 @@
// SPDX-License-Identifier: MIT
//
-// optimize.c - main optimization loop
-//
// Copyright (C) 2004 Linus Torvalds
// Copyright (C) 2004 Christopher Li
+///
+// Optimization main loop
+// ----------------------
+
#include <assert.h>
#include "optimize.h"
#include "flowgraph.h"
@@ -45,6 +47,8 @@ static void clean_up_insns(struct entrypoint *ep)
} END_FOR_EACH_PTR(bb);
}
+///
+// optimization main loop
void optimize(struct entrypoint *ep)
{
if (fdump_ir & PASS_LINEARIZE)
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- Documentation/api.rst | 1 + optimize.c | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-)