aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.def
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/target.def')
-rw-r--r--gcc/target.def18
1 files changed, 16 insertions, 2 deletions
diff --git a/gcc/target.def b/gcc/target.def
index 427dc40..8e491d8 100644
--- a/gcc/target.def
+++ b/gcc/target.def
@@ -2060,6 +2060,20 @@ all zeros. GCC can then try to branch around the instruction instead.",
(unsigned ifn),
default_empty_mask_is_expensive)
+/* Prefer gather/scatter loads/stores to e.g. elementwise accesses if\n\
+we cannot use a contiguous access. */
+DEFHOOK
+(prefer_gather_scatter,
+ "This hook returns TRUE if gather loads or scatter stores are cheaper on\n\
+this target than a sequence of elementwise loads or stores. The @var{mode}\n\
+and @var{scale} correspond to the @code{gather_load} and\n\
+@code{scatter_store} instruction patterns. The @var{group_size} is the\n\
+number of scalar elements in each scalar loop iteration that are to be\n\
+combined into the vector.",
+ bool,
+ (machine_mode mode, int scale, unsigned int group_size),
+ hook_bool_mode_int_unsigned_false)
+
/* Target builtin that implements vector gather operation. */
DEFHOOK
(builtin_gather,
@@ -7461,11 +7475,11 @@ At preset, this feature does not support address spaces. It also requires\n\
bool, (), default_memtag_can_tag_addresses)
DEFHOOK
-(tag_size,
+(tag_bitsize,
"Return the size of a tag (in bits) for this platform.\n\
\n\
The default returns 8.",
- uint8_t, (), default_memtag_tag_size)
+ uint8_t, (), default_memtag_tag_bitsize)
DEFHOOK
(granule_size,