[llvm] e89881e - [ARC][M68k] Fix INITIALIZE_PASS after D140364

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 21 17:53:16 PST 2022


Author: Fangrui Song
Date: 2022-12-21T17:53:11-08:00
New Revision: e89881efc71f35f9706ec86e38230619682f1650

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

LOG: [ARC][M68k] Fix INITIALIZE_PASS after D140364

Added: 
    

Modified: 
    llvm/lib/Target/ARC/ARCISelDAGToDAG.cpp
    llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARC/ARCISelDAGToDAG.cpp b/llvm/lib/Target/ARC/ARCISelDAGToDAG.cpp
index 80a38d01d5107..2a66cf8fcd225 100644
--- a/llvm/lib/Target/ARC/ARCISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARC/ARCISelDAGToDAG.cpp
@@ -62,10 +62,10 @@ class ARCDAGToDAGISel : public SelectionDAGISel {
 
 char ARCDAGToDAGISel::ID;
 
-INITIALIZE_PASS(ARCDAGToDAGISel, DEBUG_TYPE, PASS_NAME, false, false)
-
 } // end anonymous namespace
 
+INITIALIZE_PASS(ARCDAGToDAGISel, DEBUG_TYPE, PASS_NAME, false, false)
+
 /// This pass converts a legalized DAG into a ARC-specific DAG, ready for
 /// instruction scheduling.
 FunctionPass *llvm::createARCISelDag(ARCTargetMachine &TM,

diff  --git a/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp b/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
index d464c1392fd4d..f8335f3dcd770 100644
--- a/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
+++ b/llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
@@ -314,10 +314,10 @@ class M68kDAGToDAGISel : public SelectionDAGISel {
 
 char M68kDAGToDAGISel::ID;
 
-INITIALIZE_PASS(M68kDAGToDAGISel, DEBUG_TYPE, PASS_NAME, false, false)
-
 } // namespace
 
+INITIALIZE_PASS(M68kDAGToDAGISel, DEBUG_TYPE, PASS_NAME, false, false)
+
 bool M68kDAGToDAGISel::IsProfitableToFold(SDValue N, SDNode *U,
                                           SDNode *Root) const {
   if (OptLevel == CodeGenOpt::None)


        


More information about the llvm-commits mailing list