[PATCH] D28624: [XRay][Arm] Repair XRay table emission on Arm32 and add tests to identify such problem earlier
Serge Rogatch via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 17 04:03:11 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL292210: [XRay][Arm] Repair XRay table emission on Arm32 and add tests to identify such… (authored by rSerge).
Changed prior to commit:
https://reviews.llvm.org/D28624?vs=84166&id=84650#toc
Repository:
rL LLVM
https://reviews.llvm.org/D28624
Files:
llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
llvm/trunk/test/CodeGen/ARM/xray-armv6-attribute-instrumentation.ll
llvm/trunk/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
Index: llvm/trunk/test/CodeGen/ARM/xray-armv6-attribute-instrumentation.ll
===================================================================
--- llvm/trunk/test/CodeGen/ARM/xray-armv6-attribute-instrumentation.ll
+++ llvm/trunk/test/CodeGen/ARM/xray-armv6-attribute-instrumentation.ll
@@ -23,3 +23,9 @@
; CHECK-LABEL: Ltmp1:
; CHECK-NEXT: bx lr
}
+; CHECK: .p2align 4
+; CHECK-NEXT: .long {{.*}}Lxray_synthetic_0
+; CHECK-NEXT: .section {{.*}}xray_instr_map{{.*}}
+; CHECK-LABEL: Lxray_synthetic_0:
+; CHECK: .long {{.*}}Lxray_sled_0
+; CHECK: .long {{.*}}Lxray_sled_1
Index: llvm/trunk/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
===================================================================
--- llvm/trunk/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
+++ llvm/trunk/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
@@ -23,3 +23,9 @@
; CHECK-LABEL: Ltmp1:
; CHECK-NEXT: bx lr
}
+; CHECK: .p2align 4
+; CHECK-NEXT: .long {{.*}}Lxray_synthetic_0
+; CHECK-NEXT: .section {{.*}}xray_instr_map{{.*}}
+; CHECK-LABEL: Lxray_synthetic_0:
+; CHECK: .long {{.*}}Lxray_sled_0
+; CHECK: .long {{.*}}Lxray_sled_1
Index: llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
===================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
+++ llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -164,6 +164,9 @@
// Emit the rest of the function body.
EmitFunctionBody();
+ // Emit the XRay table for this function.
+ emitXRayTable();
+
// If we need V4T thumb mode Register Indirect Jump pads, emit them.
// These are created per function, rather than per TU, since it's
// relatively easy to exceed the thumb branch range within a TU.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28624.84650.patch
Type: text/x-patch
Size: 1768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170117/d547a3bd/attachment.bin>
More information about the llvm-commits
mailing list