llvm-capstone/mlir/lib/Reducer
Kazu Hirata f9306f6de3
[ADT] Rename llvm::erase_value to llvm::erase (NFC) (#70156)
C++20 comes with std::erase to erase a value from std::vector.  This
patch renames llvm::erase_value to llvm::erase for consistency with
C++20.

We could make llvm::erase more similar to std::erase by having it
return the number of elements removed, but I'm not doing that for now
because nobody seems to care about that in our code base.

Since there are only 50 occurrences of erase_value in our code base,
this patch replaces all of them with llvm::erase and deprecates
llvm::erase_value.
2023-10-24 23:03:13 -07:00
..
CMakeLists.txt
OptReductionPass.cpp
ReductionNode.cpp [ADT] Rename llvm::erase_value to llvm::erase (NFC) (#70156) 2023-10-24 23:03:13 -07:00
ReductionTreePass.cpp
Tester.cpp