[llvm] [STLExtras] Backport std::to_underlying from C++23 (PR #70681)

Vlad Serebrennikov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 30 10:51:29 PDT 2023


Endilll wrote:

> Have you tried grepping the codebase and checking if there are some existing helpers that can be replaced by this?

I can't say I performed an exhaustive search, but apparently there is only one helper somewhere deep in MLIR: https://github.com/llvm/llvm-project/blob/0f8615f4dc568f4d7cbf73580eef3e78f64f3bd0/mlir/lib/Dialect/SparseTensor/IR/Detail/TemplateExtras.h#L41-L45

https://github.com/llvm/llvm-project/pull/70681


More information about the llvm-commits mailing list