Skip to content

[DirectX] Replace resource accesses in the device address space to typedbuffer load and store  #114848

@bogner

Description

@bogner

The frontend will generate accesses into resources via a llvm.dx.resource.access intrinsic that indexes into a resource handle and provides a pointer in the HLSL device address space. We need to have a pass that transforms these accesses post-inlining to dxil store and load intrinsics.

This issue tracks creating this pass and implementing handling for replacing these accesses with llvm.dx.typedbuffer.load and llvm.dx.typedbuffer.store. Handling for more complicated access patterns (ie llvm.dx.rawbuffer.*) will be tracked separately.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions