[llvm-dev] TableGen question

Nicolai Hähnle via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 7 12:02:56 PDT 2020


On Wed, Oct 7, 2020 at 8:36 PM Neil Nelson via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> How many values are expected?

The number of fields per record varies. There are (few) records with
zero fields, but also many with dozens (maybe 100?) fields.

Cheers,
Nicolai


>
> Neil Nelson
>
> On 10/6/20 5:54 PM, Paul C. Anagnostopoulos via llvm-dev 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?
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



-- 
Lerne, wie die Welt wirklich ist,
aber vergiss niemals, wie sie sein sollte.


More information about the llvm-dev mailing list