[llvm] [TableGen] HasOneUse builtin predicate on PatFrags (PR #91578)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 08:05:21 PDT 2024


arsenm wrote:

> > Should also switch the AMDGPU HasOneUseUnaryOp/HasOneUseBinOp/HasOneUseTernaryOp to use this
> 
> Right, thanks. I was thinking that these changes can go in a follow-up commit. The current change is a general one for [TableGen], but the next one can be [AMDGPU] with the actual usages of the `HasOneUse` predicate on these `HasOneUse{Unary,Bin,Ternary}Op`s.

Can do it either way. At least it's more clear it works with the real uses 

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


More information about the llvm-commits mailing list