[Mlir-commits] [mlir] [mlir][nfc] Replace some `std::vector`s with `SmallVector` (PR #136703)

Jakub Kuderski llvmlistbot at llvm.org
Tue Apr 22 08:09:59 PDT 2025


================
@@ -1306,7 +1306,7 @@ int64_t DenseElementsAttr::getNumElements() const {
 
 /// Utility method to write a range of APInt values to a buffer.
 template <typename APRangeT>
-static void writeAPIntsToBuffer(size_t storageWidth, std::vector<char> &data,
+static void writeAPIntsToBuffer(size_t storageWidth, SmallVector<char> &data,
----------------
kuhar wrote:

Pass this as `SmallVectorImpl<char>` so that we don't hardcode the small size?

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


More information about the Mlir-commits mailing list