[all-commits] [llvm/llvm-project] f3a299: [mlir] BytecodeWriter: invoke `reserveExtraSpace` ...

Nikhil Kalra via All-commits all-commits at lists.llvm.org
Wed Feb 12 14:17:52 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3a29906aa07d08bbde7ec02b93d02e25d805110
      https://github.com/llvm/llvm-project/commit/f3a29906aa07d08bbde7ec02b93d02e25d805110
  Author: Nikhil Kalra <nkalra at apple.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
    M mlir/unittests/Bytecode/BytecodeTest.cpp

  Log Message:
  -----------
  [mlir] BytecodeWriter: invoke `reserveExtraSpace` (#126953)

Update `BytecodeWriter` to invoke `reserveExtraSpace` on the stream
before writing to it. This will give clients implementing custom output
streams the opportunity to allocate an appropriately sized buffer for
the write.



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