21 lines
682 B
Plaintext
21 lines
682 B
Plaintext
$OpenBSD: patch-lib_Target_AArch64_AArch64InstrInfo_td,v 1.1 2018/08/21 06:56:09 ajacoutot Exp $
|
|
|
|
Add retguard for arm64.
|
|
|
|
Index: lib/Target/AArch64/AArch64InstrInfo.td
|
|
--- lib/Target/AArch64/AArch64InstrInfo.td.orig
|
|
+++ lib/Target/AArch64/AArch64InstrInfo.td
|
|
@@ -399,6 +399,12 @@ def MOVaddrEXT
|
|
|
|
} // 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)>;
|
|
|