Commit Graph

3 Commits

Author SHA1 Message Date
Michael Gottesman
058345740d [sil] Add a try_emplace/simple failable get method to BasicBlockData. 2022-09-09 13:38:18 -07:00
Erik Eckstein
6713c0feca SIL: a few small changes in BasicBlockData
* Instead of passing the vector type as template argument, use a SmallVector and just pass the inline size
* Increase the inline size to 32. Found by experiment, this fits 90% of all functions.
* add an API for getting data for newly created blocks.
2021-01-22 12:53:26 +01:00
Erik Eckstein
273bd35061 SIL: add a utility which let's manage per-block data efficiently.
It can be used by transforms to store temporary data per basic block.
It is very efficient: only a single memory allocation is needed and no maps are used to lookup data.
2021-01-20 16:09:01 +01:00