[all-commits] [llvm/llvm-project] f3ece2: [ADT] Allow specifying the size of resulting `Smal...

Laszlo Kindrat via All-commits all-commits at lists.llvm.org
Thu May 25 08:35:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3ece29b4658d60a1e7656bb9e67853376d094b7
      https://github.com/llvm/llvm-project/commit/f3ece29b4658d60a1e7656bb9e67853376d094b7
  Author: Laszlo Kindrat <laszlo at modular.com>
  Date:   2023-05-25 (Thu, 25 May 2023)

  Changed paths:
    M llvm/include/llvm/ADT/SmallVectorExtras.h
    M mlir/include/mlir/IR/AffineMap.h
    M mlir/lib/IR/Builders.cpp
    M mlir/lib/IR/TypeUtilities.cpp

  Log Message:
  -----------
  [ADT] Allow specifying the size of resulting `SmallVector` in `map_to_vector`

This patch adds an overload for the `map_to_vector` helper template, exposing a parameter to control the size of the resulting `SmallVector`. A few call sites in mlir are updated to illustrate and test the change.

Differential Revision: https://reviews.llvm.org/D150601




More information about the All-commits mailing list