WL#13538: Add index hints based on new hint infrastructure

Affects: Server-8.0   —   Status: Complete

Index hints give the optimizer information about how to
choose indexes during query processing. Currently MySQL
supports USE/IGNORE/FORCE hints
(see https://dev.mysql.com/doc/refman/8.0/en/index-hints.html for more details).

The goal of this task is to replace these hints with
the hints based on new hint infrastructure
(see https://dev.mysql.com/doc/refman/8.0/en/optimizer-hints.html and
 WL#8017 for more details).

Related bugs:

BUG#89805 OPTIONALLY AVOID HARD ERRORS ON IGNORE INDEX OR FORCE INDEX USAGE.
BUG#87670 FORCE INDEX FOR GROUP BY IS NOT ALWAYS HONORED.