Author: Shengchen Kan
Date: 2023-11-30T17:16:40+08:00
New Revision: ae3cd2d04a88937881ac1f9c5d34f0e0cf96d5bc

URL: 
https://github.com/llvm/llvm-project/commit/ae3cd2d04a88937881ac1f9c5d34f0e0cf96d5bc
DIFF: 
https://github.com/llvm/llvm-project/commit/ae3cd2d04a88937881ac1f9c5d34f0e0cf96d5bc.diff

LOG: [X86][NFC] Clang-format X86FoldTablesUtils.h

Added: 
    

Modified: 
    llvm/include/llvm/Support/X86FoldTablesUtils.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/X86FoldTablesUtils.h 
b/llvm/include/llvm/Support/X86FoldTablesUtils.h
index bddff7068b82690..1cce9cdaf65f8d6 100644
--- a/llvm/include/llvm/Support/X86FoldTablesUtils.h
+++ b/llvm/include/llvm/Support/X86FoldTablesUtils.h
@@ -13,23 +13,23 @@ namespace llvm {
 enum {
   // Select which memory operand is being unfolded.
   // (stored in bits 0 - 2)
-  TB_INDEX_0    = 0,
-  TB_INDEX_1    = 1,
-  TB_INDEX_2    = 2,
-  TB_INDEX_3    = 3,
-  TB_INDEX_4    = 4,
+  TB_INDEX_0 = 0,
+  TB_INDEX_1 = 1,
+  TB_INDEX_2 = 2,
+  TB_INDEX_3 = 3,
+  TB_INDEX_4 = 4,
   TB_INDEX_MASK = 0x7,
 
   // Do not insert the reverse map (MemOp -> RegOp) into the table.
   // This may be needed because there is a many -> one mapping.
-  TB_NO_REVERSE   = 1 << 3,
+  TB_NO_REVERSE = 1 << 3,
 
   // Do not insert the forward map (RegOp -> MemOp) into the table.
   // This is needed for Native Client, which prohibits branch
   // instructions from using a memory operand.
-  TB_NO_FORWARD   = 1 << 4,
+  TB_NO_FORWARD = 1 << 4,
 
-  TB_FOLDED_LOAD  = 1 << 5,
+  TB_FOLDED_LOAD = 1 << 5,
   TB_FOLDED_STORE = 1 << 6,
   TB_FOLDED_BCAST = 1 << 7,
 
@@ -37,19 +37,19 @@ enum {
   // Used for RegOp->MemOp conversion. Encoded as Log2(Align)
   // (stored in bits 9 - 11)
   TB_ALIGN_SHIFT = 8,
-  TB_ALIGN_1     =   0 << TB_ALIGN_SHIFT,
-  TB_ALIGN_16    =   4 << TB_ALIGN_SHIFT,
-  TB_ALIGN_32    =   5 << TB_ALIGN_SHIFT,
-  TB_ALIGN_64    =   6 << TB_ALIGN_SHIFT,
-  TB_ALIGN_MASK  = 0x7 << TB_ALIGN_SHIFT,
+  TB_ALIGN_1 = 0 << TB_ALIGN_SHIFT,
+  TB_ALIGN_16 = 4 << TB_ALIGN_SHIFT,
+  TB_ALIGN_32 = 5 << TB_ALIGN_SHIFT,
+  TB_ALIGN_64 = 6 << TB_ALIGN_SHIFT,
+  TB_ALIGN_MASK = 0x7 << TB_ALIGN_SHIFT,
 
   // Broadcast type.
   // (stored in bits 12 - 13)
   TB_BCAST_TYPE_SHIFT = TB_ALIGN_SHIFT + 3,
-  TB_BCAST_D    =   0 << TB_BCAST_TYPE_SHIFT,
-  TB_BCAST_Q    =   1 << TB_BCAST_TYPE_SHIFT,
-  TB_BCAST_SS   =   2 << TB_BCAST_TYPE_SHIFT,
-  TB_BCAST_SD   =   3 << TB_BCAST_TYPE_SHIFT,
+  TB_BCAST_D = 0 << TB_BCAST_TYPE_SHIFT,
+  TB_BCAST_Q = 1 << TB_BCAST_TYPE_SHIFT,
+  TB_BCAST_SS = 2 << TB_BCAST_TYPE_SHIFT,
+  TB_BCAST_SD = 3 << TB_BCAST_TYPE_SHIFT,
   TB_BCAST_MASK = 0x3 << TB_BCAST_TYPE_SHIFT,
 
   // Unused bits 14-15


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to