[PATCH] D83100: [PPC][GlobalISel] Add initial GlobalIsel infrastructure

Kit Barton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 3 09:06:54 PDT 2020


kbarton updated this revision to Diff 275409.
kbarton added a comment.

Add const to all parameters of createPPCInstructionSelector.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83100/new/

https://reviews.llvm.org/D83100

Files:
  llvm/lib/Target/PowerPC/PPC.h
  llvm/lib/Target/PowerPC/PPCInstructionSelector.cpp


Index: llvm/lib/Target/PowerPC/PPCInstructionSelector.cpp
===================================================================
--- llvm/lib/Target/PowerPC/PPCInstructionSelector.cpp
+++ llvm/lib/Target/PowerPC/PPCInstructionSelector.cpp
@@ -83,9 +83,10 @@
 }
 
 namespace llvm {
-InstructionSelector *createPPCInstructionSelector(const PPCTargetMachine &TM,
-                                                  PPCSubtarget &Subtarget,
-                                                  PPCRegisterBankInfo &RBI) {
+InstructionSelector *
+createPPCInstructionSelector(const PPCTargetMachine &TM,
+                             const PPCSubtarget &Subtarget,
+                             const PPCRegisterBankInfo &RBI) {
   return new PPCInstructionSelector(TM, Subtarget, RBI);
 }
 } // end namespace llvm
Index: llvm/lib/Target/PowerPC/PPC.h
===================================================================
--- llvm/lib/Target/PowerPC/PPC.h
+++ llvm/lib/Target/PowerPC/PPC.h
@@ -84,9 +84,9 @@
   void initializePPCLowerMASSVEntriesPass(PassRegistry &);
   extern char &PPCLowerMASSVEntriesID;
 
-  InstructionSelector *createPPCInstructionSelector(const PPCTargetMachine &,
-                                                    PPCSubtarget &,
-                                                    PPCRegisterBankInfo &);
+  InstructionSelector *
+  createPPCInstructionSelector(const PPCTargetMachine &, const PPCSubtarget &,
+                               const PPCRegisterBankInfo &);
   namespace PPCII {
 
   /// Target Operand Flag enum.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83100.275409.patch
Type: text/x-patch
Size: 1545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200703/387d21a5/attachment.bin>


More information about the llvm-commits mailing list