[all-commits] [llvm/llvm-project] c66f40: [DirectX] Implement DXILResourceBindingAnalysis (#...

Helena Kotas via All-commits all-commits at lists.llvm.org
Fri May 9 10:42:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c66f401e1eb6157cd0114634b27004cd78cfe5aa
      https://github.com/llvm/llvm-project/commit/c66f401e1eb6157cd0114634b27004cd78cfe5aa
  Author: Helena Kotas <hekotas at microsoft.com>
  Date:   2025-05-09 (Fri, 09 May 2025)

  Changed paths:
    M llvm/include/llvm/Analysis/DXILResource.h
    M llvm/include/llvm/IR/IntrinsicsDirectX.td
    M llvm/include/llvm/InitializePasses.h
    M llvm/lib/Analysis/Analysis.cpp
    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:
  -----------
  [DirectX] Implement DXILResourceBindingAnalysis (#137258)

`DXILResourceBindingAnalysis` analyses 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
(coming soon) 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