[intelpt] Refactoring instruction decoding for flexibility
authorAlisamar Husain <zrthxn@gmail.com>
Sat, 26 Mar 2022 15:53:50 +0000 (08:53 -0700)
committerWalter Erquinigo <wallace@fb.com>
Sat, 26 Mar 2022 18:34:47 +0000 (11:34 -0700)
commitbcf1978a871535e297c965195afe467134164413
tree611736e8d3c6de1ae0acb899dbc454c941ec3e4b
parentf8846229c41f3e4aede3bd06921772a209b4993a
[intelpt] Refactoring instruction decoding for flexibility

Now the decoded thread has Append methods that provide more flexibility
in terms of the underlying data structure that represents the
instructions. In this case, we are able to represent the sporadic errors
as map and thus reduce the size of each instruction.

Differential Revision: https://reviews.llvm.org/D122293
lldb/include/lldb/Target/TraceCursor.h
lldb/source/Plugins/Trace/intel-pt/DecodedThread.cpp
lldb/source/Plugins/Trace/intel-pt/DecodedThread.h
lldb/source/Plugins/Trace/intel-pt/IntelPTDecoder.cpp
lldb/source/Plugins/Trace/intel-pt/TraceCursorIntelPT.cpp
lldb/source/Plugins/Trace/intel-pt/TraceCursorIntelPT.h
lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
lldb/source/Target/TraceInstructionDumper.cpp
lldb/test/API/commands/trace/TestTraceDumpInfo.py
lldb/test/API/commands/trace/TestTraceLoad.py