Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-readobj/COFF/codeview-inlining.test
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

66 lines
1.8 KiB
Plaintext

; The following two object files were generated using the following command:
; $ cl /d2Zi+ /Zc:inline /O2 /Z7 /c t.cpp
; The contents of t.cpp follow:
; static void bar() {
; __asm nop
; }
; static void baz() {
; __asm nop
; }
; static __forceinline void foo() {
; __asm nop
; #include "a.h"
; #include "b.h"
; __asm nop
; goto forwards;
;
; backwards:
; __asm nop
; return;
;
; forwards:
; __asm rep nop
; goto backwards;
; }
; int main() {
; bar();
; baz();
; foo();
; }
;
; Both a.h and b.h contain "__asm nop".
RUN: llvm-readobj -S --codeview --section-symbols %p/Inputs/codeview-inlining.obj.coff | FileCheck %s
; FIXME: If we were more clever, we could turn FileIDs into paths.
; CHECK: SubSectionType: InlineeLines (0xF6)
; CHECK-NEXT: SubSectionSize: 0x3C
; CHECK-NEXT: InlineeSourceLine {
; CHECK-NEXT: Inlinee: bar (0x1002)
; CHECK-NEXT: FileID: d:\src\llvm\build\t.cpp (0x30)
; CHECK-NEXT: SourceLineNum: 2
; CHECK-NEXT: ExtraFileCount: 0
; CHECK-NEXT: ExtraFiles [
; CHECK-NEXT: ]
; CHECK-NEXT: }
; CHECK-NEXT: InlineeSourceLine {
; CHECK-NEXT: Inlinee: baz (0x1003)
; CHECK-NEXT: FileID: d:\src\llvm\build\t.cpp (0x30)
; CHECK-NEXT: SourceLineNum: 5
; CHECK-NEXT: ExtraFileCount: 0
; CHECK-NEXT: ExtraFiles [
; CHECK-NEXT: ]
; CHECK-NEXT: }
; The 'foo' inline site has extra files due to includes.
; CHECK-NEXT: InlineeSourceLine {
; CHECK-NEXT: Inlinee: foo (0x1004)
; CHECK-NEXT: FileID: d:\src\llvm\build\a.h (0x0)
; CHECK-NEXT: SourceLineNum: 1
; CHECK-NEXT: ExtraFileCount: 2
; CHECK-NEXT: ExtraFiles [
; CHECK-NEXT: FileID: d:\src\llvm\build\b.h (0x18)
; CHECK-NEXT: FileID: d:\src\llvm\build\t.cpp (0x30)
; CHECK-NEXT: ]
; CHECK-NEXT: }