Commit 62dc79a2 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Update some recent patches to closer match what actually got mainlined

parent 7684b3fc
...@@ -57,7 +57,7 @@ index 91b1022..a63c90a 100644 ...@@ -57,7 +57,7 @@ index 91b1022..a63c90a 100644
+ break; + break;
+ case Intrinsic::experimental_patchpoint_void: + case Intrinsic::experimental_patchpoint_void:
+ case Intrinsic::experimental_patchpoint_i64: + case Intrinsic::experimental_patchpoint_i64:
+ visitPatchpoint(ImmutableCallSite(&I), LandingPad); + visitPatchpoint(&I, LandingPad);
+ break; + break;
+ } + }
+ } else { + } else {
...@@ -71,7 +71,7 @@ index 91b1022..a63c90a 100644 ...@@ -71,7 +71,7 @@ index 91b1022..a63c90a 100644
case Intrinsic::experimental_patchpoint_void: case Intrinsic::experimental_patchpoint_void:
case Intrinsic::experimental_patchpoint_i64: { case Intrinsic::experimental_patchpoint_i64: {
- visitPatchpoint(I); - visitPatchpoint(I);
+ visitPatchpoint(ImmutableCallSite(&I), nullptr); + visitPatchpoint(&I);
return nullptr; return nullptr;
} }
} }
...@@ -405,7 +405,7 @@ index 236f1a6..bb7e82e 100644 ...@@ -405,7 +405,7 @@ index 236f1a6..bb7e82e 100644
void visitVACopy(const CallInst &I); void visitVACopy(const CallInst &I);
void visitStackmap(const CallInst &I); void visitStackmap(const CallInst &I);
- void visitPatchpoint(const CallInst &I); - void visitPatchpoint(const CallInst &I);
+ void visitPatchpoint(ImmutableCallSite CS, MachineBasicBlock *LandingPad); + void visitPatchpoint(ImmutableCallSite CS, MachineBasicBlock *LandingPad = nullptr);
void visitUserOp1(const Instruction &I) { void visitUserOp1(const Instruction &I) {
llvm_unreachable("UserOp1 should not exist at instruction selection time!"); llvm_unreachable("UserOp1 should not exist at instruction selection time!");
......
...@@ -82,7 +82,7 @@ index a63c90a..dc45bf7 100644 ...@@ -82,7 +82,7 @@ index a63c90a..dc45bf7 100644
case Intrinsic::experimental_patchpoint_void: case Intrinsic::experimental_patchpoint_void:
case Intrinsic::experimental_patchpoint_i64: case Intrinsic::experimental_patchpoint_i64:
+ case Intrinsic::experimental_patchpoint_double: + case Intrinsic::experimental_patchpoint_double:
visitPatchpoint(ImmutableCallSite(&I), LandingPad); visitPatchpoint(&I, LandingPad);
break; break;
} }
@@ -5536,7 +5537,8 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) { @@ -5536,7 +5537,8 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
...@@ -92,7 +92,7 @@ index a63c90a..dc45bf7 100644 ...@@ -92,7 +92,7 @@ index a63c90a..dc45bf7 100644
- case Intrinsic::experimental_patchpoint_i64: { - case Intrinsic::experimental_patchpoint_i64: {
+ case Intrinsic::experimental_patchpoint_i64: + case Intrinsic::experimental_patchpoint_i64:
+ case Intrinsic::experimental_patchpoint_double: { + case Intrinsic::experimental_patchpoint_double: {
visitPatchpoint(ImmutableCallSite(&I), nullptr); visitPatchpoint(&I);
return nullptr; return nullptr;
} }
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
......
...@@ -85,6 +85,10 @@ if __name__ == "__main__": ...@@ -85,6 +85,10 @@ if __name__ == "__main__":
continue continue
if "stackmap-sections-for-ELF" in patch_fn and svn_rev >= 214538: if "stackmap-sections-for-ELF" in patch_fn and svn_rev >= 214538:
continue continue
if "Enable-invoking-the-patchpoint-intrinsic" in patch_fn and svn_rev >= 220055:
continue
if "support-varargs-intrinsics" in patch_fn and svn_rev >= 220205:
continue
patch_fn = os.path.abspath(os.path.join(patch_dir, patch_fn)) patch_fn = os.path.abspath(os.path.join(patch_dir, patch_fn))
code = subprocess.call(["git", "am", patch_fn], cwd=repo) code = subprocess.call(["git", "am", patch_fn], cwd=repo)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment