]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Apply clang-format to genrvv-type-indexer.cc [NFC]
authorKito Cheng <kito.cheng@sifive.com>
Mon, 5 May 2025 02:16:14 +0000 (10:16 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 5 May 2025 02:24:18 +0000 (10:24 +0800)
Tweak the formatting of the genrvv-type-indexer.cc file to conform to
the style used by clang-format. This is a no-functional-change commit
that only modifies the formatting of the code.

gcc/Changelog:

* config/riscv/genrvv-type-indexer.cc: Apply clang-format to the
file.

gcc/config/riscv/genrvv-type-indexer.cc

index 2fd429ad7348b36fdf5aa312585cdc0d121ac9e4..f296089fbfe7ef313c82867d4568a10c0d7fcf2f 100644 (file)
@@ -23,8 +23,14 @@ along with GCC; see the file COPYING3.  If not see
 #include <assert.h>
 #include <math.h>
 
-#define BOOL_SIZE_LIST {1, 2, 4, 8, 16, 32, 64}
-#define EEW_SIZE_LIST {8, 16, 32, 64}
+#define BOOL_SIZE_LIST                                                         \
+  {                                                                            \
+    1, 2, 4, 8, 16, 32, 64                                                     \
+  }
+#define EEW_SIZE_LIST                                                          \
+  {                                                                            \
+    8, 16, 32, 64                                                              \
+  }
 #define LMUL1_LOG2 0
 
 std::string
@@ -167,7 +173,7 @@ floattype (unsigned sew, int lmul_log2)
 std::string
 expand_floattype (unsigned sew, int lmul_log2, unsigned nf)
 {
-  if (sew != 8 || nf!= 1
+  if (sew != 8 || nf != 1
       || (!valid_type (sew * 4, lmul_log2 + 2, /*float_t*/ true)))
     return "INVALID";
 
@@ -297,13 +303,13 @@ main (int argc, const char **argv)
 
       for (unsigned eew : EEW_SIZE_LIST)
        fprintf (fp, "  /*SIGNED_EEW%d_LMUL1_INTERPRET*/ %s,\n", eew,
-                inttype (eew, LMUL1_LOG2, /* unsigned_p */false).c_str ());
+                inttype (eew, LMUL1_LOG2, /* unsigned_p */ false).c_str ());
 
       for (unsigned eew : EEW_SIZE_LIST)
        fprintf (fp, "  /*UNSIGNED_EEW%d_LMUL1_INTERPRET*/ %s,\n", eew,
-                inttype (eew, LMUL1_LOG2, /* unsigned_p */true).c_str ());
+                inttype (eew, LMUL1_LOG2, /* unsigned_p */ true).c_str ());
 
-       fprintf (fp, "  /*X2*/ INVALID,\n");
+      fprintf (fp, "  /*X2*/ INVALID,\n");
 
       for (unsigned lmul_log2_offset : {1, 2, 3, 4, 5, 6})
        {
@@ -428,8 +434,9 @@ main (int argc, const char **argv)
              fprintf (fp, "  /*UNSIGNED_EEW%d_LMUL1_INTERPRET*/ INVALID,\n",
                       eew);
 
-           fprintf (fp, "  /*X2*/ %s,\n",
-                    inttype (sew * 2, lmul_log2 + 1, /*unsigned_p*/ true).c_str ());
+           fprintf (
+             fp, "  /*X2*/ %s,\n",
+             inttype (sew * 2, lmul_log2 + 1, /*unsigned_p*/ true).c_str ());
 
            for (unsigned lmul_log2_offset : {1, 2, 3, 4, 5, 6})
              {