[HLSL][SPIR-V] ByVal function attribute is used in Shader env
Open
HLSL
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
spirv-val failure in CodeGen/SPIRV/llvm-intrinsics/lifetime.ll test spirv-val observed in pre-commit of https://github.com/llvm/llvm-project/pull/182772 , which fixed alignment decoration placement for Shader SPIR-V and enabled spirv-val on the test
```
# executed command: /__w/llvm-project/llvm-project/build/bin/spirv-val
# .---command stderr------------
# | error: line 18: Operand 2 of Decorate requires one of these capabilities: Kernel
# | OpDecorate %_arg_UserRange FuncParamAttr ByVal
```
Contributor guide
Assessment
This issue has not been assessed yet.