From 6fde70862457d298b7baa81b0f70a26776029ab5 Mon Sep 17 00:00:00 2001 From: SangWoo-Shin <90230423+SangWoo-Shin@users.noreply.github.com> Date: Fri, 21 Jun 2024 19:27:24 -0400 Subject: [PATCH] Create prune_clones.h --- gcc/prune_clones.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gcc/prune_clones.h diff --git a/gcc/prune_clones.h b/gcc/prune_clones.h new file mode 100644 index 0000000000000..ef8097a3fe24b --- /dev/null +++ b/gcc/prune_clones.h @@ -0,0 +1,19 @@ +#ifndef PRUNE_CLONES_H +#define PRUNE_CLONES_H + +#include "context.h" +#include "tree-pass.h" +#include "cgraph.h" + +class pass_prune_clones : public gimaple_opt_pass { +public: + pass_prune_clones(gcc::context *ctxt); + + unsigned int execute(function *fun) final override; +}; + +gimple_opt_pass *make_pass_prune_clones(gcc::context *ctxt); +unsigned int prune_clones(cgraph_node *node); + +#endif // PRUNE_CLONES_H +