]> granicus.if.org Git - llvm/commitdiff
[GISel] Address review feedback on passing MD_callees to lowerCall.
authorMark Lacey <mark.lacey@apple.com>
Wed, 31 Jul 2019 20:34:05 +0000 (20:34 +0000)
committerMark Lacey <mark.lacey@apple.com>
Wed, 31 Jul 2019 20:34:05 +0000 (20:34 +0000)
Preserve the nullptr default for KnownCallees that appears in
the base class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367477 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64CallLowering.h
lib/Target/ARM/ARMCallLowering.h
lib/Target/Mips/MipsCallLowering.h
lib/Target/X86/X86CallLowering.h

index 2446d980bcf6c3d732ce0b94e786db3b9b6c0c31..c7c2140c4a4136a8b254a3170474e13e5360021f 100644 (file)
@@ -43,12 +43,12 @@ public:
   bool lowerCall(MachineIRBuilder &MIRBuilder, CallingConv::ID CallConv,
                  const MachineOperand &Callee, const ArgInfo &OrigRet,
                  ArrayRef<ArgInfo> OrigArgs, Register SwiftErrorVReg,
-                 const MDNode *KnownCallees) const override;
+                 const MDNode *KnownCallees = nullptr) const override;
 
   bool lowerCall(MachineIRBuilder &MIRBuilder, CallingConv::ID CallConv,
                  const MachineOperand &Callee, const ArgInfo &OrigRet,
                  ArrayRef<ArgInfo> OrigArgs,
-                 const MDNode *KnownCallees) const override {
+                 const MDNode *KnownCallees = nullptr) const override {
     return lowerCall(MIRBuilder, CallConv, Callee, OrigRet, OrigArgs, 0,
                      KnownCallees);
   }
index e0f1e3dfd70aa5ec8373b4e2101a854c6d5b78a9..c32af75c6998764dd881af18b999bb02fca26629 100644 (file)
@@ -41,7 +41,7 @@ public:
   bool lowerCall(MachineIRBuilder &MIRBuilder, CallingConv::ID CallConv,
                  const MachineOperand &Callee, const ArgInfo &OrigRet,
                  ArrayRef<ArgInfo> OrigArgs,
-                 const MDNode *KnownCallees) const override;
+                 const MDNode *KnownCallees = nullptr) const override;
 
 private:
   bool lowerReturnVal(MachineIRBuilder &MIRBuilder, const Value *Val,
index 1245fcb5795c53c13cb35227606515355c55d155..ff2a1f93d795d7a306f344edf757f3de2d845d4f 100644 (file)
@@ -71,7 +71,7 @@ public:
   bool lowerCall(MachineIRBuilder &MIRBuilder, CallingConv::ID CallConv,
                  const MachineOperand &Callee, const ArgInfo &OrigRet,
                  ArrayRef<ArgInfo> OrigArgs,
-                 const MDNode *KnownCallees) const override;
+                 const MDNode *KnownCallees = nullptr) const override;
 
 private:
   /// Based on registers available on target machine split or extend
index 97d12e8c740dd6dde125a3fc3b833ba4f208297a..4426faeac93161f7f770bc85a3e25b4f95437311 100644 (file)
@@ -37,7 +37,7 @@ public:
   bool lowerCall(MachineIRBuilder &MIRBuilder, CallingConv::ID CallConv,
                  const MachineOperand &Callee, const ArgInfo &OrigRet,
                  ArrayRef<ArgInfo> OrigArgs,
-                 const MDNode *KnownCallees) const override;
+                 const MDNode *KnownCallees = nullptr) const override;
 
 private:
   /// A function of this type is used to perform value split action.