diff options
author | Yonghong Song <yhs@fb.com> | 2019-05-03 16:40:16 +0000 |
---|---|---|
committer | Yonghong Song <yhs@fb.com> | 2019-05-03 16:40:16 +0000 |
commit | 33434d5f045072c876b511dbe42af66adb56eae1 (patch) | |
tree | 6edb80caca32edad17e1315831acf070bcf18436 /llvm/docs/CodeGenerator.rst | |
parent | a8f3840c62a7c0fde28e9a3f1a32e30ba5579121 (diff) | |
download | bcm5719-llvm-33434d5f045072c876b511dbe42af66adb56eae1.tar.gz bcm5719-llvm-33434d5f045072c876b511dbe42af66adb56eae1.zip |
[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@gmail.com>
Differential Revision: https://reviews.llvm.org/D61512
llvm-svn: 359904
Diffstat (limited to 'llvm/docs/CodeGenerator.rst')
-rw-r--r-- | llvm/docs/CodeGenerator.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/CodeGenerator.rst b/llvm/docs/CodeGenerator.rst index 22c0714e1af..e7f96e8c6e3 100644 --- a/llvm/docs/CodeGenerator.rst +++ b/llvm/docs/CodeGenerator.rst @@ -2527,8 +2527,8 @@ When BPF_CLASS(code) == BPF_ALU or BPF_ALU64 or BPF_JMP, :: - 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 |