Skip to content

Commit 41d518c

Browse files
committed
Merge remote-tracking branch 'origin/sycl' into reuse_events_in_cmd_list_preview
2 parents a32aac6 + d824127 commit 41d518c

File tree

3,216 files changed

+117922
-40623
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,216 files changed

+117922
-40623
lines changed

.github/workflows/sycl_post_commit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- .github/workflows/sycl_linux_build_and_test.yml
1414
- .github/workflows/sycl_windows_build_and_test.yml
1515
- .github/workflows/sycl_macos_build_and_test.yml
16+
workflow_dispatch:
1617

1718
jobs:
1819
# This job generates matrix of tests for LLVM Test Suite

bolt/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ if (BOLT_ENABLE_RUNTIME)
5555
-DCMAKE_BUILD_TYPE=Release
5656
-DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}
5757
-DCMAKE_INSTALL_PREFIX=${LLVM_BINARY_DIR}
58+
-DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX}
5859
BUILD_ALWAYS True
5960
)
6061
install(CODE "execute_process\(COMMAND \${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=\${CMAKE_INSTALL_PREFIX} -P ${CMAKE_CURRENT_BINARY_DIR}/bolt_rt-bins/cmake_install.cmake \)"
@@ -87,3 +88,6 @@ option(BOLT_INCLUDE_DOCS "Generate build targets for the BOLT docs."
8788
if (BOLT_INCLUDE_DOCS)
8889
add_subdirectory(docs)
8990
endif()
91+
92+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/include/bolt/RuntimeLibs/RuntimeLibraryVariables.inc.in
93+
${CMAKE_CURRENT_BINARY_DIR}/include/bolt/RuntimeLibs/RuntimeLibraryVariables.inc @ONLY)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//===-- RuntimeLibraryVariables.inc.in - bolt build variables -*- C++ -*---===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
//
9+
// This file is configured by the build system to define the runtime library
10+
// location.
11+
//
12+
// The variant of this file not ending with .in has been autogenerated by the
13+
// LLVM build. Do not edit!
14+
//
15+
//===----------------------------------------------------------------------===//
16+
17+
#define LLVM_LIBDIR_SUFFIX "@LLVM_LIBDIR_SUFFIX@"

bolt/lib/Rewrite/RewriteInstance.cpp

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,19 @@ void RewriteInstance::parsePseudoProbe() {
599599
errs() << "BOLT-WARNING: fail in building GUID2FuncDescMap\n";
600600
return;
601601
}
602+
603+
MCPseudoProbeDecoder::Uint64Set GuidFilter;
604+
MCPseudoProbeDecoder::Uint64Map FuncStartAddrs;
605+
for (const BinaryFunction *F : BC->getAllBinaryFunctions()) {
606+
for (const MCSymbol *Sym : F->getSymbols()) {
607+
FuncStartAddrs[Function::getGUID(NameResolver::restore(Sym->getName()))] =
608+
F->getAddress();
609+
}
610+
}
602611
Contents = PseudoProbeSection->getContents();
603612
if (!BC->ProbeDecoder.buildAddress2ProbeMap(
604-
reinterpret_cast<const uint8_t *>(Contents.data()),
605-
Contents.size())) {
613+
reinterpret_cast<const uint8_t *>(Contents.data()), Contents.size(),
614+
GuidFilter, FuncStartAddrs)) {
606615
BC->ProbeDecoder.getAddress2ProbesMap().clear();
607616
errs() << "BOLT-WARNING: fail in building Address2ProbeMap\n";
608617
return;
@@ -3426,6 +3435,8 @@ void RewriteInstance::encodePseudoProbes() {
34263435
// Address of the first probe is absolute.
34273436
// Other probes' address are represented by delta
34283437
auto EmitDecodedPseudoProbe = [&](MCDecodedPseudoProbe *&CurProbe) {
3438+
assert(!isSentinelProbe(CurProbe->getAttributes()) &&
3439+
"Sentinel probes should not be emitted");
34293440
EmitULEB128IntValue(CurProbe->getIndex());
34303441
uint8_t PackedType = CurProbe->getType() | (CurProbe->getAttributes() << 4);
34313442
uint8_t Flag =
@@ -3530,9 +3541,17 @@ void RewriteInstance::encodePseudoProbes() {
35303541
reinterpret_cast<const uint8_t *>(DescContents.data()),
35313542
DescContents.size());
35323543
StringRef ProbeContents = PseudoProbeSection->getOutputContents();
3544+
MCPseudoProbeDecoder::Uint64Set GuidFilter;
3545+
MCPseudoProbeDecoder::Uint64Map FuncStartAddrs;
3546+
for (const BinaryFunction *F : BC->getAllBinaryFunctions()) {
3547+
const uint64_t Addr =
3548+
F->isEmitted() ? F->getOutputAddress() : F->getAddress();
3549+
FuncStartAddrs[Function::getGUID(
3550+
NameResolver::restore(F->getOneName()))] = Addr;
3551+
}
35333552
DummyDecoder.buildAddress2ProbeMap(
35343553
reinterpret_cast<const uint8_t *>(ProbeContents.data()),
3535-
ProbeContents.size());
3554+
ProbeContents.size(), GuidFilter, FuncStartAddrs);
35363555
DummyDecoder.printProbesForAllAddresses(outs());
35373556
}
35383557
}

bolt/lib/RuntimeLibs/RuntimeLibrary.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#include "bolt/RuntimeLibs/RuntimeLibrary.h"
14+
#include "bolt/RuntimeLibs/RuntimeLibraryVariables.inc"
1415
#include "bolt/Utils/Utils.h"
1516
#include "llvm/BinaryFormat/Magic.h"
1617
#include "llvm/ExecutionEngine/RuntimeDyld.h"
@@ -28,12 +29,12 @@ std::string RuntimeLibrary::getLibPath(StringRef ToolPath,
2829
StringRef LibFileName) {
2930
StringRef Dir = llvm::sys::path::parent_path(ToolPath);
3031
SmallString<128> LibPath = llvm::sys::path::parent_path(Dir);
31-
llvm::sys::path::append(LibPath, "lib");
32+
llvm::sys::path::append(LibPath, "lib" LLVM_LIBDIR_SUFFIX);
3233
if (!llvm::sys::fs::exists(LibPath)) {
3334
// In some cases we install bolt binary into one level deeper in bin/,
3435
// we need to go back one more level to find lib directory.
3536
LibPath = llvm::sys::path::parent_path(llvm::sys::path::parent_path(Dir));
36-
llvm::sys::path::append(LibPath, "lib");
37+
llvm::sys::path::append(LibPath, "lib" LLVM_LIBDIR_SUFFIX);
3738
}
3839
llvm::sys::path::append(LibPath, LibFileName);
3940
if (!llvm::sys::fs::exists(LibPath)) {

bolt/runtime/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ add_library(bolt_rt_instr STATIC
1515
instr.cpp
1616
${CMAKE_CURRENT_BINARY_DIR}/config.h
1717
)
18+
set_target_properties(bolt_rt_instr PROPERTIES LIBRARY_OUTPUT_DIRECTORY "lib${LLVM_LIBDIR_SUFFIX}")
1819
add_library(bolt_rt_hugify STATIC
1920
hugify.cpp
2021
${CMAKE_CURRENT_BINARY_DIR}/config.h
2122
)
23+
set_target_properties(bolt_rt_hugify PROPERTIES LIBRARY_OUTPUT_DIRECTORY "lib${LLVM_LIBDIR_SUFFIX}")
2224

2325
set(BOLT_RT_FLAGS
2426
-ffreestanding
@@ -33,17 +35,18 @@ target_include_directories(bolt_rt_instr PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
3335
target_compile_options(bolt_rt_hugify PRIVATE ${BOLT_RT_FLAGS})
3436
target_include_directories(bolt_rt_hugify PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
3537

36-
install(TARGETS bolt_rt_instr DESTINATION "${CMAKE_INSTALL_LIBDIR}")
37-
install(TARGETS bolt_rt_hugify DESTINATION "${CMAKE_INSTALL_LIBDIR}")
38+
install(TARGETS bolt_rt_instr DESTINATION "lib${LLVM_LIBDIR_SUFFIX}")
39+
install(TARGETS bolt_rt_hugify DESTINATION "lib${LLVM_LIBDIR_SUFFIX}")
3840

3941
if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang.*")
4042
add_library(bolt_rt_instr_osx STATIC
4143
instr.cpp
4244
${CMAKE_CURRENT_BINARY_DIR}/config.h
4345
)
46+
set_target_properties(bolt_rt_instr_osx PROPERTIES LIBRARY_OUTPUT_DIRECTORY "lib${LLVM_LIBDIR_SUFFIX}")
4447
target_include_directories(bolt_rt_instr_osx PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
4548
target_compile_options(bolt_rt_instr_osx PRIVATE
4649
-target x86_64-apple-darwin19.6.0
4750
${BOLT_RT_FLAGS})
48-
install(TARGETS bolt_rt_instr_osx DESTINATION "${CMAKE_INSTALL_LIBDIR}")
51+
install(TARGETS bolt_rt_instr_osx DESTINATION "lib${LLVM_LIBDIR_SUFFIX}")
4952
endif()

bolt/test/AArch64/double_jump.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang %cflags -O0 %s -o %t.exe
44
// RUN: llvm-bolt %t.exe -o %t.bolt --peepholes=double-jumps | \
55
// RUN: FileCheck %s -check-prefix=CHECKBOLT
6-
// RUN: llvm-objdump -d %t.bolt | FileCheck %s
6+
// RUN: llvm-objdump --no-print-imm-hex -d %t.bolt | FileCheck %s
77

88
// CHECKBOLT: BOLT-INFO: Peephole: 1 double jumps patched.
99

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# REQUIRES: system-linux
2+
# RUN: llvm-bolt %S/../../llvm/test/tools/llvm-profgen/Inputs/inline-cs-pseudoprobe.perfbin --print-pseudo-probes=all -o %t.bolt 2>&1 | FileCheck %s
3+
4+
CHECK: Report of decoding input pseudo probe binaries
5+
6+
CHECK-NEXT: Pseudo Probe Desc:
7+
CHECK-NEXT: GUID: 6699318081062747564 Name: foo
8+
CHECK-NEXT: Hash: 563088904013236
9+
CHECK-NEXT: GUID: 15822663052811949562 Name: main
10+
CHECK-NEXT: Hash: 281479271677951
11+
CHECK-NEXT: GUID: 16434608426314478903 Name: bar
12+
CHECK-NEXT: Hash: 72617220756
13+
14+
CHECK: [Probe]: FUNC: bar Index: 1 Type: Block
15+
CHECK: [Probe]: FUNC: bar Index: 4 Type: Block
16+
CHECK: [Probe]: FUNC: foo Index: 1 Type: Block
17+
CHECK: [Probe]: FUNC: foo Index: 2 Type: Block
18+
CHECK: [Probe]: FUNC: foo Index: 5 Type: Block
19+
CHECK: [Probe]: FUNC: foo Index: 6 Type: Block
20+
CHECK: [Probe]: FUNC: foo Index: 2 Type: Block
21+
CHECK: [Probe]: FUNC: foo Index: 3 Type: Block
22+
CHECK: [Probe]: FUNC: foo Index: 4 Type: Block
23+
CHECK: [Probe]: FUNC: bar Index: 1 Type: Block Inlined: @ foo:8
24+
CHECK: [Probe]: FUNC: bar Index: 4 Type: Block Inlined: @ foo:8
25+
CHECK: [Probe]: FUNC: foo Index: 6 Type: Block
26+
CHECK: [Probe]: FUNC: foo Index: 2 Type: Block
27+
CHECK: [Probe]: FUNC: foo Index: 7 Type: Block
28+
CHECK: [Probe]: FUNC: foo Index: 9 Type: DirectCall
29+
CHECK: [Probe]: FUNC: main Index: 1 Type: Block
30+
CHECK: [Probe]: FUNC: foo Index: 1 Type: Block Inlined: @ main:2
31+
CHECK: [Probe]: FUNC: foo Index: 2 Type: Block Inlined: @ main:2
32+
CHECK: [Probe]: FUNC: foo Index: 5 Type: Block Inlined: @ main:2
33+
CHECK: [Probe]: FUNC: foo Index: 6 Type: Block Inlined: @ main:2
34+
CHECK: [Probe]: FUNC: foo Index: 2 Type: Block Inlined: @ main:2
35+
CHECK: [Probe]: FUNC: foo Index: 3 Type: Block Inlined: @ main:2
36+
CHECK: [Probe]: FUNC: foo Index: 4 Type: Block Inlined: @ main:2
37+
CHECK: [Probe]: FUNC: bar Index: 1 Type: Block Inlined: @ main:2 @ foo:8
38+
CHECK: [Probe]: FUNC: bar Index: 4 Type: Block Inlined: @ main:2 @ foo:8
39+
CHECK: [Probe]: FUNC: foo Index: 6 Type: Block Inlined: @ main:2
40+
CHECK: [Probe]: FUNC: foo Index: 2 Type: Block Inlined: @ main:2
41+
CHECK: [Probe]: FUNC: foo Index: 7 Type: Block Inlined: @ main:2
42+
CHECK: [Probe]: FUNC: foo Index: 9 Type: DirectCall Inlined: @ main:2
43+
44+
CHECK: Pseudo Probe Address Conversion results:
45+
46+
CHECK: Address: 0x201750 FUNC: bar Index: 1 Type: Block
47+
CHECK: Address: 0x201750 FUNC: bar Index: 4 Type: Block
48+
CHECK: Address: 0x201770 FUNC: foo Index: 1 Type: Block
49+
CHECK: Address: 0x201770 FUNC: foo Index: 2 Type: Block
50+
CHECK: Address: 0x20177d FUNC: foo Index: 5 Type: Block
51+
CHECK: Address: 0x20177d FUNC: foo Index: 6 Type: Block
52+
CHECK: Address: 0x20177d FUNC: foo Index: 2 Type: Block
53+
CHECK: Address: 0x20178b FUNC: foo Index: 3 Type: Block
54+
CHECK: Address: 0x2017aa FUNC: foo Index: 4 Type: Block
55+
CHECK: Address: 0x2017aa FUNC: bar Index: 1 Type: Block Inlined: @ foo:8
56+
CHECK: Address: 0x2017aa FUNC: bar Index: 4 Type: Block Inlined: @ foo:8
57+
CHECK: Address: 0x2017aa FUNC: foo Index: 6 Type: Block
58+
CHECK: Address: 0x2017aa FUNC: foo Index: 2 Type: Block
59+
CHECK: Address: 0x2017d7 FUNC: foo Index: 7 Type: Block
60+
CHECK: Address: 0x2017e2 FUNC: foo Index: 9 Type: DirectCall
61+
CHECK: Address: 0x2017f0 FUNC: main Index: 1 Type: Block
62+
CHECK: Address: 0x2017f0 FUNC: foo Index: 1 Type: Block Inlined: @ main:2
63+
CHECK: Address: 0x2017f0 FUNC: foo Index: 2 Type: Block Inlined: @ main:2
64+
CHECK: Address: 0x2017fd FUNC: foo Index: 5 Type: Block Inlined: @ main:2
65+
CHECK: Address: 0x2017fd FUNC: foo Index: 6 Type: Block Inlined: @ main:2
66+
CHECK: Address: 0x2017fd FUNC: foo Index: 2 Type: Block Inlined: @ main:2
67+
CHECK: Address: 0x20180b FUNC: foo Index: 3 Type: Block Inlined: @ main:2
68+
CHECK: Address: 0x20182a FUNC: foo Index: 4 Type: Block Inlined: @ main:2
69+
CHECK: Address: 0x20182a FUNC: bar Index: 1 Type: Block Inlined: @ main:2 @ foo:8
70+
CHECK: Address: 0x20182a FUNC: bar Index: 4 Type: Block Inlined: @ main:2 @ foo:8
71+
CHECK: Address: 0x20182a FUNC: foo Index: 6 Type: Block Inlined: @ main:2
72+
CHECK: Address: 0x20182a FUNC: foo Index: 2 Type: Block Inlined: @ main:2
73+
CHECK: Address: 0x201857 FUNC: foo Index: 7 Type: Block Inlined: @ main:2
74+
CHECK: Address: 0x201862 FUNC: foo Index: 9 Type: DirectCall Inlined: @ main:2
75+
76+
CHECK: Address: 2103120
77+
CHECK-NEXT: [Probe]: FUNC: bar Index: 1 Type: Block
78+
CHECK-NEXT: [Probe]: FUNC: bar Index: 4 Type: Block
79+
CHECK-NEXT: Address: 2103152
80+
CHECK-NEXT: [Probe]: FUNC: foo Index: 1 Type: Block
81+
CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block
82+
CHECK-NEXT: Address: 2103165
83+
CHECK-NEXT: [Probe]: FUNC: foo Index: 5 Type: Block
84+
CHECK-NEXT: [Probe]: FUNC: foo Index: 6 Type: Block
85+
CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block
86+
CHECK-NEXT: Address: 2103179
87+
CHECK-NEXT: [Probe]: FUNC: foo Index: 3 Type: Block
88+
CHECK-NEXT: Address: 2103210
89+
CHECK-NEXT: [Probe]: FUNC: foo Index: 4 Type: Block
90+
CHECK-NEXT: [Probe]: FUNC: foo Index: 6 Type: Block
91+
CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block
92+
CHECK-NEXT: [Probe]: FUNC: bar Index: 1 Type: Block Inlined: @ foo:8
93+
CHECK-NEXT: [Probe]: FUNC: bar Index: 4 Type: Block Inlined: @ foo:8
94+
CHECK-NEXT: Address: 2103255
95+
CHECK-NEXT: [Probe]: FUNC: foo Index: 7 Type: Block
96+
CHECK-NEXT: Address: 2103266
97+
CHECK-NEXT: [Probe]: FUNC: foo Index: 9 Type: DirectCall
98+
CHECK-NEXT: Address: 2103280
99+
CHECK-NEXT: [Probe]: FUNC: main Index: 1 Type: Block
100+
CHECK-NEXT: [Probe]: FUNC: foo Index: 1 Type: Block Inlined: @ main:2
101+
CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block Inlined: @ main:2
102+
CHECK-NEXT: Address: 2103293
103+
CHECK-NEXT: [Probe]: FUNC: foo Index: 5 Type: Block Inlined: @ main:2
104+
CHECK-NEXT: [Probe]: FUNC: foo Index: 6 Type: Block Inlined: @ main:2
105+
CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block Inlined: @ main:2
106+
CHECK-NEXT: Address: 2103307
107+
CHECK-NEXT: [Probe]: FUNC: foo Index: 3 Type: Block Inlined: @ main:2
108+
CHECK-NEXT: Address: 2103338
109+
CHECK-NEXT: [Probe]: FUNC: foo Index: 4 Type: Block Inlined: @ main:2
110+
CHECK-NEXT: [Probe]: FUNC: foo Index: 6 Type: Block Inlined: @ main:2
111+
CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block Inlined: @ main:2
112+
CHECK-NEXT: [Probe]: FUNC: bar Index: 1 Type: Block Inlined: @ main:2 @ foo:8
113+
CHECK-NEXT: [Probe]: FUNC: bar Index: 4 Type: Block Inlined: @ main:2 @ foo:8
114+
CHECK-NEXT: Address: 2103383
115+
CHECK-NEXT: [Probe]: FUNC: foo Index: 7 Type: Block Inlined: @ main:2
116+
CHECK-NEXT: Address: 2103394
117+
CHECK-NEXT: [Probe]: FUNC: foo Index: 9 Type: DirectCall Inlined: @ main:2
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# REQUIRES: system-linux
2+
# RUN: llvm-bolt %S/../../llvm/test/tools/llvm-profgen/Inputs/noinline-cs-pseudoprobe.perfbin --print-pseudo-probes=all -o %t.bolt 2>&1 | FileCheck %s
3+
4+
;; Report of decoding input pseudo probe binaries
5+
6+
; CHECK: GUID: 6699318081062747564 Name: foo
7+
; CHECK: Hash: 563088904013236
8+
; CHECK: GUID: 15822663052811949562 Name: main
9+
; CHECK: Hash: 281479271677951
10+
; CHECK: GUID: 16434608426314478903 Name: bar
11+
; CHECK: Hash: 72617220756
12+
13+
CHECK: [Probe]: FUNC: bar Index: 1 Type: Block
14+
CHECK: [Probe]: FUNC: bar Index: 4 Type: Block
15+
CHECK: [Probe]: FUNC: foo Index: 1 Type: Block
16+
CHECK: [Probe]: FUNC: foo Index: 2 Type: Block
17+
CHECK: [Probe]: FUNC: foo Index: 5 Type: Block
18+
CHECK: [Probe]: FUNC: foo Index: 6 Type: Block
19+
CHECK: [Probe]: FUNC: foo Index: 2 Type: Block
20+
CHECK: [Probe]: FUNC: foo Index: 3 Type: Block
21+
CHECK: [Probe]: FUNC: foo Index: 4 Type: Block
22+
CHECK: [Probe]: FUNC: foo Index: 8 Type: DirectCall
23+
CHECK: [Probe]: FUNC: foo Index: 6 Type: Block
24+
CHECK: [Probe]: FUNC: foo Index: 2 Type: Block
25+
CHECK: [Probe]: FUNC: foo Index: 7 Type: Block
26+
CHECK: [Probe]: FUNC: foo Index: 9 Type: DirectCall
27+
CHECK: [Probe]: FUNC: main Index: 1 Type: Block
28+
CHECK: [Probe]: FUNC: main Index: 2 Type: DirectCall
29+
30+
CHECK: Pseudo Probe Address Conversion results:
31+
32+
CHECK: Address: 0x201760 FUNC: bar Index: 1 Type: Block
33+
CHECK: Address: 0x201760 FUNC: bar Index: 4 Type: Block
34+
CHECK: Address: 0x201780 FUNC: foo Index: 1 Type: Block
35+
CHECK: Address: 0x201780 FUNC: foo Index: 2 Type: Block
36+
CHECK: Address: 0x20178d FUNC: foo Index: 5 Type: Block
37+
CHECK: Address: 0x20178d FUNC: foo Index: 6 Type: Block
38+
CHECK: Address: 0x20178d FUNC: foo Index: 2 Type: Block
39+
CHECK: Address: 0x20179b FUNC: foo Index: 3 Type: Block
40+
CHECK: Address: 0x2017ba FUNC: foo Index: 4 Type: Block
41+
CHECK: Address: 0x2017bc FUNC: foo Index: 8 Type: DirectCall
42+
CHECK: Address: 0x2017ba FUNC: foo Index: 6 Type: Block
43+
CHECK: Address: 0x2017ba FUNC: foo Index: 2 Type: Block
44+
CHECK: Address: 0x2017ce FUNC: foo Index: 7 Type: Block
45+
CHECK: Address: 0x2017d5 FUNC: foo Index: 9 Type: DirectCall
46+
CHECK: Address: 0x2017f0 FUNC: main Index: 1 Type: Block
47+
CHECK: Address: 0x2017f4 FUNC: main Index: 2 Type: DirectCall
48+
49+
CHECK: Address: 2103136
50+
CHECK-NEXT: [Probe]: FUNC: bar Index: 1 Type: Block
51+
CHECK-NEXT: [Probe]: FUNC: bar Index: 4 Type: Block
52+
CHECK-NEXT: Address: 2103168
53+
CHECK-NEXT: [Probe]: FUNC: foo Index: 1 Type: Block
54+
CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block
55+
CHECK-NEXT: Address: 2103181
56+
CHECK-NEXT: [Probe]: FUNC: foo Index: 5 Type: Block
57+
CHECK-NEXT: [Probe]: FUNC: foo Index: 6 Type: Block
58+
CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block
59+
CHECK-NEXT: Address: 2103195
60+
CHECK-NEXT: [Probe]: FUNC: foo Index: 3 Type: Block
61+
CHECK-NEXT: Address: 2103226
62+
CHECK-NEXT: [Probe]: FUNC: foo Index: 4 Type: Block
63+
CHECK-NEXT: [Probe]: FUNC: foo Index: 6 Type: Block
64+
CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block
65+
CHECK-NEXT: Address: 2103228
66+
CHECK-NEXT: [Probe]: FUNC: foo Index: 8 Type: DirectCall
67+
CHECK-NEXT: Address: 2103246
68+
CHECK-NEXT: [Probe]: FUNC: foo Index: 7 Type: Block
69+
CHECK-NEXT: Address: 2103253
70+
CHECK-NEXT: [Probe]: FUNC: foo Index: 9 Type: DirectCall
71+
CHECK-NEXT: Address: 2103280
72+
CHECK-NEXT: [Probe]: FUNC: main Index: 1 Type: Block
73+
CHECK-NEXT: Address: 2103284
74+
CHECK-NEXT: [Probe]: FUNC: main Index: 2 Type: DirectCall

bolt/test/runtime/AArch64/adrrelaxationpass.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# RUN: %s -o %t.o
88
# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
99
# RUN: llvm-bolt %t.exe -o %t.bolt --adr-relaxation=true
10-
# RUN: llvm-objdump -d --disassemble-symbols=main %t.bolt | FileCheck %s
10+
# RUN: llvm-objdump --no-print-imm-hex -d --disassemble-symbols=main %t.bolt | FileCheck %s
1111
# RUN: %t.bolt
1212

1313
.data

0 commit comments

Comments
 (0)