llvm-project/mlir
Serge Guelton d2cc6c2d0c Use a sorted array instead of a map to store AttrBuilder string attributes
Using and std::map<SmallString, SmallString> for target dependent attributes is
inefficient: it makes its constructor slightly heavier, and involves extra
allocation for each new string attribute. Storing the attribute key/value as
strings implies extra allocation/copy step.

Use a sorted vector instead. Given the low number of attributes generally
involved, this is cheaper, as showcased by

https://llvm-compile-time-tracker.com/compare.php?from=5de322295f4ade692dc4f1823ae4450ad3c48af2&to=05bc480bf641a9e3b466619af43a2d123ee3f71d&stat=instructions

Differential Revision: https://reviews.llvm.org/D116599
2022-01-10 14:49:53 +01:00
..
cmake/modules Fix exported MLIR_TABLEGEN_EXE 2022-01-09 23:27:08 -08:00
docs [mlir][OpDSL] Separate `ReduceFn` and `ReduceFnUse`. 2022-01-07 12:51:06 +00:00
examples Fix clang-tidy issues in mlir/ (NFC) 2021-12-20 20:25:01 +00:00
include [mlir][linalg][bufferize][NFC] Update comments in BufferizableOpInterface 2022-01-10 22:34:26 +09:00
lib Use a sorted array instead of a map to store AttrBuilder string attributes 2022-01-10 14:49:53 +01:00
python [mlir][OpDSL] Separate `ReduceFn` and `ReduceFnUse`. 2022-01-07 12:51:06 +00:00
test [mlir][linalg][bufferize][NFC] Clean up bufferization entry point 2022-01-10 21:50:36 +09:00
tools [mlir][OpDSL] Rename `PrimFn` to `ArithFn`. 2022-01-07 12:38:03 +00:00
unittests [MLIR][NFC] Move PresburgerSet to Presburger/ directory 2022-01-08 15:39:40 +05:30
utils Update mlir GDB printers 2022-01-06 22:20:25 +01:00
.clang-format
.clang-tidy Enable readability-redundant-smartptr-get in MLIR local clang-tidy config 2022-01-08 20:07:11 +00:00
CMakeLists.txt [CMake] Factor out config prefix finding logic 2022-01-07 20:16:18 +00:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.