public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
To: Martin Liska <mliska@suse.cz>, gcc-patches@gcc.gnu.org
Subject: [PATCH] Add further FOR_EACH_ macros
Date: Wed, 17 Aug 2022 15:47:51 +0200	[thread overview]
Message-ID: <20220817134750.1859249-1-stefansf@linux.ibm.com> (raw)

For my current use case only some FOR_EACH_MODE macros were missing.
Though I thought I will give it a try and grep'ed through the source
code and added further ones.  I didn't manually check all of them but so
far it looks good to me.

Ok for mainline?

contrib/ChangeLog:

	* clang-format: Add further FOR_EACH_ macros.
---
 contrib/clang-format | 63 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

diff --git a/contrib/clang-format b/contrib/clang-format
index ceb5c1d524f..57cec1e6947 100644
--- a/contrib/clang-format
+++ b/contrib/clang-format
@@ -63,17 +63,33 @@ ForEachMacros: [
 'FOR_BB_INSNS_SAFE',
 'FOR_BODY',
 'FOR_COND',
+'FOR_EACH_2XWIDER_MODE',
+'FOR_EACH_ACTUAL_CHILD',
 'FOR_EACH_AGGR_INIT_EXPR_ARG',
 'FOR_EACH_ALIAS',
 'FOR_EACH_ALLOCNO',
+'FOR_EACH_ALLOCNO_CONFLICT',
+'FOR_EACH_ALLOCNO_IN_ALLOCNO_SET',
 'FOR_EACH_ALLOCNO_OBJECT',
 'FOR_EACH_ARTIFICIAL_DEF',
 'FOR_EACH_ARTIFICIAL_USE',
+'FOR_EACH_BB',
 'FOR_EACH_BB_FN',
+'FOR_EACH_BB_IN_BITMAP',
+'FOR_EACH_BB_IN_BITMAP_REV',
+'FOR_EACH_BB_IN_REGION',
+'FOR_EACH_BB_IN_SBITMAP',
+'FOR_EACH_BB_REVERSE',
 'FOR_EACH_BB_REVERSE_FN',
+'FOR_EACH_BB_REVERSE_IN_REGION',
 'FOR_EACH_BIT_IN_MINMAX_SET',
+'FOR_EACH_BSI_IN_REVERSE',
 'FOR_EACH_CALL_EXPR_ARG',
+'FOR_EACH_CHILD',
 'FOR_EACH_CLONE',
+'FOR_EACH_CODE_MAPPING',
+'FOR_EACH_COND_FN_PAIR',
+'FOR_EACH_CONFLICT',
 'FOR_EACH_CONST_CALL_EXPR_ARG',
 'FOR_EACH_CONSTRUCTOR_ELT',
 'FOR_EACH_CONSTRUCTOR_VALUE',
@@ -83,16 +99,27 @@ ForEachMacros: [
 'FOR_EACH_DEFINED_SYMBOL',
 'FOR_EACH_DEFINED_VARIABLE',
 'FOR_EACH_DEP',
+'FOR_EACH_DEP_LINK',
 'FOR_EACH_EDGE',
+'FOR_EACH_ELEMENT',
+'FOR_EACH_ELIM_GRAPH_PRED',
+'FOR_EACH_ELIM_GRAPH_SUCC',
 'FOR_EACH_EXPR',
 'FOR_EACH_EXPR_1',
+'FOR_EACH_EXPR_ID_IN_SET',
+'FOR_EACH_FLOAT_OPERATOR',
+'FOR_EACH_FP_TYPE',
 'FOR_EACH_FUNCTION',
 'FOREACH_FUNCTION_ARGS',
 'FOREACH_FUNCTION_ARGS_PTR',
 'FOR_EACH_FUNCTION_WITH_GIMPLE_BODY',
+'FOR_EACH_GORI_EXPORT_NAME',
+'FOR_EACH_GORI_IMPORT_NAME',
 'FOR_EACH_HASH_TABLE_ELEMENT',
+'FOR_EACH_HTAB_ELEMENT',
 'FOR_EACH_IMM_USE_FAST',
 'FOR_EACH_IMM_USE_ON_STMT',
+'FOR_EACH_IMM_USE_SAFE',
 'FOR_EACH_IMM_USE_STMT',
 'FOR_EACH_INSN',
 'FOR_EACH_INSN_1',
@@ -103,32 +130,68 @@ ForEachMacros: [
 'FOR_EACH_INSN_INFO_MW',
 'FOR_EACH_INSN_INFO_USE',
 'FOR_EACH_INSN_USE',
+'FOR_EACH_INT_OPERATOR',
+'FOR_EACH_INT_TYPE',
+'FOR_EACH_INV',
+'FOR_EACH_LOAD_BROADCAST',
+'FOR_EACH_LOAD_BROADCAST_IMM',
 'FOR_EACH_LOCAL_DECL',
+'FOR_EACH_LOG_LINK',
 'FOR_EACH_LOOP',
+'FOR_EACH_LOOP_BREAK',
 'FOR_EACH_LOOP_FN',
+'FOR_EACH_MODE',
+'FOR_EACH_MODE_FROM',
+'FOR_EACH_MODE_IN_CLASS',
+'FOR_EACH_MODE_UNTIL',
+'FOR_EACH_NEST_INFO',
 'FOR_EACH_OBJECT',
 'FOR_EACH_OBJECT_CONFLICT',
+'FOR_EACH_OP',
+'FOR_EACH_PARTITION_PAIR',
+'FOR_EACH_PHI',
 'FOR_EACH_PHI_ARG',
 'FOR_EACH_PHI_OR_STMT_DEF',
 'FOR_EACH_PHI_OR_STMT_USE',
+'FOR_EACH_POP',
 'FOR_EACH_PREF',
+'FOR_EACH_REF',
+'FOR_EACH_REFERENCED_VAR',
+'FOR_EACH_REFERENCED_VAR_IN_BITMAP',
+'FOR_EACH_REFERENCED_VAR_SAFE',
+'FOR_EACH_REF_REV',
+'FOR_EACH_REGNO',
 'FOR_EACH_SCALAR',
+'FOR_EACH_SIGNED_TYPE',
+'FOR_EACH_SSA',
 'FOR_EACH_SSA_DEF_OPERAND',
+'FOR_EACH_SSA_MAYDEF_OPERAND',
+'FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND',
+'FOR_EACH_SSA_MUSTDEF_OPERAND',
+'FOR_EACH_SSA_NAME',
 'FOR_EACH_SSA_TREE_OPERAND',
 'FOR_EACH_SSA_USE_OPERAND',
+'FOR_EACH_SSA_VDEF_OPERAND',
 'FOR_EACH_STATIC_INITIALIZER',
+'FOR_EACH_STATIC_VARIABLE',
+'FOR_EACH_STMT_IN_REVERSE',
+'FOR_EACH_SUBINSN',
 'FOR_EACH_SUBRTX',
 'FOR_EACH_SUBRTX_PTR',
 'FOR_EACH_SUBRTX_VAR',
 'FOR_EACH_SUCC',
 'FOR_EACH_SUCC_1',
 'FOR_EACH_SYMBOL',
+'FOR_EACH_TYPE',
+'FOR_EACH_UNSIGNED_TYPE',
+'FOR_EACH_VALUE_ID_IN_SET',
 'FOR_EACH_VARIABLE',
 'FOR_EACH_VEC_ELT',
 'FOR_EACH_VEC_ELT_FROM',
 'FOR_EACH_VEC_ELT_REVERSE',
 'FOR_EACH_VEC_SAFE_ELT',
 'FOR_EACH_VEC_SAFE_ELT_REVERSE',
+'FOR_EACH_WIDER_MODE',
 'FOR_EXPR',
 'FOR_INIT_STMT',
 'FOR_SCOPE'
-- 
2.35.3


             reply	other threads:[~2022-08-17 13:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-17 13:47 Stefan Schulze Frielinghaus [this message]
2022-08-18  7:31 ` Richard Biener

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220817134750.1859249-1-stefansf@linux.ibm.com \
    --to=stefansf@linux.ibm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mliska@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).