[all-commits] [llvm/llvm-project] 11cb3c: [IR][PatternMatch] Make `m_Checked{Int, Fp}` accept...

goldsteinn via All-commits all-commits at lists.llvm.org
Fri May 10 17:57:10 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11cb3c300d8e8f05dddbc1a4f8ab1c86e864544a
      https://github.com/llvm/llvm-project/commit/11cb3c300d8e8f05dddbc1a4f8ab1c86e864544a
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2024-05-10 (Fri, 10 May 2024)

  Changed paths:
    M llvm/include/llvm/IR/PatternMatch.h
    M llvm/unittests/IR/PatternMatch.cpp

  Log Message:
  -----------
  [IR][PatternMatch] Make `m_Checked{Int,Fp}` accept `Constant *` output instead of `APInt *`

The `APInt *` version is pretty useless as any case one needs an
`APInt *` out, they could just replace whatever they have the
`m_Checked...` lambda with direct checks on the `APInt`.

Leaving other helpers such as `m_Negative`, `m_Power2`,
etc... unchanged as the `APInt` out version is used mostly for
convenience and rarely change functionality when converted output a
`Constant *`.

Closes #91377



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list