llvm-project
d5442b8c - [AMDGPU] Programmatically port old `.def` clang builtins to `.td` (#175873)

Commit
95 days ago
[AMDGPU] Programmatically port old `.def` clang builtins to `.td` (#175873) Summary: This PR ports the old `.def` builtins to the new Tablegen interface. This required a few changes in the handler, namely there is a real meaning to `AS(0)` right now, not just in SPIR-V but when the type parser expects it. The conversion here should be 1-to-1. Some more work could be done to reduce the amount of repetition by grouping all the instructions together, I'll leave that up to whether or not anyone cares. This was done with a hastily made Python script that likely will not work for the other files, but will successfully update this PR. Putting here in case someone wants to use it. https://gist.github.com/jhuber6/d524c65c0da3adae5afd2ad160589537
Author
Parents
Loading