Home
last modified time | relevance | path

Searched refs:BPF (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/Disassembler/
H A DBPFDisassembler.cpp1 //===- BPFDisassembler.cpp - Disassembler for BPF ---------------*- C++ -*-===//
9 // This file is part of the BPF Disassembler.
34 /// A disassembler class for BPF.
97 BPF::R0, BPF::R1, BPF::R2, BPF::R3, BPF::R4, BPF::R5,
98 BPF
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFMIChecking.cpp110 &BPFMCRegisterClasses[BPF::GPRRegClassID]; in hasLiveDefs()
159 if (MI.getOpcode() != BPF::XADDW && in processAtomicInsts()
160 MI.getOpcode() != BPF::XADDD && in processAtomicInsts()
161 MI.getOpcode() != BPF::XADDW32) in processAtomicInsts()
188 if (MI.getOpcode() != BPF::XFADDW32 && MI.getOpcode() != BPF::XFADDD && in processAtomicInsts()
189 MI.getOpcode() != BPF::XFANDW32 && MI.getOpcode() != BPF::XFANDD && in processAtomicInsts()
190 MI.getOpcode() != BPF::XFXORW32 && MI.getOpcode() != BPF::XFXORD && in processAtomicInsts()
191 MI.getOpcode() != BPF::XFORW32 && MI.getOpcode() != BPF::XFORD) in processAtomicInsts()
200 case BPF::XFADDW32: in processAtomicInsts()
201 newOpcode = BPF::XADDW32; in processAtomicInsts()
[all …]
H A DBPFMISimplifyPatchable.cpp98 return Opcode == BPF::STB_imm || Opcode == BPF::STH_imm || in isST()
99 Opcode == BPF::STW_imm || Opcode == BPF::STD_imm; in isST()
103 return Opcode == BPF::STB32 || Opcode == BPF::STH32 || Opcode == BPF::STW32; in isSTX32()
107 return Opcode == BPF::STB || Opcode == BPF::STH || Opcode == BPF::STW || in isSTX64()
108 Opcode == BPF::STD; in isSTX64()
112 return Opcode == BPF::LDB32 || Opcode == BPF::LDH32 || Opcode == BPF::LDW32; in isLDX32()
116 return Opcode == BPF::LDB || Opcode == BPF::LDH || Opcode == BPF::LDW || in isLDX64()
117 Opcode == BPF::LDD; in isLDX64()
121 return Opcode == BPF::LDBSX || Opcode == BPF::LDHSX || Opcode == BPF::LDWSX; in isLDSX()
147 COREOp = BPF::CORE_LD64; in checkADDrr()
[all …]
H A DBPFInstrInfo.cpp29 : BPFGenInstrInfo(BPF::ADJCALLSTACKDOWN, BPF::ADJCALLSTACKUP) {} in BPFInstrInfo()
35 if (BPF::GPRRegClass.contains(DestReg, SrcReg)) in copyPhysReg()
36 BuildMI(MBB, I, DL, get(BPF::MOV_rr), DestReg) in copyPhysReg()
38 else if (BPF::GPR32RegClass.contains(DestReg, SrcReg)) in copyPhysReg()
39 BuildMI(MBB, I, DL, get(BPF::MOV_rr_32), DestReg) in copyPhysReg()
57 LdOpc = BPF::LDB; in expandMEMCPY()
58 StOpc = BPF::STB; in expandMEMCPY()
61 LdOpc = BPF::LDH; in expandMEMCPY()
62 StOpc = BPF::STH; in expandMEMCPY()
65 LdOpc = BPF::LDW; in expandMEMCPY()
[all …]
H A DBPFMIPeephole.cpp23 #include "BPF.h"
91 LLVM_DEBUG(dbgs() << "*** BPF MachineSSA ZEXT Elim peephole pass ***\n\n"); in isCopyFrom32Def()
108 if (MRI->getRegClass(Reg) == &BPF::GPRRegClass) in isCopyFrom32Def()
135 if (PhiDef->getOpcode() == BPF::COPY && !isCopyFrom32Def(PhiDef)) in isPhiFrom32Def()
153 } else if (DefInsn->getOpcode() == BPF::COPY) { in isInsnFrom32Def()
194 if (MI.getOpcode() == BPF::SRL_ri && in eliminateZExtSeq()
205 SllMI->getOpcode() != BPF::SLL_ri || in eliminateZExtSeq()
215 MovMI->getOpcode() != BPF::MOV_32_64) in eliminateZExtSeq()
228 BuildMI(MBB, MI, MI.getDebugLoc(), TII->get(BPF::SUBREG_TO_REG), DstReg) in eliminateZExtSeq()
229 .addImm(0).addReg(SubReg).addImm(BPF in eliminateZExtSeq()
[all...]
H A DBPFRegisterInfo.cpp36 : BPFGenRegisterInfo(BPF::R0) {} in BPFRegisterInfo()
45 markSuperRegs(Reserved, BPF::W10); // [W|R]10 is read only frame pointer in getReservedRegs()
46 markSuperRegs(Reserved, BPF::W11); // [W|R]11 is pseudo stack pointer in getReservedRegs()
93 if (MI.getOpcode() == BPF::MOV_rr) { in eliminateFrameIndex()
99 BuildMI(MBB, ++II, DL, TII.get(BPF::ADD_ri), reg) in eliminateFrameIndex()
113 if (MI.getOpcode() == BPF::FI_ri) { in eliminateFrameIndex()
119 BuildMI(MBB, ++II, DL, TII.get(BPF::MOV_rr), reg) in eliminateFrameIndex()
121 BuildMI(MBB, II, DL, TII.get(BPF::ADD_ri), reg) in eliminateFrameIndex()
135 return BPF::R10; in getFrameRegister()
H A DBPFRegisterInfo.td1 //===-- BPFRegisterInfo.td - BPF Register defs -------------*- tablegen -*-===//
10 // Declarations that describe the BPF register file
13 let Namespace = "BPF" in {
19 let Namespace = "BPF";
27 let Namespace = "BPF";
39 def GPR32 : RegisterClass<"BPF", [i32], 64, (add
46 def GPR : RegisterClass<"BPF", [i64], 64, (add
H A DBPFISelLowering.cpp58 addRegisterClass(MVT::i64, &BPF::GPRRegClass); in BPFTargetLowering()
60 addRegisterClass(MVT::i32, &BPF::GPR32RegClass); in BPFTargetLowering()
65 setStackPointerRegisterToSaveRestore(BPF::R11); in BPFTargetLowering()
263 return std::make_pair(0U, &BPF::GPRRegClass); in getRegForInlineAsmConstraint()
266 return std::make_pair(0U, &BPF::GPR32RegClass); in getRegForInlineAsmConstraint()
365 SimpleTy == MVT::i64 ? &BPF::GPRRegClass : &BPF::GPR32RegClass); in LowerFormalArguments()
737 int RShiftOp = isSigned ? BPF::SRA_ri : BPF::SRL_ri; in EmitSubregExt()
745 BuildMI(BB, DL, TII.get(BPF::MOV_32_64), PromotedReg0).addReg(Reg); in EmitSubregExt()
752 BuildMI(BB, DL, TII.get(BPF::MOVSX_rr_32), PromotedReg0).addReg(Reg); in EmitSubregExt()
754 BuildMI(BB, DL, TII.get(BPF::MOV_32_64), PromotedReg0).addReg(Reg); in EmitSubregExt()
[all …]
H A DBPFFrameLowering.cpp35 SavedRegs.reset(BPF::R6); in determineCalleeSaves()
36 SavedRegs.reset(BPF::R7); in determineCalleeSaves()
37 SavedRegs.reset(BPF::R8); in determineCalleeSaves()
38 SavedRegs.reset(BPF::R9); in determineCalleeSaves()
H A DBPF.td1 //===-- BPF.td - Describe the BPF Target Machine -----------*- tablegen -*-===//
48 string Name = "BPF";
53 def BPF : Target {
H A DBPFCallingConv.td1 //===-- BPFCallingConv.td - Calling Conventions BPF --------*- tablegen -*-===//
9 // This describes the calling conventions for the BPF architecture.
13 // BPF 64-bit C return-value convention.
16 // BPF 64-bit C Calling convention.
H A DBPFPassRegistry.def1 //===- BPFPassRegistry.def - Registry of BPF passes -------------*- C++ -*-===//
10 // BPF backend.
H A DBPFInstrFormats.td1 //===-- BPFInstrFormats.td - BPF Instruction Formats -------*- tablegen -*-===//
110 let Namespace = "BPF";
111 let DecoderNamespace = "BPF";
H A DBTFDebug.cpp1336 if (MI->getOpcode() == BPF::LD_imm64) { in beginInstruction()
1352 } else if (MI->getOpcode() == BPF::CORE_LD64 || in beginInstruction()
1353 MI->getOpcode() == BPF::CORE_LD32 || in beginInstruction()
1354 MI->getOpcode() == BPF::CORE_ST || in beginInstruction()
1355 MI->getOpcode() == BPF::CORE_SHIFT) { in beginInstruction()
1358 } else if (MI->getOpcode() == BPF::JAL) { in beginInstruction()
1526 if (MI->getOpcode() == BPF::LD_imm64) { in InstLower()
1545 OutMI.setOpcode(BPF::LD_imm64); in InstLower()
1547 OutMI.setOpcode(BPF::MOV_ri); in InstLower()
1553 } else if (MI->getOpcode() == BPF::CORE_LD64 || in InstLower()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaBPF.cpp113 assert((BuiltinID == BPF::BI__builtin_preserve_field_info || in CheckBPFBuiltinFunctionCall()
114 BuiltinID == BPF::BI__builtin_btf_type_id || in CheckBPFBuiltinFunctionCall()
115 BuiltinID == BPF::BI__builtin_preserve_type_info || in CheckBPFBuiltinFunctionCall()
116 BuiltinID == BPF::BI__builtin_preserve_enum_value) && in CheckBPFBuiltinFunctionCall()
127 if (BuiltinID == BPF::BI__builtin_preserve_field_info) in CheckBPFBuiltinFunctionCall()
129 else if (BuiltinID == BPF::BI__builtin_btf_type_id) in CheckBPFBuiltinFunctionCall()
131 else if (BuiltinID == BPF::BI__builtin_preserve_type_info) in CheckBPFBuiltinFunctionCall()
143 if (BuiltinID == BPF::BI__builtin_preserve_field_info) { in CheckBPFBuiltinFunctionCall()
148 } else if (BuiltinID == BPF::BI__builtin_preserve_type_info) { in CheckBPFBuiltinFunctionCall()
153 } else if (BuiltinID == BPF::BI__builtin_preserve_enum_value) { in CheckBPFBuiltinFunctionCall()
[all …]
/freebsd/contrib/libpcap/doc/
H A DREADME.macos1 As with other systems using BPF, macOS allows users with read access to
2 the BPF devices to capture packets with libpcap and allows users with
3 write access to the BPF devices to send packets with libpcap.
5 On some systems that use BPF, the BPF devices live on the root file
10 On newer versions of FreeBSD, the BPF devices live on devfs, and devfs
15 On macOS, the BPF devices live on devfs, but the macOS version of devfs
26 Both of them will change the ownership of the BPF devices so that the
27 "admin" group owns them, and will change the permission of the BPF
61 If you want to give a particular user permission to access the BPF
65 give a particular user permission to read and write the BPF devices and
[all …]
H A DREADME.aix23 Using BPF:
25 (1) AIX 4.x's version of BPF is undocumented and somewhat unstandard; the
26 current BPF support code includes changes that should work around
30 Note that the BPF driver and the "/dev/bpf" devices might not exist
34 system and choose BPF even if the devices aren't there.
37 doing the initial loading of the BPF driver if copied to AIX 5 and
42 BPF, or if the workarounds fail to make it work correctly, you
58 make libpcap use DLPI instead of BPF.
/freebsd/contrib/libpcap/
H A DREADME.md32 ### Support for particular platforms and BPF
39 architecture in the BSD packet filter. BPF is described in the 1993
47 libpcap utilizes in-kernel filtering only for the BPF interface.
48 On systems that don't have BPF, all packets are read into user-space
49 and the BPF filters are evaluated in the libpcap library, incurring
51 would translate BPF filters into a filter program that is compatible
54 BPF is standard in 4.4BSD, BSD/OS, NetBSD, FreeBSD, OpenBSD, DragonFly
57 packetfilter interface but has been extended to accept BPF filters
60 Linux has a number of BPF based systems, and libpcap does not support
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFMCCodeEmitter.cpp1 //===-- BPFMCCodeEmitter.cpp - Convert BPF code to machine code -----------===//
94 if (MI.getOpcode() == BPF::JAL) in getMachineOpValue()
97 else if (MI.getOpcode() == BPF::LD_imm64) in getMachineOpValue()
99 else if (MI.getOpcode() == BPF::JMPL) in getMachineOpValue()
100 Fixups.push_back(MCFixup::create(0, Expr, (MCFixupKind)BPF::FK_BPF_PCRel_4)); in getMachineOpValue()
122 if (Opcode == BPF::LD_imm64 || Opcode == BPF::LD_pseudo) { in encodeInstruction()
151 // Encode BPF Memory Operand in getMemoryOpValue()
158 if (Opcode == BPF::CMPXCHGW32 || Opcode == BPF in getMemoryOpValue()
[all...]
H A DBPFMCTargetDesc.cpp44 InitBPFMCRegisterInfo(X, BPF::R11 /* RAReg doesn't exist */); in createBPFMCRegisterInfo()
84 if (Inst.getOpcode() == BPF::JCOND) in evaluateBranch()
89 if (Inst.getOpcode() == BPF::JMP) in evaluateBranch()
H A DBPFAsmBackend.cpp40 return BPF::NumTargetFixupKinds; in getNumFixupKinds()
52 const static MCFixupKindInfo Infos[BPF::NumTargetFixupKinds] = { in getFixupKindInfo()
100 } else if (Fixup.getTargetKind() == BPF::FK_BPF_PCRel_4) { in applyFixup()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsicsBPF.td1 //===- IntrinsicsBPF.td - Defines BPF intrinsics -----------*- tablegen -*-===//
9 // This file defines all of the BPF-specific intrinsics.
/freebsd/contrib/libpcap/ChmodBPF/
H A DStartupParameters.plist2 Description = "Change BPF permissions";
/freebsd/lib/clang/libllvm/
H A DMakefile19 .for arch in AArch64 ARM BPF Mips PowerPC RISCV X86
1390 SRCS_MIN+= Target/BPF/AsmParser/BPFAsmParser.cpp
1391 SRCS_MIN+= Target/BPF/BPFASpaceCastSimplifyPass.cpp
1392 SRCS_MIN+= Target/BPF/BPFAbstractMemberAccess.cpp
1393 SRCS_MIN+= Target/BPF/BPFAdjustOpt.cpp
1394 SRCS_MIN+= Target/BPF/BPFAsmPrinter.cpp
1395 SRCS_MIN+= Target/BPF/BPFCheckAndAdjustIR.cpp
1396 SRCS_MIN+= Target/BPF/BPFFrameLowering.cpp
1397 SRCS_MIN+= Target/BPF/BPFIRPeephole.cpp
1398 SRCS_MIN+= Target/BPF/BPFISelDAGToDAG.cpp
[all …]
/freebsd/tools/build/options/
H A DWITH_LLVM_TARGET_BPF1 Build LLVM target support for BPF.

123