[all-commits] [llvm/llvm-project] 3e1390: [mlir][Parser] Small optimization to parsing
River Riddle via All-commits
all-commits at lists.llvm.org
Tue Nov 3 13:10:49 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 3e1390090fe31702488d26b72aa2aa018f557f0e
https://github.com/llvm/llvm-project/commit/3e1390090fe31702488d26b72aa2aa018f557f0e
Author: River Riddle <riddleriver at gmail.com>
Date: 2020-11-03 (Tue, 03 Nov 2020)
Changed paths:
M mlir/lib/Parser/Parser.cpp
M mlir/lib/Parser/Parser.h
M mlir/lib/Parser/TypeParser.cpp
Log Message:
-----------
[mlir][Parser] Small optimization to parsing
* Use function_ref instead of std::function in several methods
* Use ::get instead of ::getChecked for IntegerType.
- It is already fully verified and constructing a mlir::Location can be extremely costly during parsing.
More information about the All-commits
mailing list