Adds a new trace_entry_t type TRACE_TYPE_ENCODING. Encodings are stored in one or more consecutive such entries by raw2trace for the first occurrence of each instruction or modified instruction, with encodings repeated in new chunks. The trace version is bumped for this new type.
Adds a new encoding field to the end of memref_instr_t. The reader_t class caches the trace_entry_t encodings and uses them to fill in this field. A new file type OFFLINE_FILE_TYPE_ENCODINGS indicates whether encodings are present (to support stripping them out).
Augments the opcode_mix and view tools to use the new encoding records and only need the module_mapper for legacy traces.
Updates the documentation and unit tests.
Still remaining is adding markers when code changes, joint with #2062.
Fixes #5520 (closed)