[flang-commits] [clang] [compiler-rt] [flang] [llvm] [mlir] [DebugMetadata][DwarfDebug][CodeView] Support function-local static variables in lexical block scopes (6/7) (PR #187927)
Kristina Bessonova via flang-commits
flang-commits at lists.llvm.org
Thu Jul 2 07:36:59 PDT 2026
================
@@ -1553,6 +1553,28 @@ class MDTuple : public MDNode {
/// Shrink the operands by 1.
void pop_back() { resize(getNumOperands() - 1); }
+ /// Filter out tuple elements that satisfy predicate.
+ /// Return this if no elements should be filtered out (without re-uniquing).
+ template <typename T> MDTuple *filter(T &&RemovePred) {
----------------
chbessonova wrote:
The predicate usually carries what elements to retain, see https://llvm.org/doxygen/classllvm_1_1filter__iterator__base.html
The logic of the function can be simplified with filtering iterator or filtering range use.
https://github.com/llvm/llvm-project/pull/187927
More information about the flang-commits
mailing list