[llvm] [DirectX] Add support for heap resources to `DXILResourceMap` (PR #216454)

Joshua Batista via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 14:46:07 PDT 2026


================
@@ -896,6 +908,28 @@ void DXILResourceMap::populateResourceInfos(Module &M,
 
       break;
     }
+    case Intrinsic::dx_resource_handlefromheap: {
+      auto *HandleTy = cast<TargetExtType>(F.getReturnType());
+      ResourceTypeInfo &RTI = DRTM[HandleTy];
+
+      for (User *U : F.users()) {
+        if (CallInst *CI = dyn_cast<CallInst>(U)) {
----------------
bob80905 wrote:

nit: recommend converting this to the != CallInst -> continue pattern.

https://github.com/llvm/llvm-project/pull/216454


More information about the llvm-commits mailing list