Metal IR reference

Hello!

I'm developing a GPU (shader) language, where I aim to target multiple backends with a common frontend. I wanted to avoid having to round trip through Metal, and go straight to IR just like I have with SPIRV, in order to have a fast and efficient compilation process.

I've been looking for a reference page where I can read about Metals IR, and as far as I'm aware, it exists, but I can't seem to find it anywhere.

Furthermore, if such a reference is available, is there also a toolkit where I can run validation on the output IR, and perhaps even run optimizations, much like spv-tools for SPIRV?

Any help would be appreciated!

Thanks, Gustav

Answered by DTS Engineer in 851416022

You can request a specification for Metal IR by sending us an enhancement request.

Hello,

We're not aware of a reference page or specification for Metal IR.

The closest thing is Get started with Metal shader converter which discusses IR conversion and provides a library as well as a command-line tool.

You can request a specification for Metal IR by sending us an enhancement request.

Metal IR reference
 
 
Q