-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
HLSLHLSL Language SupportHLSL Language Supportbackend:DirectXbackend:SPIR-Vbot:HLSLmetaissueIssue to collect references to a group of similar or related issues.Issue to collect references to a group of similar or related issues.
Description
- Implement
IsHelperLaneclang builtin, - Link
IsHelperLaneclang builtin withhlsl_intrinsics.h - Add sema checks for
IsHelperLanetoCheckHLSLBuiltinFunctionCallinSemaChecking.cpp - Add codegen for
IsHelperLanetoEmitHLSLBuiltinExprinCGBuiltin.cpp - Add codegen tests to
clang/test/CodeGenHLSL/builtins/IsHelperLane.hlsl - Add sema tests to
clang/test/SemaHLSL/BuiltIns/IsHelperLane-errors.hlsl - Create the
int_dx_IsHelperLaneintrinsic inIntrinsicsDirectX.td - Create the
DXILOpMappingofint_dx_IsHelperLaneto221inDXIL.td - Create the
IsHelperLane.llandIsHelperLane_errors.lltests inllvm/test/CodeGen/DirectX/ - Create the
int_spv_IsHelperLaneintrinsic inIntrinsicsSPIRV.td - In SPIRVInstructionSelector.cpp create the
IsHelperLanelowering and map it toint_spv_IsHelperLaneinSPIRVInstructionSelector::selectIntrinsic. - Create SPIR-V backend test case in
llvm/test/CodeGen/SPIRV/hlsl-intrinsics/IsHelperLane.ll
DirectX
| DXIL Opcode | DXIL OpName | Shader Model | Shader Stages |
|---|---|---|---|
| 221 | IsHelperLane | 6.6 | () |
SPIR-V
OpIsHelperInvocationEXT:
Description:
Reserved.
Capability:
DemoteToHelperInvocationEXT
| Word Count | Opcode | Results | Operands |
|---|---|---|---|
3 |
5381 |
<id> |
Test Case(s)
Example 1
//dxc IsHelperLane_test.hlsl -T lib_6_8 -enable-16bit-types -O0
export bool fn() {
return IsHelperLane();
}HLSL:
Syntax
bool IsHelperLane();Type Description
| Name | Template Type | Component Type | Size |
|---|---|---|---|
| ret | scalar | bool | 1 |
Minimum Shader Model
This function is supported in the following shader models.
| Shader Model | Supported |
|---|---|
| Shader Model 6.6 and higher shader models | yes |
Shader Stages
See also
Metadata
Metadata
Assignees
Labels
HLSLHLSL Language SupportHLSL Language Supportbackend:DirectXbackend:SPIR-Vbot:HLSLmetaissueIssue to collect references to a group of similar or related issues.Issue to collect references to a group of similar or related issues.
Type
Projects
Status
No status