diff options
author | Yonghong Song <yhs@fb.com> | 2017-09-22 04:36:34 +0000 |
---|---|---|
committer | Yonghong Song <yhs@fb.com> | 2017-09-22 04:36:34 +0000 |
commit | d03fef970bb6b57c1a1205340bcde5aa1a8b77a3 (patch) | |
tree | b06ee9f7df499c1bd9c21faf30f2132e4e41b147 /lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py | |
parent | 3bf1a8d04e12628638b8c42845840e98620ae488 (diff) | |
download | bcm5719-llvm-d03fef970bb6b57c1a1205340bcde5aa1a8b77a3.tar.gz bcm5719-llvm-d03fef970bb6b57c1a1205340bcde5aa1a8b77a3.zip |
bpf: refactor inst patterns with better inheritance
Arithmetic and jump instructions, load and store instructions are sharing
the same 8-bit code field encoding,
A better instruction pattern implemention could be the following inheritance
relationships, and each layer only encoding those fields which start to
diverse from that layer. This avoids some redundant code.
InstBPF -> TYPE_ALU_JMP -> ALU/JMP
InstBPF -> TYPE_LD_ST -> Load/Store
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Reviewed-by: Yonghong Song <yhs@fb.com>
llvm-svn: 313959
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py')
0 files changed, 0 insertions, 0 deletions