pytorch/torch/csrc/jit/frontend
Scott Wolchok 47d34261e0 Rewrite the guts of torch::jit::Lexer to speed it up (#151850)
The trie-based approach was, apparently, not efficient. This incidentally fixes a bug where "not inp" and "is note" were lexed incorrectly; see test_lexer.cpp update.

Differential Revision: [D73129443](https://our.internmc.facebook.com/intern/diff/D73129443/)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/151850
Approved by: https://github.com/Skylion007
ghstack dependencies: #151801, #151802, #151803, #151804, #151805, #151806, #151807, #151810, #151849
2025-04-25 23:49:35 +00:00
..
builtin_functions.cpp
builtin_functions.h
canonicalize_modified_loop.cpp
canonicalize_modified_loop.h
concrete_module_type.cpp
concrete_module_type.h
convert_to_ssa.cpp
convert_to_ssa.h
edit_distance.cpp
edit_distance.h
error_report.cpp
error_report.h
exit_transforms.cpp
exit_transforms.h
function_schema_parser.cpp Fix a missed c10::TypeFactory::create spot in function_schema_parser (#151806) 2025-04-24 04:43:34 +00:00
function_schema_parser.h
inline_loop_condition.cpp
inline_loop_condition.h
ir_emitter.cpp
ir_emitter.h
lexer.cpp
lexer.h Rewrite the guts of torch::jit::Lexer to speed it up (#151850) 2025-04-25 23:49:35 +00:00
mini_environment.h
name_mangler.cpp
name_mangler.h
parse_string_literal.h
parser_constants.h Rewrite the guts of torch::jit::Lexer to speed it up (#151850) 2025-04-25 23:49:35 +00:00
parser.cpp
parser.h
resolver.h
schema_matching.cpp
schema_matching.h
schema_type_parser.cpp Fix missing moves in SchemaTypeParser::parseFakeAndRealType (#151807) 2025-04-24 04:43:34 +00:00
schema_type_parser.h
script_type_parser.cpp
script_type_parser.h
source_range.cpp StringCordView: make iterator fast when there is only one piece (#151810) 2025-04-24 04:43:34 +00:00
source_range.h StringCordView: make iterator fast when there is only one piece (#151810) 2025-04-24 04:43:34 +00:00
source_ref.h
strtod.cpp
strtod.h
sugared_value.cpp
sugared_value.h
tracer.cpp
tracer.h
tree_views.cpp
tree_views.h
tree.h
versioned_symbols.cpp
versioned_symbols.h