File: swift-async-no-fastisel.ll

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (40 lines) | stat: -rw-r--r-- 1,687 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
; RUN: llc %s --fast-isel=true --stop-after=finalize-isel -o %t \
; RUN:   -experimental-debug-variable-locations=false --global-isel=false
; RUN:   FileCheck %s < %t
; RUN:   FileCheck %s --check-prefix=INTRINSICS < %t


source_filename = "ir_x86.ll"
target triple = "x86_64-*"

define swifttailcc void @foo(ptr swiftasync %0) !dbg !43 {
  call void asm sideeffect "", "r"(ptr %0), !dbg !62
  ; FastISEL doesn't preserve %0 here. Check that this function is lowered with SelectionDAG.
  call void @llvm.dbg.value(metadata ptr %0, metadata !54, metadata !DIExpression(DW_OP_plus_uconst, 4242)), !dbg !62
  ret void, !dbg !62
}

; CHECK-NOT: DBG_VALUE $noreg
; INTRINSICS: ![[VAR:[0-9]*]] = !DILocalVariable(name: "msg",
; INTRINSICS: DBG_VALUE {{.*}}, ![[VAR]], !DIExpression(DW_OP_plus_uconst, 4242)


declare void @llvm.dbg.value(metadata, metadata, metadata)

!llvm.module.flags = !{!6, !7, !8, !9, !10}
!llvm.dbg.cu = !{!16}

!6 = !{i32 7, !"Dwarf Version", i32 4}
!7 = !{i32 2, !"Debug Info Version", i32 3}
!8 = !{i32 1, !"wchar_size", i32 4}
!9 = !{i32 8, !"PIC Level", i32 2}
!10 = !{i32 7, !"uwtable", i32 2}
!16 = distinct !DICompileUnit(language: DW_LANG_Swift, file: !17, producer: "blah", emissionKind: FullDebug)
!17 = !DIFile(filename: "blah", directory: "blah")
!43 = distinct !DISubprogram(name: "blah", linkageName: "blah", file: !17, line: 87, type: !44, scopeLine: 87, unit: !16, retainedNodes: !48)
!44 = !DISubroutineType(types: !45)
!45 = !{!46}
!46 = !DICompositeType(tag: DW_TAG_structure_type, name: "blah")
!48 = !{!54}
!54 = !DILocalVariable(name: "msg", arg: 1, scope: !43, file: !17, line: 87, type: !46)
!62 = !DILocation(line: 87, column: 30, scope: !43)