[llvm-dev] TableGen question

Chris Lattner via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 7 10:29:53 PDT 2020



> On Oct 6, 2020, at 4:54 PM, Paul C. Anagnostopoulos via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> A question for all you TableGen aficionados:
> 
> Does anyone know why the collection of RecordVal field values stored in a Record are represented by a SmallVector rather than some sort of map? This means that every time a record field is looked up by name, a linear search is performed.
> 
> Is it a question of RAM usage?

I’m not sure, it could just be a historical issue.  Feel free to investigate changing it Paul!

-Chris


More information about the llvm-dev mailing list