[libcxx-commits] [libcxx] [libcxx] Adjust inline assembly constraints for the AMDGPU target (PR #101747)

Joseph Huber via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 5 09:39:10 PDT 2024


jhuber6 wrote:

> > Okay, so I think the problematic cases for this are caused by the fact that the AMDGPU backend can't handle `char` as a valid register target https://godbolt.org/z/E9Esc5bf5. I wonder if there's a good way to handle that, it only causes two or so to fail.
> 
> Maybe by adding a specializations for 'char' something like https://godbolt.org/z/xGxYjaKKa for AMDGPU only with comments to explain the issue.

I just made it capture a pointer to the variable instead, I'm assuming since we're already taking a reference it won't change too much. Works now.

https://github.com/llvm/llvm-project/pull/101747


More information about the libcxx-commits mailing list