Skip to content

[HLSL] Create HLSLConstantAccess pass to translate hlsl_constant loads #124630

Closed
@hekota

Description

@hekota

Create a new HLSLConstantAccess pass that will translate all load instructions in hlsl_constant address space to llvm.{dx|spv}.resource.load.cbuffer intrinsics calls. It will make use of the metadata generated in #113514 that maps the constants global variables to individual constant buffers and specified the constant buffer layout. The pass also needs to transform related getelementptr instructions to use the constant buffer layout offsets.

After the HLSLConstantAccess pass completes the constant buffer metadata is no longer needed and should be removed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions