'hlo_api_magics' pass replaces known Java API method calls with predefined algorithms written with HIR.
The optimization replaces calls to known API or VM-kernel methods with an optimized set of HIR instructions.
If rewriting of a method requires low-level details about active platform instruction sets use LIR-based api_magic pass
Example of Java API methods that can be replaced with HIR templates:
java/lang/String.compareTo java/lang/String.indexOf java/lang/System.arraycopy ...