summaryrefslogtreecommitdiff
path: root/gcc/expmed.h
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2016-07-14 13:57:05 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2016-07-14 13:57:05 +0000
commitec573d17b874fe0528f47b7522905fffe9803d48 (patch)
tree3dc359817317863344f51515c8225727c5202651 /gcc/expmed.h
parent21bcd7bedde07878098db00fc4042a85939077a2 (diff)
downloadgcc-ec573d17b874fe0528f47b7522905fffe9803d48.tar.gz
[1/2] Move choose_mult_variant declaration and dependent declarations to expmed.h
* expmed.c (mult_variant, choose_mult_variant): Move declaration to... * expmed.h: ... Here. From-SVN: r238337
Diffstat (limited to 'gcc/expmed.h')
-rw-r--r--gcc/expmed.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/expmed.h b/gcc/expmed.h
index 1279199f057..cbceaf16dff 100644
--- a/gcc/expmed.h
+++ b/gcc/expmed.h
@@ -35,6 +35,15 @@ enum alg_code {
alg_impossible
};
+/* Indicates the type of fixup needed after a constant multiplication.
+ BASIC_VARIANT means no fixup is needed, NEGATE_VARIANT means that
+ the result should be negated, and ADD_VARIANT means that the
+ multiplicand should be added to the result. */
+enum mult_variant {basic_variant, negate_variant, add_variant};
+
+bool choose_mult_variant (machine_mode, HOST_WIDE_INT,
+ struct algorithm *, enum mult_variant *, int);
+
/* This structure holds the "cost" of a multiply sequence. The
"cost" field holds the total rtx_cost of every operator in the
synthetic multiplication sequence, hence cost(a op b) is defined