Skip to content

[DirectX] Handle named structs in DXILOpLowering in a generic way #113192

Closed
@bogner

Description

@bogner

In #109331 we need to replace an anonymous struct with a named %dx.types.splitdouble struct during lowering to DXIL ops, and there are a few other operations that need to undergo a similar transformation. We should add something in the DXIL.td representation of DXIL ops to say that an anonymous struct return type must be replaced with an exactly equivalent named one in this way so that the generic handling of lowering to DXIL ops from an intrinsic can be used in these cases.

Note: This should only apply to cases where the transformation is trivial. Operations like BufferLoad and AnnotateHandle use named structs but need to do more complicated transformations than simply naming a struct to get the data in the right format, so they should be explicitly out of scope here.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions