[llvm-branch-commits] [llvm] 2a2268a - [VE][NFC] Sort VEISD operations

Kazushi Marukawa via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Dec 15 06:33:29 PST 2020


Author: Kazushi (Jam) Marukawa
Date: 2020-12-15T23:29:16+09:00
New Revision: 2a2268a6db17cbbef54c1b80f74a04849831c997

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

LOG: [VE][NFC] Sort VEISD operations

Reviewed By: simoll

Differential Revision: https://reviews.llvm.org/D93294

Added: 
    

Modified: 
    llvm/lib/Target/VE/VEISelLowering.cpp
    llvm/lib/Target/VE/VEISelLowering.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/VE/VEISelLowering.cpp b/llvm/lib/Target/VE/VEISelLowering.cpp
index ca548e056c51..d15158f4f4d2 100644
--- a/llvm/lib/Target/VE/VEISelLowering.cpp
+++ b/llvm/lib/Target/VE/VEISelLowering.cpp
@@ -865,17 +865,17 @@ const char *VETargetLowering::getTargetNodeName(unsigned Opcode) const {
   switch ((VEISD::NodeType)Opcode) {
   case VEISD::FIRST_NUMBER:
     break;
-    TARGET_NODE_CASE(Lo)
-    TARGET_NODE_CASE(Hi)
+    TARGET_NODE_CASE(CALL)
     TARGET_NODE_CASE(GETFUNPLT)
     TARGET_NODE_CASE(GETSTACKTOP)
     TARGET_NODE_CASE(GETTLSADDR)
+    TARGET_NODE_CASE(GLOBAL_BASE_REG)
+    TARGET_NODE_CASE(Hi)
+    TARGET_NODE_CASE(Lo)
     TARGET_NODE_CASE(MEMBARRIER)
-    TARGET_NODE_CASE(CALL)
+    TARGET_NODE_CASE(RET_FLAG)
     TARGET_NODE_CASE(TS1AM)
     TARGET_NODE_CASE(VEC_BROADCAST)
-    TARGET_NODE_CASE(RET_FLAG)
-    TARGET_NODE_CASE(GLOBAL_BASE_REG)
 
     // Register the VVP_* SDNodes.
 #define ADD_VVP_OP(VVP_NAME, ...) TARGET_NODE_CASE(VVP_NAME)

diff  --git a/llvm/lib/Target/VE/VEISelLowering.h b/llvm/lib/Target/VE/VEISelLowering.h
index 0eea838ff55d..b5e2a72887f4 100644
--- a/llvm/lib/Target/VE/VEISelLowering.h
+++ b/llvm/lib/Target/VE/VEISelLowering.h
@@ -24,22 +24,19 @@ namespace VEISD {
 enum NodeType : unsigned {
   FIRST_NUMBER = ISD::BUILTIN_OP_END,
 
-  Hi,
-  Lo, // Hi/Lo operations, typically on a global address.
-
-  GETFUNPLT,   // load function address through %plt insturction
-  GETTLSADDR,  // load address for TLS access
-  GETSTACKTOP, // retrieve address of stack top (first address of
-               // locals and temporaries)
-
-  MEMBARRIER, // Compiler barrier only; generate a no-op.
-  TS1AM,      // A TS1AM instruction used for 1/2 bytes swap.
-
-  VEC_BROADCAST, // 0: scalar value, 1: VL
-
   CALL,            // A call instruction.
-  RET_FLAG,        // Return with a flag operand.
+  GETFUNPLT,       // Load function address through %plt insturction.
+  GETTLSADDR,      // Load address for TLS access.
+  GETSTACKTOP,     // Retrieve address of stack top (first address of
+                   // locals and temporaries).
   GLOBAL_BASE_REG, // Global base reg for PIC.
+  Hi,              // Hi/Lo operations, typically on a global address.
+  Lo,              // Hi/Lo operations, typically on a global address.
+  MEMBARRIER,      // Compiler barrier only; generate a no-op.
+  RET_FLAG,        // Return with a flag operand.
+  TS1AM,           // A TS1AM instruction used for 1/2 bytes swap.
+  VEC_BROADCAST,   // A vector broadcast instruction.
+                   //   0: scalar value, 1: VL
 
 // VVP_* nodes.
 #define ADD_VVP_OP(VVP_NAME, ...) VVP_NAME,


        


More information about the llvm-branch-commits mailing list