Skip to content

Conversation

@joaosaffran
Copy link
Contributor

@joaosaffran joaosaffran commented Sep 19, 2024

  • Adding hlsl splitdouble intrinsics
  • Adding DXIL lowering
  • Adding SPIRV lowering
  • Adding test

Fixes: #108901

@joaosaffran joaosaffran force-pushed the intrinsics/splitdouble branch 2 times, most recently from cf135e0 to 8f21239 Compare September 19, 2024 20:50
@joaosaffran joaosaffran force-pushed the intrinsics/splitdouble branch 12 times, most recently from 6d40fb8 to 13a095c Compare September 22, 2024 18:32
@github-actions
Copy link

github-actions bot commented Sep 23, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@joaosaffran joaosaffran force-pushed the intrinsics/splitdouble branch 7 times, most recently from 0ca7458 to b7b2831 Compare September 26, 2024 00:26
@joaosaffran joaosaffran marked this pull request as ready for review September 26, 2024 00:33
@llvmbot llvmbot added clang Clang issues not falling into any other category backend:X86 clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:headers Headers provided by Clang, e.g. for intrinsics clang:codegen IR generation bugs: mangling, exceptions, etc. backend:DirectX labels Sep 26, 2024
@joaosaffran joaosaffran force-pushed the intrinsics/splitdouble branch 2 times, most recently from 4f1cbf3 to 37a5a8a Compare October 26, 2024 00:27
@joaosaffran joaosaffran force-pushed the intrinsics/splitdouble branch from 24d8571 to b3d58a8 Compare October 26, 2024 06:26
@joaosaffran joaosaffran force-pushed the intrinsics/splitdouble branch from b3d58a8 to 164c6af Compare October 26, 2024 21:14
Copy link
Contributor

@bogner bogner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few last minor nitpicks, but this LGTM!

Comment on lines +5463 to +5464
std::pair<LValue, LValue>
CodeGenFunction::EmitHLSLOutArgLValues(const HLSLOutArgExpr *E, QualType Ty) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is EmitHLSLOutArgLValues used any other than in CodeGenFunction::EmitHLSLOutArgExpr at this point? I think we can avoid splitting this method in two.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@llvm-beanz, any reason we couldn't merge those methods together?

@joaosaffran joaosaffran force-pushed the intrinsics/splitdouble branch from 164c6af to 104479d Compare October 28, 2024 16:32
@joaosaffran joaosaffran merged commit 481bce0 into llvm:main Oct 28, 2024
9 checks passed
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
- Adding hlsl `splitdouble` intrinsics
- Adding DXIL lowering
- Adding SPIRV lowering
- Adding test

Fixes: llvm#108901

---------

Co-authored-by: Joao Saffran <[email protected]>
@joaosaffran joaosaffran deleted the intrinsics/splitdouble branch February 26, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend:DirectX backend:X86 clang:codegen IR generation bugs: mangling, exceptions, etc. clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:headers Headers provided by Clang, e.g. for intrinsics clang Clang issues not falling into any other category HLSL HLSL Language Support llvm:ir

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[HLSL] Implement _split double_ scenario for asuint in HLSL

9 participants