diff options
author | Lei Zhang <antiagainst@google.com> | 2020-12-23 14:37:52 -0500 |
---|---|---|
committer | Lei Zhang <antiagainst@google.com> | 2020-12-23 14:45:46 -0500 |
commit | ae895ac4b9fa86b9471617357f66c0cd6cdb70b8 (patch) | |
tree | 5a1a68acd2fce8cf2a77e16a49fbb6ce0aebdafb /clang/lib/Basic/Module.cpp | |
parent | 897990e614c8d609b2f62dde4f82eb3e96f9f0be (diff) | |
download | llvm-ae895ac4b9fa86b9471617357f66c0cd6cdb70b8.zip llvm-ae895ac4b9fa86b9471617357f66c0cd6cdb70b8.tar.gz llvm-ae895ac4b9fa86b9471617357f66c0cd6cdb70b8.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions