Skip to content

Matrix Intrinsic Implementation Requirements #387

@kmpeng

Description

@kmpeng
  • Implement the matrix api for the intrinsic in hlsl_alias_intrinsics.h/hlsl_intrinsics.h
  • If applicable, update sema checks for the intrinsic in SemaHLSL.cpp to accept matrices
  • Add matrix codegen tests to clang/test/CodeGenHLSL/builtins/<intrinsic>_mat.hlsl
  • Add matrix sema tests to clang/test/SemaHLSL/BuiltIns/<intrinsic>_mat-errors.hlsl
  • If the intrinsic maps to a DXIL opcode, add matrix backend tests to llvm/test/CodeGen/DirectX/<intrinsic>_mat.ll
  • If the intrinsic maps to a SPIR-V intrinsic, add matrix backend tests to llvm/test/CodeGen/SPIRV/hlsl-intrinsics/<intrinsic>_mat.ll

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions