aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/DirectX/wave_is_first_lane.ll
blob: 6740d4075eee54bbc78bcff98c28a5aafc9204da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: opt -S  -dxil-op-lower  -mtriple=dxil-pc-shadermodel6.3-compute %s | FileCheck %s

define void @main() #0 {
entry:
; CHECK: call i1 @dx.op.waveIsFirstLane(i32 110)
  %0 = call i1 @llvm.dx.wave.is.first.lane()
  ret void
}

; CHECK-NOT: attributes {{.*}} memory(none)

declare i1 @llvm.dx.wave.is.first.lane() #1

attributes #0 = { convergent norecurse "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
attributes #1 = { convergent nocallback nofree nosync nounwind willreturn }