File: RemoveNonPositionOutput.ll

package info (click to toggle)
intel-graphics-compiler 1.0.12504.6-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 83,912 kB
  • sloc: cpp: 910,147; lisp: 202,655; ansic: 15,197; python: 4,025; yacc: 2,241; lex: 1,570; pascal: 244; sh: 104; makefile: 25
file content (65 lines) | stat: -rw-r--r-- 2,953 bytes parent folder | download
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
;=========================== begin_copyright_notice ============================
;
; Copyright (C) 2022 Intel Corporation
;
; SPDX-License-Identifier: MIT
;
;============================ end_copyright_notice =============================
;
; RUN: igc_opt --igc-remove-nonposition-output -S < %s | FileCheck %s
; ------------------------------------------------
; RemoveNonPositionOutput
; ------------------------------------------------
; This test checks that RemoveNonPositionOutput pass follows
; 'How to Update Debug Info' llvm guideline.
;
; Debug MD for this test was created with debugify pass.
; ------------------------------------------------

; CHECK: @test_remove{{.*}} !dbg [[SCOPE:![0-9]*]]
; CHECK: call void{{.*}} !dbg [[CALL1_LOC:![0-9]*]]
; CHECK: call void{{.*}} !dbg [[CALL2_LOC:![0-9]*]]

define void @test_remove(i32 %src) !dbg !16 {
entry:
  call void @llvm.genx.GenISA.OUTPUT.f32(float 1.500000e+00, float 2.500000e+00, float 3.500000e+00, float 4.500000e+00, i32 1, i32 1), !dbg !18
  call void @llvm.genx.GenISA.OUTPUT.f32(float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00, i32 0, i32 1), !dbg !19
  call void @llvm.genx.GenISA.OUTPUT.f32(float 1.250000e+00, float 2.250000e+00, float 3.250000e+00, float 4.250000e+00, i32 8, i32 1), !dbg !20
  ret void, !dbg !21
}

; CHECK-DAG: [[FILE:![0-9]*]] = !DIFile(filename: "RemoveNonPositionOutput.ll", directory: "/")
; CHECK-DAG: [[SCOPE]] = distinct !DISubprogram(name: "test_remove", linkageName: "test_remove", scope: null, file: [[FILE]], line: 1
; CHECK-DAG: [[CALL1_LOC]] = !DILocation(line: 1, column: 1, scope: [[SCOPE]])
; CHECK-DAG: [[CALL2_LOC]] = !DILocation(line: 3, column: 1, scope: [[SCOPE]])

declare void @llvm.genx.GenISA.OUTPUT.f32(float, float, float, float, i32, i32)

!igc.functions = !{!0}
!IGCMetadata = !{!4}
!llvm.dbg.cu = !{!10}
!llvm.debugify = !{!13, !14}
!llvm.module.flags = !{!15}

!0 = !{void (i32)* @test_remove, !1}
!1 = !{!2, !3}
!2 = !{!"function_type", i32 0}
!3 = !{!"implicit_arg_desc"}
!4 = !{!"ModuleMD", !5}
!5 = !{!"FuncMD", !6, !7}
!6 = distinct !{!"FuncMDMap[0]", void (i32)* @test_remove}
!7 = !{!"FuncMDValue[0]", !8, !9}
!8 = !{!"funcArgs"}
!9 = !{!"functionType", !"KernelFunction"}
!10 = distinct !DICompileUnit(language: DW_LANG_C, file: !11, producer: "debugify", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !12)
!11 = !DIFile(filename: "RemoveNonPositionOutput.ll", directory: "/")
!12 = !{}
!13 = !{i32 4}
!14 = !{i32 0}
!15 = !{i32 2, !"Debug Info Version", i32 3}
!16 = distinct !DISubprogram(name: "test_remove", linkageName: "test_remove", scope: null, file: !11, line: 1, type: !17, scopeLine: 1, unit: !10, retainedNodes: !12)
!17 = !DISubroutineType(types: !12)
!18 = !DILocation(line: 1, column: 1, scope: !16)
!19 = !DILocation(line: 2, column: 1, scope: !16)
!20 = !DILocation(line: 3, column: 1, scope: !16)
!21 = !DILocation(line: 4, column: 1, scope: !16)