summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Ochoa <erick.ochoa@theobroma-systems.com>2020-06-03 16:38:33 +0200
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-06-03 16:38:33 +0200
commit0550cc23f21dea0517d0a2164a2a65683d058e5b (patch)
tree61f5dfa6b8f9d656fc4bd6bc7f3f3eaab5442879
parentadeb97a06fc0eb30e9eebc8ba55c5948fab450bb (diff)
Rename to prototype
-rw-r--r--gcc/Makefile.in2
-rw-r--r--gcc/common.opt4
-rw-r--r--gcc/expr-escaper.hpp2
-rw-r--r--gcc/ipa-prototype.c (renamed from gcc/ipa-hello-world.c)18
-rw-r--r--gcc/ipa-prototype.h (renamed from gcc/ipa-hello-world.h)0
-rw-r--r--gcc/passes.def2
-rw-r--r--gcc/tree-pass.h2
-rw-r--r--gcc/type-escaper.hpp2
8 files changed, 16 insertions, 16 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 9f5334061e4..c363f7f7bd1 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1407,7 +1407,7 @@ OBJS = \
incpath.o \
init-regs.o \
internal-fn.o \
- ipa-hello-world.o \
+ ipa-prototype.o \
ipa-type-collector.o \
expr-walker.o \
expr-collector.o \
diff --git a/gcc/common.opt b/gcc/common.opt
index e0a8e0c7df1..ec5c5e50864 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -3430,7 +3430,7 @@ Common Joined Report Var(flag_tp_types_compared) Init(0)
ftp-comparison-functions=
Common Joined Report Var(flag_tp_comparison_functions) Init(0)
-fipa-hello-world
-Common Report Var(flag_ipa_hello_world) Optimization
+fipa-prototype
+Common Report Var(flag_ipa_prototype) Optimization
TBD
; This comment is to ensure we retain the blank line above.
diff --git a/gcc/expr-escaper.hpp b/gcc/expr-escaper.hpp
index 3f4688669b6..cae97ccea11 100644
--- a/gcc/expr-escaper.hpp
+++ b/gcc/expr-escaper.hpp
@@ -1,4 +1,4 @@
-#include "ipa-hello-world.h"
+#include "ipa-prototype.h"
#include "expr-walker.hpp"
class ExprEscaper : public ExprWalker
diff --git a/gcc/ipa-hello-world.c b/gcc/ipa-prototype.c
index 6115a809b6f..ca8b77268a1 100644
--- a/gcc/ipa-hello-world.c
+++ b/gcc/ipa-prototype.c
@@ -34,7 +34,7 @@
#include "name-types.h"
#include "compare-types.h"
#include "ipa-type-collector.h"
-#include "ipa-hello-world.h"
+#include "ipa-prototype.h"
#include "type-collector.hpp"
#include "type-stringifier.hpp"
#include <map>
@@ -732,10 +732,10 @@ iphw_execute()
}
namespace {
-const pass_data pass_data_ipa_hello_world =
+const pass_data pass_data_ipa_prototype =
{
SIMPLE_IPA_PASS,
- "hello-world",
+ "prototype",
OPTGROUP_NONE,
TV_NONE,
(PROP_cfg | PROP_ssa),
@@ -745,20 +745,20 @@ const pass_data pass_data_ipa_hello_world =
0,
};
-class pass_ipa_hello_world : public simple_ipa_opt_pass
+class pass_ipa_prototype : public simple_ipa_opt_pass
{
public:
- pass_ipa_hello_world (gcc::context *ctx)
- : simple_ipa_opt_pass(pass_data_ipa_hello_world, ctx)
+ pass_ipa_prototype (gcc::context *ctx)
+ : simple_ipa_opt_pass(pass_data_ipa_prototype, ctx)
{}
- virtual bool gate(function*) { return flag_ipa_hello_world; }
+ virtual bool gate(function*) { return flag_ipa_prototype; }
virtual unsigned execute (function*) { return iphw_execute(); }
};
} // anon namespace
simple_ipa_opt_pass*
-make_pass_ipa_hello_world (gcc::context *ctx)
+make_pass_ipa_prototype (gcc::context *ctx)
{
- return new pass_ipa_hello_world (ctx);
+ return new pass_ipa_prototype (ctx);
}
diff --git a/gcc/ipa-hello-world.h b/gcc/ipa-prototype.h
index 77413d5c218..77413d5c218 100644
--- a/gcc/ipa-hello-world.h
+++ b/gcc/ipa-prototype.h
diff --git a/gcc/passes.def b/gcc/passes.def
index 24e4a56f212..16030e69e9d 100644
--- a/gcc/passes.def
+++ b/gcc/passes.def
@@ -172,7 +172,7 @@ along with GCC; see the file COPYING3. If not see
compiled unit. */
INSERT_PASSES_AFTER (all_late_ipa_passes)
NEXT_PASS (pass_materialize_all_clones);
- NEXT_PASS (pass_ipa_hello_world);
+ NEXT_PASS (pass_ipa_prototype);
NEXT_PASS (pass_ipa_pta);
NEXT_PASS (pass_omp_simd_clone);
TERMINATE_PASS_LIST (all_late_ipa_passes)
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h
index 4c63f7dbfa2..554af1539a4 100644
--- a/gcc/tree-pass.h
+++ b/gcc/tree-pass.h
@@ -503,7 +503,7 @@ extern ipa_opt_pass_d *make_pass_ipa_inline (gcc::context *ctxt);
extern simple_ipa_opt_pass *make_pass_ipa_free_lang_data (gcc::context *ctxt);
extern simple_ipa_opt_pass *make_pass_ipa_free_fn_summary (gcc::context *ctxt);
extern simple_ipa_opt_pass *make_pass_ipa_type_collector (gcc::context *ctxt);
-extern simple_ipa_opt_pass *make_pass_ipa_hello_world (gcc::context *ctxt);
+extern simple_ipa_opt_pass *make_pass_ipa_prototype (gcc::context *ctxt);
extern ipa_opt_pass_d *make_pass_ipa_cp (gcc::context *ctxt);
extern ipa_opt_pass_d *make_pass_ipa_sra (gcc::context *ctxt);
extern ipa_opt_pass_d *make_pass_ipa_icf (gcc::context *ctxt);
diff --git a/gcc/type-escaper.hpp b/gcc/type-escaper.hpp
index 86c9ad6f8b4..c0bea8383fa 100644
--- a/gcc/type-escaper.hpp
+++ b/gcc/type-escaper.hpp
@@ -1,6 +1,6 @@
#pragma once
-#include "ipa-hello-world.h"
+#include "ipa-prototype.h"
class TypeEscaper : public TypeWalker
{