[clang] [llvm] [HLSL] Add handle initialization for simple resource declarations (PR #111207)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 17 10:32:39 PDT 2024
================
@@ -489,3 +494,92 @@ void CGHLSLRuntime::generateGlobalCtorDtorCalls() {
GV->eraseFromParent();
}
}
+
+// Returns handle type from a resource, if the type is a resource
+static const HLSLAttributedResourceType *
+findHandleTypeOnResource(const clang::Type *Ty) {
+ return HLSLAttributedResourceType::findHandleTypeOnResource(Ty);
+}
----------------
bogner wrote:
Let's just call the static member directly where it's used.
https://github.com/llvm/llvm-project/pull/111207
More information about the cfe-commits
mailing list