Expose pop count primitives to cmm
I can't actually invoke the various MO_PopCnt width prim ops from the literal Cmm syntax.
Would it be possible to expose them via machOps in CmmParse.y as popcnt8, popcnt16, etc.?
This would enable me to generate much more efficient code.
I started hacking up a mostly Cmm-side implementation of a HashMap. This lets me directly index into fields in data constructors and the like, eliding the indirection of the array machinery and allowing a much more direct implementation. Other than this, until this point it has been going remarkably smoothly.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.10.2 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | ekmett, simonmar |
| Operating system | |
| Architecture |