CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
207 lines
5.5 KiB
Plaintext
207 lines
5.5 KiB
Plaintext
## Show that llvm-size prints the total sizes when --totals is specified.
|
|
|
|
# RUN: rm -f %t.a
|
|
# RUN: yaml2obj %s --docnum=1 -o %t.o
|
|
# RUN: yaml2obj %s --docnum=2 -o %t2.o
|
|
# RUN: llvm-ar rc %t.a %t.o %t2.o
|
|
# RUN: llvm-size --totals %t.o %t.a %t2.o \
|
|
# RUN: | FileCheck %s -DFILE1=%t.o -DFILE2=%t2.o -DARCHIVE=%t.a
|
|
# RUN: llvm-size -t %t.o %t.a %t2.o \
|
|
# RUN: | FileCheck %s -DFILE1=%t.o -DFILE2=%t2.o -DARCHIVE=%t.a
|
|
|
|
# CHECK: text data bss dec hex filename
|
|
# CHECK-NEXT: [[FILE1]]
|
|
# CHECK-NEXT: {{.*}}.o (ex [[ARCHIVE]])
|
|
# CHECK-NEXT: {{.*}}2.o (ex [[ARCHIVE]])
|
|
# CHECK-NEXT: [[FILE2]]
|
|
# CHECK-NEXT: 18 36 72 126 7e (TOTALS)
|
|
|
|
# RUN: yaml2obj %s --docnum=3 -o %t-macho.o
|
|
# RUN: yaml2obj %s --docnum=4 -o %t-macho2.o
|
|
# RUN: llvm-size --totals %t-macho.o %t-macho2.o | \
|
|
# RUN: FileCheck %s --check-prefix=MACHO-CHECK --strict-whitespace \
|
|
# RUN: --match-full-lines --implicit-check-not={{.}} -DFILE1=%t-macho.o -DFILE2=%t-macho2.o
|
|
|
|
# MACHO-CHECK:__TEXT __DATA __OBJC others dec hex
|
|
# MACHO-CHECK-NEXT:20 100 0 32 152 98 [[FILE1]]
|
|
# MACHO-CHECK-NEXT:20 200 0 32 252 fc [[FILE2]]
|
|
# MACHO-CHECK-NEXT:40 300 0 64 404 194 (TOTALS)
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Flags: [SHF_ALLOC, SHF_EXECINSTR]
|
|
Size: 1
|
|
- Name: .data
|
|
Type: SHT_PROGBITS
|
|
Flags: [SHF_ALLOC, SHF_WRITE]
|
|
Size: 2
|
|
- Name: .bss
|
|
Type: SHT_NOBITS
|
|
Flags: [SHF_ALLOC, SHF_WRITE]
|
|
Size: 4
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Flags: [SHF_ALLOC, SHF_EXECINSTR]
|
|
Size: 8
|
|
- Name: .data
|
|
Type: SHT_PROGBITS
|
|
Flags: [SHF_ALLOC, SHF_WRITE]
|
|
Size: 16
|
|
- Name: .bss
|
|
Type: SHT_NOBITS
|
|
Flags: [SHF_ALLOC, SHF_WRITE]
|
|
Size: 32
|
|
|
|
--- !mach-o
|
|
FileHeader:
|
|
magic: 0xFEEDFACF
|
|
cputype: 0x100000C
|
|
cpusubtype: 0x0
|
|
filetype: 0x1
|
|
ncmds: 2
|
|
sizeofcmds: 352
|
|
flags: 0x2000
|
|
reserved: 0x0
|
|
LoadCommands:
|
|
- cmd: LC_SEGMENT_64
|
|
cmdsize: 312
|
|
segname: ''
|
|
vmaddr: 0
|
|
vmsize: 152
|
|
fileoff: 384
|
|
filesize: 152
|
|
maxprot: 7
|
|
initprot: 7
|
|
nsects: 3
|
|
flags: 0
|
|
Sections:
|
|
- sectname: __text
|
|
segname: __TEXT
|
|
addr: 0x0
|
|
size: 20
|
|
offset: 0x180
|
|
align: 2
|
|
reloff: 0x0
|
|
nreloc: 0
|
|
flags: 0x80000400
|
|
reserved1: 0x0
|
|
reserved2: 0x0
|
|
reserved3: 0x0
|
|
- sectname: __data
|
|
segname: __DATA
|
|
addr: 0x18
|
|
size: 100
|
|
offset: 0x198
|
|
align: 2
|
|
reloff: 0x0
|
|
nreloc: 0
|
|
flags: 0x0
|
|
reserved1: 0x0
|
|
reserved2: 0x0
|
|
reserved3: 0x0
|
|
- sectname: __compact_unwind
|
|
segname: __LD
|
|
addr: 0x20
|
|
size: 32
|
|
offset: 0x200
|
|
align: 3
|
|
reloff: 0x0
|
|
nreloc: 0
|
|
flags: 0x2000000
|
|
reserved1: 0x0
|
|
reserved2: 0x0
|
|
reserved3: 0x0
|
|
- cmd: LC_BUILD_VERSION
|
|
cmdsize: 32
|
|
platform: 1
|
|
minos: 851968
|
|
sdk: 983040
|
|
ntools: 1
|
|
Tools:
|
|
- tool: 3
|
|
version: 68157696
|
|
|
|
--- !mach-o
|
|
FileHeader:
|
|
magic: 0xFEEDFACF
|
|
cputype: 0x100000C
|
|
cpusubtype: 0x0
|
|
filetype: 0x1
|
|
ncmds: 2
|
|
sizeofcmds: 352
|
|
flags: 0x2000
|
|
reserved: 0x0
|
|
LoadCommands:
|
|
- cmd: LC_SEGMENT_64
|
|
cmdsize: 312
|
|
segname: ''
|
|
vmaddr: 0
|
|
vmsize: 252
|
|
fileoff: 384
|
|
filesize: 252
|
|
maxprot: 7
|
|
initprot: 7
|
|
nsects: 3
|
|
flags: 0
|
|
Sections:
|
|
- sectname: __text
|
|
segname: __TEXT
|
|
addr: 0x0
|
|
size: 20
|
|
offset: 0x180
|
|
align: 2
|
|
reloff: 0x0
|
|
nreloc: 0
|
|
flags: 0x80000400
|
|
reserved1: 0x0
|
|
reserved2: 0x0
|
|
reserved3: 0x0
|
|
- sectname: __data
|
|
segname: __DATA
|
|
addr: 0x18
|
|
size: 200
|
|
offset: 0x198
|
|
align: 2
|
|
reloff: 0x0
|
|
nreloc: 0
|
|
flags: 0x0
|
|
reserved1: 0x0
|
|
reserved2: 0x0
|
|
reserved3: 0x0
|
|
- sectname: __compact_unwind
|
|
segname: __LD
|
|
addr: 0x20
|
|
size: 32
|
|
offset: 0x260
|
|
align: 3
|
|
reloff: 0x0
|
|
nreloc: 0
|
|
flags: 0x2000000
|
|
reserved1: 0x0
|
|
reserved2: 0x0
|
|
reserved3: 0x0
|
|
- cmd: LC_BUILD_VERSION
|
|
cmdsize: 32
|
|
platform: 1
|
|
minos: 851968
|
|
sdk: 983040
|
|
ntools: 1
|
|
Tools:
|
|
- tool: 3
|
|
version: 68157696
|