- add additional lowering for directx backend in CGBuiltin.cpp
- add directx intrinsic to IntrinsicsDirectX.td
- add semantic check of arguments in SemaHLSL.cpp
- add mapping to DXIL op in DXIL.td
- add testing of semantics in WaveGetLaneIndex-errors.hlsl
- add testing of dxil lowering in WaveGetLaneIndex.ll
Resolves #70105
11 lines
270 B
LLVM
11 lines
270 B
LLVM
; RUN: opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-compute %s | FileCheck %s
|
|
|
|
define void @main() {
|
|
entry:
|
|
; CHECK: call i32 @dx.op.waveGetLaneIndex(i32 111)
|
|
%0 = call i32 @llvm.dx.wave.getlaneindex()
|
|
ret void
|
|
}
|
|
|
|
declare i32 @llvm.dx.wave.getlaneindex()
|