Skip to content

[x86 / Refactor] CPU flags relating to optimization hints have been moved to a new set

Summary

This merge request separates out the new CPU optimization hint flags, like CPUX86_HAS_FAST_XCHG and moved them to a new TCPUOptimizeFlags enumeration and cpu_optimization_hints array.

System

  • Processor architecture: i8086, i386, x86_64

Additional notes

  • All the relevant flags have been prefixed with CPUX86_HINT_ and has HAS dropped, so it's named CPUX86_HINT_FAST_XCHG, for example.
  • Because the speeds vary so much between the instructions over different processors, there are 8 flags relating to BTx instructions, for the different combinations of operand types (reg/mem for the source and imm/reg for the index).
  • Platforms outside of i8086, i386 and x86_64 don't yet have cpu_optimization_flags variable or a TCPUOptimizeFlags type defined.
Edited by J. Gareth "Kit" Moreton

Merge request reports