Issue 182989
Summary [HLSL] Codegen for accessing resource members of a struct
Labels HLSL
Assignees
Reporter hekota
    Depends on ..

During Clang CodeGen, any _expression_ that accesses a resource or resource array member of a global struct instance must be translated to an access of the corresponding implicit global variable.

When CodeGen encounters a `MemberExpr` of a resource type, it should traverse the AST to locate the parent struct declaration, building the expected global variable name along the way. If the parent is a non-static global struct instance, CodeGen should search its `HLSLAssociatedResourceDeclAttr` attributes to locate the matching global variable for the resource, and then generate IR code to access it.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to