File: scoreboard.ll

package info (click to toggle)
intel-graphics-compiler2 2.18.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 107,080 kB
  • sloc: cpp: 807,289; lisp: 287,855; ansic: 16,414; python: 4,004; yacc: 2,588; lex: 1,666; pascal: 313; sh: 186; makefile: 35
file content (34 lines) | stat: -rw-r--r-- 1,190 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
;=========================== begin_copyright_notice ============================
;
; Copyright (C) 2022-2025 Intel Corporation
;
; SPDX-License-Identifier: MIT
;
;============================ end_copyright_notice =============================

; RUN: %not_legacy %opt_legacy_typed %use_old_pass_manager% -CMImpParam -march=genx64 -mcpu=XeHPG -S \
; RUN:    < %s 2>&1 | FileCheck --check-prefix=OCL-CHECK %s

; RUN: %not_new_pm %opt_new_pm_typed -passes=CMImpParam -march=genx64 -mcpu=XeHPG -S \
; RUN:    < %s 2>&1 | FileCheck --check-prefix=OCL-CHECK %s

target datalayout = "e-p:64:64-i64:64-n8:16:32:64"
target triple = "spir64-unknown-unknown"

; OCL-CHECK: scoreboarding intrinsics are not supported

declare i32 @llvm.genx.get.scoreboard.bti()
declare i32 @llvm.genx.get.scoreboard.depcnt()
declare <16 x i8> @llvm.genx.get.scoreboard.deltas()

define dllexport spir_kernel void @kernel() {
  %k.bti = call i32 @llvm.genx.get.scoreboard.bti()
  %k.depcnt = call i32 @llvm.genx.get.scoreboard.depcnt()
  %k.deltas = call <16 x i8> @llvm.genx.get.scoreboard.deltas()
  ret void
}

!genx.kernels = !{!1}

!0 = !{}
!1 = !{void ()* @kernel, !"kernel", !0, i32 0, !0, !0, !0, i32 0, i32 0}