Skip to content

Enable creation of a LinAlg Matrix (type, intrinsic, dxil op) #7846

@V-FEXrt

Description

@V-FEXrt

This issue is the very first of the set of issues to support the Linear Algebra spec. Because of this it has to solve the chicken-or-the-egg problem.

We need the new dx.types.MatrixRef type to implement any new intrinsic, but to add the dx.types.MatrixRef type we need an intrinsic to actually observe it. Because of this the following tasks must be completed as an atomic unit.

  • Introduce and test the dx.types.MatrixRef type
  • Introduce, lower, and test the __builtin_la_CreateMatrix() HLSL intrinsic
  • Introduce, lower, and test the dx.op.createMatrix DXIL Op

Testing for the above should over at least the following

  • Clang codegen for the intrinsic
  • DXIL lowering
  • Myriad of tests to ensure correct usage/lowering/validation/error messages for the new HLSL type

#7097 is a good example PR of the type of work that needs to be done.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions