llvm-project/llvm/test/CodeGen/BPF
Yonghong Song 8d499bd5bc BPF: change btf_type_tag BTF output format
For the declaration like below:
  int __tag1 * __tag1 __tag2 *g
Commit 41860e602a ("BPF: Support btf_type_tag attribute")
implemented the following encoding:
  VAR(g) -> __tag1 --> __tag2 -> pointer -> __tag1 -> pointer -> int

Some further experiments with linux btf_type_tag support, esp.
with generating attributes in vmlinux.h, and also some internal
discussion showed the following format is more desirable:
  VAR(g) -> pointer -> __tag2 -> __tag1 -> pointer -> __tag1 -> int

The format makes it similar to other modifier like 'const', e.g.,
  const int *g
which has encoding VAR(g) -> PTR -> CONST -> int

Differential Revision: https://reviews.llvm.org/D113496
2021-11-09 11:34:25 -08:00
..
BTF BPF: change btf_type_tag BTF output format 2021-11-09 11:34:25 -08:00
CORE [OpaquePtr] Forbid mixing typed and opaque pointers 2021-09-10 15:18:23 +02:00
32-bit-subreg-alu.ll
32-bit-subreg-cond-select.ll [BPF] simplify zero extension with MOV_32_64 2020-05-27 11:26:39 -07:00
32-bit-subreg-load-store.ll
32-bit-subreg-peephole-phi-1.ll [BPF] simplify zero extension with MOV_32_64 2020-05-27 11:26:39 -07:00
32-bit-subreg-peephole-phi-2.ll [BPF] simplify zero extension with MOV_32_64 2020-05-27 11:26:39 -07:00
32-bit-subreg-peephole-phi-3.ll [BPF] simplify zero extension with MOV_32_64 2020-05-27 11:26:39 -07:00
32-bit-subreg-peephole.ll [BPF] simplify zero extension with MOV_32_64 2020-05-27 11:26:39 -07:00
32-bit-subreg-zext.ll [BPF] simplify zero extension with MOV_32_64 2020-05-27 11:26:39 -07:00
adjust-opt-icmp1.ll [InstCombine] Canonicalize range test idiom 2021-11-08 21:15:46 +01:00
adjust-opt-icmp2.ll [InstCombine] Canonicalize range test idiom 2021-11-08 21:15:46 +01:00
adjust-opt-icmp3.ll BPF: Workaround an InstCombine ICmp transformation with llvm.bpf.compare builtin 2021-11-01 14:46:20 -07:00
adjust-opt-speculative1.ll [InstCombine] Fold (select C, (gep Ptr, Idx), Ptr) -> (gep Ptr, (select C, Idx, 0)) (PR50183) (REAPPLIED) 2021-07-14 12:21:01 +01:00
adjust-opt-speculative2.ll [InstCombine] Fold (select C, (gep Ptr, Idx), Ptr) -> (gep Ptr, (select C, Idx, 0)) (PR50183) (REAPPLIED) 2021-07-14 12:21:01 +01:00
alu8.ll
atomics.ll [BPF] support atomic instructions 2020-12-03 07:38:00 -08:00
atomics_2.ll [BPF] support atomic instructions 2020-12-03 07:38:00 -08:00
basictest.ll
byval.ll OpaquePtr: Bulk update tests to use typed byval 2020-11-20 14:00:46 -05:00
callx.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
cc_args.ll
cc_args_be.ll
cc_ret.ll
cmp.ll
dwarfdump.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
elf-symbol-information.ll [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
ex1.ll
fi_ri.ll
i128.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
inline_asm.ll
inlineasm-output-template.ll
inlineasm-wreg.ll [BPF] add support for 32 bit registers in inline asm 2021-05-16 11:01:47 -07:00
intrinsics.ll
is_trunc_free.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
is_zext_free.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
lit.local.cfg [BPF][Test] Disable codegen test on AIX 2021-05-06 02:38:46 +00:00
load.ll
loop-exit-cond.ll BPF: avoid NE/EQ loop exit condition 2021-08-04 16:54:16 -07:00
loops.ll
many_args1.ll
many_args2.ll
mem_offset.ll
mem_offset_be.ll
memcpy-expand-in-order.ll
objdump_atomics.ll
objdump_cond_op.ll
objdump_cond_op_2.ll
objdump_dis_all.ll [BPF] Return fail if disassembled insn registers out of range 2020-05-18 18:53:23 -07:00
objdump_imm_hex.ll
objdump_intrinsics.ll
objdump_nop.ll [BPF] Prevent disassembly segfault for NOP insn 2020-05-18 17:40:18 -07:00
objdump_static_var.ll
objdump_trivial.ll
objdump_two_funcs.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
optnone-1.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
optnone-2.ll BPF: make __builtin_btf_type_id() return 64bit int 2020-11-16 07:08:41 -08:00
reloc-2.ll BPF: Add more relocation kinds 2021-05-25 08:19:13 -07:00
reloc-3.ll BPF: Add more relocation kinds 2021-05-25 08:19:13 -07:00
reloc-btf-2.ll BPF: Add more relocation kinds 2021-05-25 08:19:13 -07:00
reloc-btf.ll BPF: Add more relocation kinds 2021-05-25 08:19:13 -07:00
reloc.ll BPF: Add more relocation kinds 2021-05-25 08:19:13 -07:00
remove_truncate_1.ll
remove_truncate_2.ll
remove_truncate_3.ll
remove_truncate_4.ll
remove_truncate_5.ll
remove_truncate_6.ll
remove_truncate_7.ll [BPF] Remove unnecessary MOV_32_64 instructions 2020-06-03 08:14:54 -07:00
remove_truncate_8.ll BPF: Fix a bug in peephole TRUNC elimination optimization 2021-03-02 13:03:42 -08:00
rodata_1.ll
rodata_2.ll
rodata_3.ll
rodata_4.ll
rodata_5.ll [BPF] fix incorrect type in BPFISelDAGToDAG readonly load optimization 2020-06-11 19:31:06 -07:00
rodata_6.ll BPF: fix incorrect DAG2DAG load optimization 2020-10-07 19:08:40 -07:00
rodata_7.ll BPF: fix incorrect DAG2DAG load optimization 2020-10-07 19:08:40 -07:00
sanity.ll
sdiv_error.ll
select_ri.ll
selectiondag-bug.ll BPF: add a test for selectiondag alias analysis w.r.t. lifetime 2020-12-02 22:27:17 -08:00
setcc.ll
shifts.ll
simplifycfg.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
sockex2.ll
spill-alu32.ll BPF: make 32bit register spill with 64bit alignment 2021-09-20 21:00:25 -07:00
struct_ret1.ll
struct_ret2.ll
undef.ll
vararg1.ll
vla.ll BPF: remove intrindics @llvm.stacksave() and @llvm.stackrestore() 2021-10-18 09:51:19 -07:00
warn-call.ll
warn-stack.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
xadd.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
xadd_legal.ll