[llvm] r359904 - [Docs][CodeGenerator][eBPF] Correct the values for BPF_X and BPF_K

Yonghong Song via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 09:40:17 PDT 2019


Author: yhs
Date: Fri May  3 09:40:16 2019
New Revision: 359904

URL: http://llvm.org/viewvc/llvm-project?rev=359904&view=rev
Log:
[Docs][CodeGenerator][eBPF] Correct the values for BPF_X and BPF_K

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.

Signed-off-by: Wang YanQing <udknight at gmail.com>

Differential Revision: https://reviews.llvm.org/D61512

Modified:
    llvm/trunk/docs/CodeGenerator.rst

Modified: llvm/trunk/docs/CodeGenerator.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CodeGenerator.rst?rev=359904&r1=359903&r2=359904&view=diff
==============================================================================
--- llvm/trunk/docs/CodeGenerator.rst (original)
+++ llvm/trunk/docs/CodeGenerator.rst Fri May  3 09:40:16 2019
@@ -2527,8 +2527,8 @@ When BPF_CLASS(code) == BPF_ALU or BPF_A
 
 ::
 
-  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
 




More information about the llvm-commits mailing list