[llvm-dev] TableGen enhancements

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 21 06:46:32 PDT 2020


It will take me awhile to learn my way around the matcher table emitter, but it sounds like a big piece of fun!

At 10/21/2020 05:48 AM, Simon Pilgrim wrote:
>Thanks Paul - Its awesome to have someone looking at tblgen build performance!
>
>Something that I've looked at every so often is the poor choice of containers - e.g. passing a const std::vector& around when ArrayRef<> would be a lot cheaper (no expensive iterator bounds checks....).
>
>Another is using map/set everywhere - they are great when data is being parsed/collected, but once its sorted transfering to an array/vector could be a lot cheaper if really we spend more time sequentially iterating across the data many times.
>
>Simon.



More information about the llvm-dev mailing list