[mlir][bytecode] Avoid recording null arglocs & realloc opnames.
authorJacques Pienaar <jpienaar@google.com>
Thu, 25 May 2023 16:24:50 +0000 (09:24 -0700)
committerJacques Pienaar <jpienaar@google.com>
Thu, 25 May 2023 16:24:50 +0000 (09:24 -0700)
commit1826fadb0d2bc5b61d6c028d8006b2a7d1249ec0
tree95a7382117a98ef1c0cc549f595cce5bcc75a76e
parent12ccc59594916caf8a833f749cc820dde961d83d
[mlir][bytecode] Avoid recording null arglocs & realloc opnames.

For block arg locs a common case is no/uknown location (where the producer
signifies they don't care about blockarg location). Also avoid needing to
dynamically resize opnames during parsing.

Assumed to be post lazy loading change, so chose version 3.

Differential Revision: https://reviews.llvm.org/D151038
mlir/docs/BytecodeFormat.md
mlir/include/mlir/Bytecode/Encoding.h
mlir/lib/Bytecode/Reader/BytecodeReader.cpp
mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
mlir/test/Bytecode/general.mlir
mlir/test/Bytecode/invalid/invalid-structure.mlir