Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXIR documentation #2389

Closed
Skepfyr opened this issue Jul 31, 2019 · 3 comments
Closed

DXIR documentation #2389

Skepfyr opened this issue Jul 31, 2019 · 3 comments

Comments

@Skepfyr
Copy link

Skepfyr commented Jul 31, 2019

Hi, I'm helping to write a compiler that takes in SPIR-V and produces something consumable by DirectX drivers, according to your diagram in docs/DXIL.rst a possible target is DXIR.
Is there any documentation of DXIR and the process that takes it to DXIL? I was unable to find any in this repo.

@tex3d
Copy link
Contributor

tex3d commented Aug 1, 2019

Unfortunately, documentation on the lowering process is mostly non-existent. I would recommend using the dndxc tool to see the initial IR from CodeGen, and the steps applied afterwards for some representative examples. Try to determine where in that process the SPIR-V might most closely map (perhaps close to CodeGen?). Then try to get the IR into that form so you can utilize the remaining passes for lowering to DXIL.

@tex3d
Copy link
Contributor

tex3d commented Aug 1, 2019

Oh, and DXIR isn't anything official, but just the first LLVM IR after CodeGen.

@Skepfyr
Copy link
Author

Skepfyr commented Aug 2, 2019

Thanks, I'll see where this gets us!

@Skepfyr Skepfyr closed this as completed Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants