diff options
| author | Lei Zhang <antiagainst@google.com> | 2021-12-10 13:57:29 -0500 |
|---|---|---|
| committer | Lei Zhang <antiagainst@google.com> | 2021-12-10 19:20:49 -0500 |
| commit | b289266cb2398cebca0ba1ecfc6242470cc7cedd (patch) | |
| tree | 6d5315a2edeae969f7f98f412f6ae5deb52f4189 /mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp | |
| parent | db124df4950699caa020384ee8da23af6c707d3c (diff) | |
[mlir][spirv] Add serialization control to emit symbol name
In SPIR-V, symbol names are encoded as `OpName` instructions.
They are not semantic impacting and can be omitted, which can
reduce the binary size.
Reviewed By: scotttodd
Differential Revision: https://reviews.llvm.org/D115531
Diffstat (limited to 'mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp')
| -rw-r--r-- | mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp b/mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp index c01362d1e2d4..1c77dfdddcaa 100644 --- a/mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp +++ b/mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp @@ -15,6 +15,7 @@ #include "mlir/Dialect/SPIRV/IR/SPIRVOps.h" #include "mlir/IR/Builders.h" #include "mlir/IR/Location.h" +#include "mlir/Target/SPIRV/SPIRVBinaryUtils.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVector.h" #include "llvm/Support/Debug.h" |
