| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
GHC.Platform.Reg.Class
Documentation
The class of a register. Used in the register allocator. We treat all registers in a class as being interchangeable.
Instances
| Uniquable RegClass Source # | |
| Outputable RegClass Source # | This instance is just used for the graph colouring register allocator.
Prefer using either |
| Show RegClass Source # | |
| Eq RegClass Source # | |
| Ord RegClass Source # | |
Defined in GHC.Platform.Reg.Class | |
The register architecture of a given machine.
Constructors
| Unified | Floating-point and vector registers are unified (e.g. X86, AArch64). |
| Separate | Floating-point and vector registers are separate (e.g. RISC-V). |
| NoVectors | No vector registers. |
registerArch :: Arch -> RegArch Source #
What is the register architecture of the given architecture?