[all-commits] [llvm/llvm-project] 745409: [mlir][Value] Add getNumUses, hasNUses, and hasNUs...

Michael Maitland via All-commits all-commits at lists.llvm.org
Thu May 29 21:40:06 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7454098a9ed46ca5ad310bf3ec9347eb08eba007
      https://github.com/llvm/llvm-project/commit/7454098a9ed46ca5ad310bf3ec9347eb08eba007
  Author: Michael Maitland <michaeltmaitland at gmail.com>
  Date:   2025-05-30 (Fri, 30 May 2025)

  Changed paths:
    M mlir/docs/Tutorials/UnderstandingTheIRStructure.md
    M mlir/include/mlir/IR/Value.h
    M mlir/lib/Bytecode/Reader/BytecodeReader.cpp
    M mlir/lib/Dialect/SCF/IR/SCF.cpp
    M mlir/lib/IR/Value.cpp
    M mlir/test/lib/IR/TestPrintDefUse.cpp
    M mlir/unittests/IR/CMakeLists.txt
    A mlir/unittests/IR/ValueTest.cpp

  Log Message:
  -----------
  [mlir][Value] Add getNumUses, hasNUses, and hasNUsesOrMore to Value (#142084)

We already have hasOneUse. Like llvm::Value we provide helper methods to
query the number of uses of a Value. Add unittests for Value, because
that was missing.

---------

Co-authored-by: Michael Maitland <michaelmaitland at meta.com>



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