Skip to content

Commit 3451693

Browse files
[Orc][examples] Update and reduce sample input
1 parent 3462b5d commit 3451693

File tree

3 files changed

+20
-55
lines changed

3 files changed

+20
-55
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
define i32 @sub1(i32 %0) {
2+
%2 = add i32 %0, -1
3+
ret i32 %2
4+
}
5+
6+
define i32 @main(i32 %0) {
7+
%2 = call i32 @sub1(i32 %0)
8+
ret i32 %2
9+
}
10+
11+
!llvm.module.flags = !{!0}
12+
!llvm.dbg.cu = !{!1}
13+
14+
!0 = !{i32 2, !"Debug Info Version", i32 3}
15+
!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang 18.0.0git", emissionKind: FullDebug)
16+
!2 = !DIFile(filename: "argc_sub1.c", directory: ".")

llvm/test/Examples/OrcV2Examples/Inputs/argc_sub1_elf.ll

Lines changed: 0 additions & 51 deletions
This file was deleted.

llvm/test/Examples/OrcV2Examples/lljit-with-remote-debugging.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
# REQUIRES: default_triple
77
# UNSUPPORTED: target=powerpc64{{.*}}
88

9-
# RUN: LLJITWithRemoteDebugging %p/Inputs/argc_sub1_elf.ll 2>&1 | FileCheck --check-prefix=CHECK0 %s
9+
# RUN: LLJITWithRemoteDebugging %p/Inputs/argc_sub1.ll 2>&1 | FileCheck --check-prefix=CHECK0 %s
1010
# CHECK0: __jit_debug_descriptor.last_entry = [[BEFORE0:0x[0-9a-f]+]]
1111
# CHECK0-NOT: __jit_debug_descriptor.last_entry = [[BEFORE0]]
12-
# CHECK0: Parsing input IR code from: {{.*}}/Inputs/argc_sub1_elf.ll
12+
# CHECK0: Parsing input IR code from: {{.*}}/Inputs/argc_sub1.ll
1313
# CHECK0: Running: main()
1414
# CHECK0: Exit code: 0
1515

16-
# RUN: LLJITWithRemoteDebugging %p/Inputs/argc_sub1_elf.ll --args 2nd 3rd 4th 2>&1 | FileCheck --check-prefix=CHECK3 %s
16+
# RUN: LLJITWithRemoteDebugging %p/Inputs/argc_sub1.ll --args 2nd 3rd 4th 2>&1 | FileCheck --check-prefix=CHECK3 %s
1717
# CHECK3: __jit_debug_descriptor.last_entry = [[BEFORE3:0x[0-9a-f]+]]
1818
# CHECK3-NOT: __jit_debug_descriptor.last_entry = [[BEFORE3]]
19-
# CHECK3: Parsing input IR code from: {{.*}}/Inputs/argc_sub1_elf.ll
19+
# CHECK3: Parsing input IR code from: {{.*}}/Inputs/argc_sub1.ll
2020
# CHECK3: Running: main("2nd", "3rd", "4th")
2121
# CHECK3: Exit code: 3

0 commit comments

Comments
 (0)