llvm / llvm/llvm-project

[HLSL][SPIR-V] ByVal function attribute is used in Shader env

Open
#182,779 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.