aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
diff options
context:
space:
mode:
authorHelena Kotas <hekotas@microsoft.com>2024-09-26 13:56:49 -0700
committerGitHub <noreply@github.com>2024-09-26 13:56:49 -0700
commit90b7fe42d8e6f8647ce9279d6d026c36ccfcbb8f (patch)
treeb534b421ed985b508d22a5ae76122b3ec767f362 /llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
parent0950078ba07116f52402c22b173ae113432d2b83 (diff)
downloadllvm-90b7fe42d8e6f8647ce9279d6d026c36ccfcbb8f.zip
llvm-90b7fe42d8e6f8647ce9279d6d026c36ccfcbb8f.tar.gz
llvm-90b7fe42d8e6f8647ce9279d6d026c36ccfcbb8f.tar.bz2
[HLSL] Remove `__builtin_hlsl_create_handle` (#109910)
The `__builtin_hlsl_create_handle` called from the constructor of resource buffer class was supposed to initialize the resource handle based on resource type and registry binding information. It is not possible to do though that because the registry binding information is not accessible from the constructor during codegen. Instead, the handle should be initialized to an empty or null handle with something like `__builtin_hlsl_create_null_handle`. This PR is removing `__builtin_hlsl_create_handle` first and the `__builtin_hlsl_create_null_handle` will be added to the constructor once the handle type changes to `__hlsl_resource_t` and HLSLAttributeResourceType is updated to be a canonical type, which will allow the initialization assignment. The actual handle initialization based on the registry binding will be implemented part 2/2 of llvm/llvm-project#105076 once the dependent tasks are completed. Part 1/2 of llvm/llvm-project#105076.
Diffstat (limited to 'llvm/lib/Target/DirectX/DirectXTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions