[all-commits] [llvm/llvm-project] ae895a: [mlir][spirv] De-template deserialization
Lei Zhang via All-commits
all-commits at lists.llvm.org
Wed Dec 23 11:50:39 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ae895ac4b9fa86b9471617357f66c0cd6cdb70b8
https://github.com/llvm/llvm-project/commit/ae895ac4b9fa86b9471617357f66c0cd6cdb70b8
Author: Lei Zhang <antiagainst at google.com>
Date: 2020-12-23 (Wed, 23 Dec 2020)
Changed paths:
M mlir/lib/Target/SPIRV/Deserialization.cpp
M mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
Log Message:
-----------
[mlir][spirv] De-template deserialization
Previously for each op we generate a separate deserialization
method for it. Those deserialization methods duplicate the logic
of parsing operands/results/attributes and such.
This commit creates a generic method and let suitable op-specific
deserialization method to call into it.
wc -l SPIRVSerialization.inc: before 13290; after: 8304 (So -4986)
Reviewed By: hanchung, ThomasRaoux
Differential Revision: https://reviews.llvm.org/D93504
More information about the All-commits
mailing list