openbsd-ports/devel/llvm/patches/patch-lib_Target_AArch64_AArch64InstrInfo_td
jca 75c7843086 Update to llvm-8.0.0
Most patch merges inspired from patrick's work on base-clang.  Consumer
ports fixed/marked BROKEN as discussed with bcallah@ and rsadowski@.
powerpc tests and PLIST fixes from cwen@, thanks!  rust-1.36 tests by
semarie@
2019-07-06 15:06:36 +00:00

21 lines
675 B
Plaintext

$OpenBSD: patch-lib_Target_AArch64_AArch64InstrInfo_td,v 1.3 2019/07/06 15:06:36 jca Exp $
Add retguard for arm64.
Index: lib/Target/AArch64/AArch64InstrInfo.td
--- lib/Target/AArch64/AArch64InstrInfo.td.orig
+++ lib/Target/AArch64/AArch64InstrInfo.td
@@ -491,6 +491,12 @@ def ADDlowTLS
} // isReMaterializable, isCodeGenOnly
+//===----------------------------------------------------------------------===//
+// Pseudo instruction used by retguard
+let isCodeGenOnly = 1, hasNoSchedulingInfo = 1 in {
+ def RETGUARD_JMP_TRAP: Pseudo<(outs), (ins GPR64:$reg), []>;
+}
+
def : Pat<(AArch64LOADgot tglobaltlsaddr:$addr),
(LOADgot tglobaltlsaddr:$addr)>;