[all-commits] [llvm/llvm-project] d5685e: [HLSL] Implement DXILResourceBindingAnalysis

Helena Kotas via All-commits all-commits at lists.llvm.org
Thu Apr 24 15:13:03 PDT 2025


  Branch: refs/heads/users/hekota/pr137258-resource-binding-analysis
  Home:   https://github.com/llvm/llvm-project
  Commit: d5685ecc132979e88424d06e81fbefe8d1f6450d
      https://github.com/llvm/llvm-project/commit/d5685ecc132979e88424d06e81fbefe8d1f6450d
  Author: Helena Kotas <hekotas at microsoft.com>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M llvm/include/llvm/Analysis/DXILResource.h
    M llvm/include/llvm/IR/IntrinsicsDirectX.td
    M llvm/lib/Analysis/DXILResource.cpp
    M llvm/lib/Passes/PassRegistry.def
    M llvm/unittests/Target/DirectX/CMakeLists.txt
    A llvm/unittests/Target/DirectX/ResourceBindingAnalysisTests.cpp

  Log Message:
  -----------
  [HLSL] Implement DXILResourceBindingAnalysis

DXILResourceBindingAnalysis analyses all explicit resource bindings in the module
and puts together lists of used virtual register spaces and available virtual
register slot ranges for each binding type. It also stores additional information
found during the analysis such as whether the module uses implicit bindings or if
any of the bindings overlap.

This information will be used in DXILResourceImplicitBindings pass to
assign register slots to resources with implicit bindings, and in a
post-optimization validation pass that will raise diagnostic about
overlapping bindings.

Part 1/2 of #136786



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list