[Lldb-commits] [clang] [lldb] [HLSL] Implement intangible AST type (PR #97362)
Helena Kotas via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 31 17:10:26 PDT 2024
hekota wrote:
> > I also don't see anywhere that actually successfully uses `__builtin_hlsl_resource_t`. Am I missing it, or should I not expect to see it?
>
> You are correct - the type cannot be directly declared in user code, so the tests only check for errors and that the type shows up properly in AST. It is possible to use this type internally in Clang or in implicit headers though, which are two ways how we could define `RWBuffer` and other builtin types that will internally use `__builtin_hlsl_resource_t` handle. That will come alive in (#84824).
The PR has been updated to allow instantiation of `__hlsl_resource_t` in struct fields.
https://github.com/llvm/llvm-project/pull/97362
More information about the lldb-commits
mailing list