-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HLSL] Implement _split double_ scenario for asuint
in HLSL
#108901
Comments
- Adding hlsl `splitdouble` intrinsics - Adding DXIL lowering - Adding SPIRV lowering - Adding test Fixes: #108901 --------- Co-authored-by: Joao Saffran <jderezende@microsoft.com>
@llvm/issue-subscribers-clang-codegen Author: None (joaosaffran)
Implement `asuint` clang builtin,`splitdouble`,
This will implement the missing DXIL requirements for #70097 DXIL
SPIR-VThere is no support for asuint when targeting SPIR-V. asuintInterprets the bit pattern of x as an unsigned integer.
Test Case(s)Example 1//dxc asuint_test.hlsl -T lib_6_8 -enable-16bit-types -O0
export uint4 fn(double4 p1, uint4 p2, uint4 p3) {
asuint(p1, p2, p3);
return p3;
} Parameters
Return ValueThe input interpreted as an unsigned integer. Type Description
Minimum Shader ModelThis function is supported in the following shader models.
See also<dl> <dt> Intrinsic Functions (DirectX HLSL) |
@llvm/issue-subscribers-clang-frontend Author: None (joaosaffran)
Implement `asuint` clang builtin,`splitdouble`,
This will implement the missing DXIL requirements for #70097 DXIL
SPIR-VThere is no support for asuint when targeting SPIR-V. asuintInterprets the bit pattern of x as an unsigned integer.
Test Case(s)Example 1//dxc asuint_test.hlsl -T lib_6_8 -enable-16bit-types -O0
export uint4 fn(double4 p1, uint4 p2, uint4 p3) {
asuint(p1, p2, p3);
return p3;
} Parameters
Return ValueThe input interpreted as an unsigned integer. Type Description
Minimum Shader ModelThis function is supported in the following shader models.
See also<dl> <dt> Intrinsic Functions (DirectX HLSL) |
- Adding hlsl `splitdouble` intrinsics - Adding DXIL lowering - Adding SPIRV lowering - Adding test Fixes: llvm#108901 --------- Co-authored-by: Joao Saffran <jderezende@microsoft.com>
Implement
asuint
clang builtin,splitdouble
,asuint
clang builtin with hlsl_intrinsics.hasuin
t to CheckHLSLBuiltinFunctionCall in SemaChecking.cppasuin
t to EmitHLSLBuiltinExpr in CGBuiltin.cppbit_cast
to implement the SPIRV code genThis will implement the missing DXIL requirements for #70097
DXIL
SPIR-V
There is no support for asuint when targeting SPIR-V.
asuint
Interprets the bit pattern of x as an unsigned integer.
Test Case(s)
Example 1
Parameters
Return Value
The input interpreted as an unsigned integer.
Type Description
Minimum Shader Model
This function is supported in the following shader models.
See also
Intrinsic Functions (DirectX HLSL)
The text was updated successfully, but these errors were encountered: