[all-commits] [llvm/llvm-project] ad6c23: [Support] Allow `llvm::interleaved` with custom os...

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Fri Apr 18 09:37:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad6c23a7b5ecd5582566a6e51c1aa8105fb3f109
      https://github.com/llvm/llvm-project/commit/ad6c23a7b5ecd5582566a6e51c1aa8105fb3f109
  Author: Jakub Kuderski <jakub at nod-labs.com>
  Date:   2025-04-18 (Fri, 18 Apr 2025)

  Changed paths:
    M llvm/include/llvm/Support/InterleavedRange.h
    M llvm/unittests/Support/InterleavedRangeTest.cpp

  Log Message:
  -----------
  [Support] Allow `llvm::interleaved` with custom ostream types (#136318)

This makes `llvm::interleaved` useable with ostream types that define
custom stream operators that print in a different format from
`raw_ostream`. For example, MLIR's OpAsmPrinter prints values as
operands:
https://github.com/llvm/llvm-project/blob/6c5f50f18694a4d91d7ce53a14188c54ee7c6f3b/mlir/include/mlir/IR/OpImplementation.h#L534-L552



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