-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce string map class and switch to it (#4774)
* Add string map that serves as an improved version of ordered_map<cstring, ...>: - Underlying map is abseil's unordered map - Supports heterogenous lookups with std::string_view keys - Several ordered_map<cstring, ...> bugs are fixed Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Make use of string_map in IndexedVector Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Switch to string_map for JSonObject. Some small cleanup while there Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Allow heterogenous lookup for json values. Simplifies code a bit Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Add convenient helper for `::get + cast`. Simplify code a bit Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Allow heterogenous lookup for JsonObject. Simplify code around. Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Throw in few std::string_view overloads Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * No need for std::map in validateParsedProgram Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Use unordered container in typeUnification Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Switch to proper string maps in type checker Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Switch to better map in checkNamedArgs Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Move ParameterSubstitution to better maps Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Switch to better maps for various IR methods Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Address review comments Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> * Use `Util::Hash` for "internal maps". Some cleanup while there. Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info> --------- Signed-off-by: Anton Korobeynikov <anton@korobeynikov.info>
- Loading branch information
Showing
53 changed files
with
1,511 additions
and
876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.