[PATCH] D61512: [Docs][CodeGenerator][eBPF] Correct the values for BPF_X and BPF_K
Wang YanQing via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 3 08:20:25 PDT 2019
udknight created this revision.
udknight added reviewers: ast, yonghong-song.
udknight added a project: LLVM.
Fix the values of BPF_X and BPF_K according to BPFInstrFormats.td:
"
def BPF_K : BPFSrcType<0x0>;
def BPF_X : BPFSrcType<0x1>;
"
The right value for BPF_X is 0x1, and the right value for BPF_K is 0x0.
Repository:
rL LLVM
https://reviews.llvm.org/D61512
Files:
docs/CodeGenerator.rst
Index: docs/CodeGenerator.rst
===================================================================
--- docs/CodeGenerator.rst
+++ docs/CodeGenerator.rst
@@ -2527,8 +2527,8 @@
::
- BPF_X 0x0 use src_reg register as source operand
- BPF_K 0x1 use 32 bit immediate as source operand
+ BPF_X 0x1 use src_reg register as source operand
+ BPF_K 0x0 use 32 bit immediate as source operand
and four MSB bits store operation code
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61512.198010.patch
Type: text/x-patch
Size: 454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190503/d6e5574a/attachment.bin>
More information about the llvm-commits
mailing list