Skip to content

[DirectX] Create DX target builtins #132303

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

Closed
farzonl opened this issue Mar 20, 2025 · 3 comments · Fixed by #134439
Closed

[DirectX] Create DX target builtins #132303

farzonl opened this issue Mar 20, 2025 · 3 comments · Fixed by #134439
Assignees
Labels
clang:codegen IR generation bugs: mangling, exceptions, etc. clang:frontend Language frontend issues, e.g. anything involving "Sema"

Comments

@farzonl
Copy link
Member

farzonl commented Mar 20, 2025

the dot2add case #99221 and a few other has shown it makes more sense to split some of these DirectX only lowerings into its own clang builtins instead of abusing the hlsl lang builtins to achive this goal.

The goal of this ticket will be to add DirectX target builtins.

@farzonl
Copy link
Member Author

farzonl commented Mar 25, 2025

code is complete I need a builtin/intrinsic candidate to land this main...farzonl:llvm-project:directX-target-builtin

@damyanp damyanp moved this from Planning to Active in HLSL Support Mar 26, 2025
farzonl added a commit that referenced this issue Apr 7, 2025
- fixes #132303
- Moves dot2add from a language builtin to a target builtin.
-  Sets the scaffolding for Sema checks for DX builtins
-  Setup DirectX backend as able to have target builtins
- Adds a DX TargetBuiltins emitter in
`clang/lib/CodeGen/TargetBuiltins/DirectX.cpp`
@github-project-automation github-project-automation bot moved this from Active to Closed in HLSL Support Apr 7, 2025
@EugeneZelenko EugeneZelenko added clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:codegen IR generation bugs: mangling, exceptions, etc. and removed backend:DirectX labels Apr 7, 2025
@llvmbot
Copy link
Member

llvmbot commented Apr 7, 2025

@llvm/issue-subscribers-clang-codegen

Author: Farzon Lotfi (farzonl)

the `dot2add` case #99221 and a few other has shown it makes more sense to split some of these DirectX only lowerings into its own clang builtins instead of abusing the hlsl lang builtins to achive this goal.

The goal of this ticket will be to add DirectX target builtins.

@llvmbot
Copy link
Member

llvmbot commented Apr 7, 2025

@llvm/issue-subscribers-clang-frontend

Author: Farzon Lotfi (farzonl)

the `dot2add` case #99221 and a few other has shown it makes more sense to split some of these DirectX only lowerings into its own clang builtins instead of abusing the hlsl lang builtins to achive this goal.

The goal of this ticket will be to add DirectX target builtins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:codegen IR generation bugs: mangling, exceptions, etc. clang:frontend Language frontend issues, e.g. anything involving "Sema"
Projects
Status: Closed
Development

Successfully merging a pull request may close this issue.

3 participants