7 Commits

Author SHA1 Message Date
Kazu Hirata
1cc07a0865
[mlir] Use *Set::insert_range (NFC) (#133043)
We can use *Set::insert_range to collapse:

  for (auto Elem : Range)
    Set.insert(E);

down to:

  Set.insert_range(Range);

In some cases, we can further fold that into the set declaration.
2025-03-26 07:47:02 -07:00
lorenzo chelini
dc74d2f831
[MLIR][NFC] Retire let constructor for Shape and MLProgram (#128869)
`let constructor` is legacy (do not use in tree!) since the table gen
backend emits most of the glue logic to build a pass. This PR retires
the td method for Shape and MLProgram
2025-02-27 08:25:03 +01:00
Kazu Hirata
0a20ab908c
[mlir] Avoid repeated hash lookups (NFC) (#112472) 2024-10-16 06:40:48 -07:00
Kazu Hirata
71a39eca1e
[MLProgram] Avoid repeated hash lookups (NFC) (#108928) 2024-09-17 00:19:02 -07:00
Mehdi Amini
4e71335790 Apply clang-tidy fixes for readability-identifier-naming in PipelineGlobalOps.cpp (NFC) 2024-01-25 11:33:05 -08:00
Mehdi Amini
9cebb28576 Apply clang-tidy fixes for llvm-qualified-auto in PipelineGlobalOps.cpp (NFC) 2024-01-25 11:33:05 -08:00
Rob Suderman
cbd475040f [mlir][mlprogram] Add mlprogram-pipeline-globals optimization pass
Added pass optimizes MLProgram global operations by reducing to only
the minimal load/store operations for global tensors. This avoids
unnecessary global operations throughout a program and potentially
improves operation gusion.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D159228
2023-09-18 17:11:29 -07:00