[all-commits] [llvm/llvm-project] 041f16: [ADT] Add SmallSetVectorImpl size-erased base clas...
Nick Desaulniers via All-commits
all-commits at lists.llvm.org
Thu Sep 17 15:55:06 PDT 2026
Branch: refs/heads/users/nickdesaulniers/regalloc_hints
Home: https://github.com/llvm/llvm-project
Commit: 041f16fdfd279f4fcc78d963acd77866ac6f8049
https://github.com/llvm/llvm-project/commit/041f16fdfd279f4fcc78d963acd77866ac6f8049
Author: Nick Desaulniers <ndesaulniers at google.com>
Date: 2026-09-17 (Thu, 17 Sep 2026)
Changed paths:
M llvm/include/llvm/ADT/SetVector.h
M llvm/unittests/ADT/SetVectorTest.cpp
Log Message:
-----------
[ADT] Add SmallSetVectorImpl size-erased base class and initializer_list ctor
Add llvm::SmallSetVectorImpl<T> as a size-erased base class for SetVector
and SmallSetVector, similar to llvm::SmallVectorImpl<T> for SmallVector.
This allows passing references to SmallSetVector<T, N> or SetVector<T>
without encoding the inline capacity N in function parameter types.
Also add a std::initializer_list<T> constructor to SetVector/SmallSetVector.
That way we can use pass references to the size-erased base class for
register allocator eviction hints.
Assisted-by: Gemini
Link: #219007
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