Skip to content

Commit e5e8ff1

Browse files
Merge branch 'npu/release/21.x' into md/release_21_infra
2 parents 40961da + f68f64e commit e5e8ff1

File tree

7 files changed

+39
-9
lines changed

7 files changed

+39
-9
lines changed

cmake/Modules/LLVMVersion.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if(NOT DEFINED LLVM_VERSION_MINOR)
77
set(LLVM_VERSION_MINOR 1)
88
endif()
99
if(NOT DEFINED LLVM_VERSION_PATCH)
10-
set(LLVM_VERSION_PATCH 7)
10+
set(LLVM_VERSION_PATCH 8)
1111
endif()
1212
if(NOT DEFINED LLVM_VERSION_SUFFIX)
1313
set(LLVM_VERSION_SUFFIX)

libcxx/include/__config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// _LIBCPP_VERSION represents the version of libc++, which matches the version of LLVM.
2929
// Given a LLVM release LLVM XX.YY.ZZ (e.g. LLVM 17.0.1 == 17.00.01), _LIBCPP_VERSION is
3030
// defined to XXYYZZ.
31-
# define _LIBCPP_VERSION 210107
31+
# define _LIBCPP_VERSION 210108
3232

3333
# define _LIBCPP_CONCAT_IMPL(_X, _Y) _X##_Y
3434
# define _LIBCPP_CONCAT(_X, _Y) _LIBCPP_CONCAT_IMPL(_X, _Y)

lld/COFF/Chunks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ void ECCodeMapChunk::writeTo(uint8_t *buf) const {
939939
auto table = reinterpret_cast<chpe_range_entry *>(buf);
940940
for (uint32_t i = 0; i < map.size(); i++) {
941941
const ECCodeMapEntry &entry = map[i];
942-
uint32_t start = entry.first->getRVA();
942+
uint32_t start = entry.first->getRVA() & ~0xfff;
943943
table[i].StartOffset = start | entry.type;
944944
table[i].Length = entry.last->getRVA() + entry.last->getSize() - start;
945945
}

lld/test/COFF/arm64ec-codemap.test

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN: llvm-mc -filetype=obj -triple=arm64ec-windows arm64ec-func-sym2.s -o arm64e
77
RUN: llvm-mc -filetype=obj -triple=arm64ec-windows data-sec.s -o data-sec.obj
88
RUN: llvm-mc -filetype=obj -triple=arm64ec-windows data-sec2.s -o data-sec2.obj
99
RUN: llvm-mc -filetype=obj -triple=arm64ec-windows empty-sec.s -o arm64ec-empty-sec.obj
10+
RUN: llvm-mc -filetype=obj -triple=arm64ec-windows entry-thunk.s -o entry-thunk.obj
1011
RUN: llvm-mc -filetype=obj -triple=x86_64-windows x86_64-func-sym.s -o x86_64-func-sym.obj
1112
RUN: llvm-mc -filetype=obj -triple=x86_64-windows empty-sec.s -o x86_64-empty-sec.obj
1213
RUN: llvm-mc -filetype=obj -triple=aarch64-windows %S/Inputs/loadconfig-arm64.s -o loadconfig-arm64.obj
@@ -162,15 +163,17 @@ RUN: loadconfig-arm64ec.obj -dll -noentry -merge:test=.testdata -merge:
162163

163164
RUN: llvm-readobj --coff-load-config testcm.dll | FileCheck -check-prefix=CODEMAPCM %s
164165
CODEMAPCM: CodeMap [
165-
CODEMAPCM-NEXT: 0x4008 - 0x4016 X64
166+
CODEMAPCM-NEXT: 0x4000 - 0x4016 X64
166167
CODEMAPCM-NEXT: ]
167168

168169
RUN: llvm-objdump -d testcm.dll | FileCheck -check-prefix=DISASMCM %s
169170
DISASMCM: Disassembly of section .testdat:
170171
DISASMCM-EMPTY:
171172
DISASMCM-NEXT: 0000000180004000 <.testdat>:
172-
DISASMCM-NEXT: 180004000: 00000001 udf #0x1
173-
DISASMCM-NEXT: 180004004: 00000000 udf #0x0
173+
DISASMCM-NEXT: 180004000: 01 00 addl %eax, (%rax)
174+
DISASMCM-NEXT: 180004002: 00 00 addb %al, (%rax)
175+
DISASMCM-NEXT: 180004004: 00 00 addb %al, (%rax)
176+
DISASMCM-NEXT: 180004006: 00 00 addb %al, (%rax)
174177
DISASMCM-NEXT: 180004008: b8 03 00 00 00 movl $0x3, %eax
175178
DISASMCM-NEXT: 18000400d: c3 retq
176179
DISASMCM-NEXT: 18000400e: 00 00 addb %al, (%rax)
@@ -207,6 +210,14 @@ DISASMMS-NEXT: 0000000180006000 <test2>:
207210
DISASMMS-NEXT: 180006000: 528000a0 mov w0, #0x5 // =5
208211
DISASMMS-NEXT: 180006004: d65f03c0 ret
209212

213+
Test the code map that includes an ARM64EC function padded by its entry-thunk offset.
214+
215+
RUN: lld-link -out:testpad.dll -machine:arm64ec entry-thunk.obj loadconfig-arm64ec.obj -dll -noentry -include:func
216+
RUN: llvm-readobj --coff-load-config testpad.dll | FileCheck -check-prefix=CODEMAPPAD %s
217+
CODEMAPPAD: CodeMap [
218+
CODEMAPPAD: 0x1000 - 0x1010 ARM64EC
219+
CODEMAPPAD-NEXT: ]
220+
210221

211222
#--- arm64-func-sym.s
212223
.text
@@ -266,3 +277,22 @@ x86_64_func_sym2:
266277
.section .empty1, "xr"
267278
.section .empty2, "xr"
268279
.section .empty3, "xr"
280+
281+
#--- entry-thunk.s
282+
.section .text,"xr",discard,func
283+
.globl func
284+
.p2align 2, 0x0
285+
func:
286+
mov w0, #1
287+
ret
288+
289+
.section .wowthk$aa,"xr",discard,thunk
290+
.globl thunk
291+
.p2align 2
292+
thunk:
293+
ret
294+
295+
.section .hybmp$x,"yi"
296+
.symidx func
297+
.symidx thunk
298+
.word 1 // entry thunk
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
llvm_version_major = 21
22
llvm_version_minor = 1
3-
llvm_version_patch = 7
3+
llvm_version_patch = 8
44
llvm_version = "$llvm_version_major.$llvm_version_minor.$llvm_version_patch"

llvm/utils/lit/lit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
__author__ = "Daniel Dunbar"
44
__email__ = "[email protected]"
5-
__versioninfo__ = (21, 1, 7)
5+
__versioninfo__ = (21, 1, 8)
66
__version__ = ".".join(str(v) for v in __versioninfo__) + "dev"
77

88
__all__ = []

llvm/utils/mlgo-utils/mlgo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from datetime import timezone, datetime
66

7-
__versioninfo__ = (21, 1, 7)
7+
__versioninfo__ = (21, 1, 8)
88
__version__ = (
99
".".join(str(v) for v in __versioninfo__)
1010
+ "dev"

0 commit comments

Comments
 (0)