``` - add codegen for llvm builtin to spirv/directx intrinsic in CGBuiltin.cpp - add lowering of spirv intrinsic to spirv backend in SPIRVInstructionSelector.cpp - add lowering of directx intrinsic to dxil op in DXIL.td - add test cases to illustrate passes - add test case for semantic analysis ``` Resolves #80176
11 lines
297 B
LLVM
11 lines
297 B
LLVM
; RUN: opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-compute %s | FileCheck %s
|
|
|
|
define void @main(i1 %expr) {
|
|
entry:
|
|
; CHECK: call i32 @dx.op.waveAllOp(i32 135, i1 %expr)
|
|
%0 = call i32 @llvm.dx.wave.active.countbits(i1 %expr)
|
|
ret void
|
|
}
|
|
|
|
declare i32 @llvm.dx.wave.active.countbits(i1)
|