git: 0cb1a5fe81b3 - main - devel/llvm1[123]: Fix VIA PadLock xstore

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Thu, 28 Oct 2021 18:57:48 UTC
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0cb1a5fe81b339b760e1d671269285e63d82c689

commit 0cb1a5fe81b339b760e1d671269285e63d82c689
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2021-10-28 18:48:53 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2021-10-28 18:52:16 +0000

    devel/llvm1[123]: Fix VIA PadLock xstore
    
    Pull in the code gen portion of upstream LLVM's 2d8c18fbbdd1.
    
    MFH:            2021Q4
    Sponsored by:   DARPA
---
 devel/llvm11/Makefile                                         |  2 +-
 devel/llvm11/files/patch-lib_Target_X86_X86InstrSystem.td     | 11 +++++++++++
 devel/llvm12/Makefile                                         |  2 +-
 .../llvm12/files/patch-llvm_lib_Target_X86_X86InstrSystem.td  | 11 +++++++++++
 devel/llvm13/Makefile                                         |  2 +-
 .../llvm13/files/patch-llvm_lib_Target_X86_X86InstrSystem.td  | 11 +++++++++++
 6 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/devel/llvm11/Makefile b/devel/llvm11/Makefile
index e9e1269cdbde..48ea9a25d432 100644
--- a/devel/llvm11/Makefile
+++ b/devel/llvm11/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	llvm
 DISTVERSION=	11.0.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel lang
 MASTER_SITES=	https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
 		https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR}
diff --git a/devel/llvm11/files/patch-lib_Target_X86_X86InstrSystem.td b/devel/llvm11/files/patch-lib_Target_X86_X86InstrSystem.td
new file mode 100644
index 000000000000..383e72a07cfc
--- /dev/null
+++ b/devel/llvm11/files/patch-lib_Target_X86_X86InstrSystem.td
@@ -0,0 +1,11 @@
+--- lib/Target/X86/X86InstrSystem.td.orig
++++ lib/Target/X86/X86InstrSystem.td
+@@ -573,7 +573,7 @@
+ //===----------------------------------------------------------------------===//
+ // VIA PadLock crypto instructions
+ let Defs = [RAX, RDI], Uses = [RDX, RDI], SchedRW = [WriteSystem] in
+-  def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB, REP;
++  def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB;
+ 
+ def : InstAlias<"xstorerng", (XSTORE)>;
+ 
diff --git a/devel/llvm12/Makefile b/devel/llvm12/Makefile
index 609f8b1b1785..cf0c9ac51833 100644
--- a/devel/llvm12/Makefile
+++ b/devel/llvm12/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	llvm
 DISTVERSION=	12.0.1
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	devel lang
 MASTER_SITES=	https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
 		https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR}
diff --git a/devel/llvm12/files/patch-llvm_lib_Target_X86_X86InstrSystem.td b/devel/llvm12/files/patch-llvm_lib_Target_X86_X86InstrSystem.td
new file mode 100644
index 000000000000..c855644e7719
--- /dev/null
+++ b/devel/llvm12/files/patch-llvm_lib_Target_X86_X86InstrSystem.td
@@ -0,0 +1,11 @@
+--- llvm/lib/Target/X86/X86InstrSystem.td.orig
++++ llvm/lib/Target/X86/X86InstrSystem.td
+@@ -585,7 +585,7 @@
+ //===----------------------------------------------------------------------===//
+ // VIA PadLock crypto instructions
+ let Defs = [RAX, RDI], Uses = [RDX, RDI], SchedRW = [WriteSystem] in
+-  def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB, REP;
++  def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB;
+ 
+ def : InstAlias<"xstorerng", (XSTORE)>;
+ 
diff --git a/devel/llvm13/Makefile b/devel/llvm13/Makefile
index 796455af389f..ac541aa75424 100644
--- a/devel/llvm13/Makefile
+++ b/devel/llvm13/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	llvm
 DISTVERSION=	13.0.0
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	devel lang
 MASTER_SITES=	https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
 		https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR}
diff --git a/devel/llvm13/files/patch-llvm_lib_Target_X86_X86InstrSystem.td b/devel/llvm13/files/patch-llvm_lib_Target_X86_X86InstrSystem.td
new file mode 100644
index 000000000000..c855644e7719
--- /dev/null
+++ b/devel/llvm13/files/patch-llvm_lib_Target_X86_X86InstrSystem.td
@@ -0,0 +1,11 @@
+--- llvm/lib/Target/X86/X86InstrSystem.td.orig
++++ llvm/lib/Target/X86/X86InstrSystem.td
+@@ -585,7 +585,7 @@
+ //===----------------------------------------------------------------------===//
+ // VIA PadLock crypto instructions
+ let Defs = [RAX, RDI], Uses = [RDX, RDI], SchedRW = [WriteSystem] in
+-  def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB, REP;
++  def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB;
+ 
+ def : InstAlias<"xstorerng", (XSTORE)>;
+