llvm-project/llvm/lib/Target/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
..
AsmParser Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
Disassembler Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MCTargetDesc Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
TargetInfo Fix shlib builds for all lib/Target/*/TargetInfo libs 2021-10-08 15:21:13 -07:00
BPF.h BPF: remove intrindics @llvm.stacksave() and @llvm.stackrestore() 2021-10-18 09:51:19 -07:00
BPF.td
BPFAbstractMemberAccess.cpp [BPF] Use elementtype attribute for preserve.array/struct.index intrinsics 2021-07-17 11:09:18 +02:00
BPFAdjustOpt.cpp BPF: Workaround an InstCombine ICmp transformation with llvm.bpf.compare builtin 2021-11-01 14:46:20 -07:00
BPFAsmPrinter.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
BPFCORE.h
BPFCallingConv.td
BPFCheckAndAdjustIR.cpp BPF: Workaround an InstCombine ICmp transformation with llvm.bpf.compare builtin 2021-11-01 14:46:20 -07:00
BPFFrameLowering.cpp
BPFFrameLowering.h
BPFIRPeephole.cpp BPF: fix a bug in IRPeephole pass 2021-10-18 10:18:24 -07:00
BPFISelDAGToDAG.cpp BPFISelDAGToDAG.cpp - don't dereference a dyn_cast<> result. NFCI. 2021-06-06 13:24:29 +01:00
BPFISelLowering.cpp BPF: implement isLegalAddressingMode() properly 2021-09-30 16:41:15 -07:00
BPFISelLowering.h BPF: implement isLegalAddressingMode() properly 2021-09-30 16:41:15 -07:00
BPFInstrFormats.td
BPFInstrInfo.cpp
BPFInstrInfo.h
BPFInstrInfo.td
BPFMCInstLower.cpp
BPFMCInstLower.h
BPFMIChecking.cpp [llvm] Replace report_fatal_error(std::string) uses with report_fatal_error(Twine) 2021-10-06 12:04:30 +01:00
BPFMIPeephole.cpp BPF: Fix a bug in peephole TRUNC elimination optimization 2021-03-02 13:03:42 -08:00
BPFMISimplifyPatchable.cpp [Target] Use make_early_inc_range (NFC) 2021-11-05 09:14:32 -07:00
BPFPreserveDIType.cpp BPF: permit type modifiers for __builtin_btf_type_id() relocation 2021-03-04 16:27:23 -08:00
BPFRegisterInfo.cpp
BPFRegisterInfo.h
BPFRegisterInfo.td BPF: make 32bit register spill with 64bit alignment 2021-09-20 21:00:25 -07:00
BPFSelectionDAGInfo.cpp
BPFSelectionDAGInfo.h
BPFSubtarget.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
BPFSubtarget.h
BPFTargetMachine.cpp BPF: remove intrindics @llvm.stacksave() and @llvm.stackrestore() 2021-10-18 09:51:19 -07:00
BPFTargetMachine.h [NewPM] Hide pass manager debug logging behind -debug-pass-manager-verbose 2021-05-07 21:51:47 -07:00
BPFTargetTransformInfo.h [Target][CodeGen] Remove default CostKind arguments on inner/impl TTI overrides 2021-09-22 15:28:08 +01:00
BTF.def BPF: Support btf_type_tag attribute 2021-11-04 17:01:36 -07:00
BTF.h BPF: Support btf_type_tag attribute 2021-11-04 17:01:36 -07:00
BTFDebug.cpp BPF: change btf_type_tag BTF output format 2021-11-09 11:34:25 -08:00
BTFDebug.h BPF: change btf_type_tag BTF output format 2021-11-09 11:34:25 -08:00
CMakeLists.txt BPF: remove intrindics @llvm.stacksave() and @llvm.stackrestore() 2021-10-18 09:51:19 -07:00