[all-commits] [llvm/llvm-project] 0e4aa6: [DirectX] Add getpointer docs to DXILResources.rst

Justin Bogner via All-commits all-commits at lists.llvm.org
Sat Dec 28 23:11:23 PST 2024


  Branch: refs/heads/users/bogner/121012
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e4aa647bc78ea857a967ff1240ab2821ec79a43
      https://github.com/llvm/llvm-project/commit/0e4aa647bc78ea857a967ff1240ab2821ec79a43
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2024-12-28 (Sat, 28 Dec 2024)

  Changed paths:
    M llvm/docs/DirectX/DXILResources.rst

  Log Message:
  -----------
  [DirectX] Add getpointer docs to DXILResources.rst


  Commit: bd71495da35f8694a2decbcad0a4f5fd281d590f
      https://github.com/llvm/llvm-project/commit/bd71495da35f8694a2decbcad0a4f5fd281d590f
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2024-12-28 (Sat, 28 Dec 2024)

  Changed paths:
    M llvm/docs/DirectX/DXILResources.rst
    M llvm/include/llvm/IR/IntrinsicsDirectX.td
    M llvm/lib/Target/DirectX/DXILOpLowering.cpp
    M llvm/lib/Target/DirectX/DXILResourceAccess.cpp
    M llvm/test/CodeGen/DirectX/BufferLoad.ll
    M llvm/test/CodeGen/DirectX/ResourceAccess/load_typedbuffer.ll
    M llvm/test/CodeGen/DirectX/ResourceAccess/store_typedbuffer.ll
    M llvm/test/CodeGen/DirectX/ResourceGlobalElimination.ll
    M llvm/test/CodeGen/DirectX/ShaderFlags/typed-uav-load-additional-formats.ll

  Log Message:
  -----------
  [DirectX] Remove the "checked" variants of `dx.resource.load`

We'd introduced separate versions of `llvm.dx.resource.load` with a
struct return to handle the CheckAccessFullyMapped case without making
the IR for the common case unnecessarily complicated. However, at this
point the common case is really `resource.getpointer`, so the ergonomics
of a simplified version of `load` don't actually gain us as much as the
cost of having multiple opcodes.

Drop the `dx.resource.loadchecked` functions and have `dx.resource.load`
consistently return `{element_type, i1}`.


  Commit: 18886b32730eb5a282cae7230802cc413ed22920
      https://github.com/llvm/llvm-project/commit/18886b32730eb5a282cae7230802cc413ed22920
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2024-12-28 (Sat, 28 Dec 2024)

  Changed paths:
    M llvm/docs/DirectX/DXILResources.rst
    M llvm/include/llvm/IR/IntrinsicsDirectX.td
    M llvm/lib/Target/DirectX/DXIL.td
    M llvm/lib/Target/DirectX/DXILOpBuilder.cpp
    M llvm/lib/Target/DirectX/DXILOpLowering.cpp
    A llvm/test/CodeGen/DirectX/BufferLoad-sm61.ll
    A llvm/test/CodeGen/DirectX/RawBufferLoad-error64.ll
    A llvm/test/CodeGen/DirectX/RawBufferLoad.ll
    M llvm/utils/TableGen/DXILEmitter.cpp

  Log Message:
  -----------
  [DirectX] Implement the resource.load.rawbuffer intrinsic

This introduces `@llvm.dx.resource.load.rawbuffer` and generalizes the
buffer load docs under DirectX/DXILResources.

This resolves the "load" parts of #106188


Compare: https://github.com/llvm/llvm-project/compare/0e4aa647bc78%5E...18886b32730e

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