Issue |
91366
|
Summary |
Introduce llvm.dx.handle.fromBinding intrinsic and lowering
|
Labels |
new issue
|
Assignees |
|
Reporter |
bogner
|
When creating handles from binding information in llvm we'll represent it with a `llvm.dx.handle.fromBinding` intrinsic that creates a target type. There's more information in #90553 but generally this will look something like so:
```llvm
; RWBuffer<float4> Buf : register(u5, space3)
%buf = call target("dx.Buffer", <4 x float>, 1, 0)
@llvm.dx.handle.fromBinding.tdx.Buffer_v4f32_1_0(
i32 3, i32 5, i32 1, i32 0, i1 false)
```
This will need to be lowered to either `createHandle` or `createHandleFromBinding` + `annotateHandle` dxil operations depending on the shader model, as well as the dxil metadata for resource binding.
## Acceptance Criteria
- The llvm intrinsic and dxil operation are defined
- Emitting dxil will translate the llvm intrinsic to the appropriate dxil op(s) and metadata
- Pre-SM6.6 DXIL and post are both handled.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs