Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Note though that all these "array attributes" are much less efficient than DenseAttribute I believe.
Comment Actions
It isn't as bad for BoolAttr because we already cache the true/false attribute values on context construction so lookup for those is "free". BoolArrayAttr is still worse in memory(because it needs to store 1 word per element as opposed to 1 bit) and execution time(needs to do more pointer chasing when checking elements. In general though ArrayAttr is much much worse than DenseElementsAttr when storing integer/float/complex/string data and should be discouraged.