Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFMIChecking.cpp189 if (MI.getOpcode() != BPF::XFADDW32 && MI.getOpcode() != BPF::XFADDD && in processAtomicInsts()
190 MI.getOpcode() != BPF::XFANDW32 && MI.getOpcode() != BPF::XFANDD && in processAtomicInsts()
191 MI.getOpcode() != BPF::XFXORW32 && MI.getOpcode() != BPF::XFXORD && in processAtomicInsts()
192 MI.getOpcode() != BPF::XFORW32 && MI.getOpcode() != BPF::XFORD) in processAtomicInsts()
201 case BPF::XFADDW32: in processAtomicInsts()
204 case BPF::XFADDD: in processAtomicInsts()
207 case BPF::XFANDW32: in processAtomicInsts()
210 case BPF::XFANDD: in processAtomicInsts()
216 case BPF::XFXORD: in processAtomicInsts()
219 case BPF::XFORW32: in processAtomicInsts()
[all …]
H A DBPFMISimplifyPatchable.cpp97 return Opcode == BPF::STB_imm || Opcode == BPF::STH_imm || in isST()
98 Opcode == BPF::STW_imm || Opcode == BPF::STD_imm; in isST()
102 return Opcode == BPF::STB32 || Opcode == BPF::STH32 || Opcode == BPF::STW32; in isSTX32()
106 return Opcode == BPF::STB || Opcode == BPF::STH || Opcode == BPF::STW || in isSTX64()
107 Opcode == BPF::STD; in isSTX64()
111 return Opcode == BPF::LDB32 || Opcode == BPF::LDH32 || Opcode == BPF::LDW32; in isLDX32()
115 return Opcode == BPF::LDB || Opcode == BPF::LDH || Opcode == BPF::LDW || in isLDX64()
116 Opcode == BPF::LDD; in isLDX64()
120 return Opcode == BPF::LDBSX || Opcode == BPF::LDHSX || Opcode == BPF::LDWSX; in isLDSX()
150 COREOp = BPF::CORE_ST; in checkADDrr()
[all …]
H A DBPFInstrInfo.cpp29 : BPFGenInstrInfo(BPF::ADJCALLSTACKDOWN, BPF::ADJCALLSTACKUP) {} in BPFInstrInfo()
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()
66 StOpc = BPF::STW; in expandMEMCPY()
69 LdOpc = BPF::LDD; in expandMEMCPY()
70 StOpc = BPF::STD; in expandMEMCPY()
134 if (RC == &BPF::GPRRegClass) in storeRegToStackSlot()
[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 DBPFMIPeephole.cpp108 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()
229 .addImm(0).addReg(SubReg).addImm(BPF::sub_32); in eliminateZExtSeq()
257 if (MI.getOpcode() != BPF::MOV_32_64) in eliminateZExt()
280 .addImm(0).addReg(src).addImm(BPF::sub_32); in eliminateZExt()
373 if (Opcode == BPF::MOV_rr) { in eliminateRedundantMov()
[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 DBPFISelLowering.cpp58 addRegisterClass(MVT::i64, &BPF::GPRRegClass); in BPFTargetLowering()
60 addRegisterClass(MVT::i32, &BPF::GPR32RegClass); in BPFTargetLowering()
65 setStackPointerRegisterToSaveRestore(BPF::R11); in BPFTargetLowering()
364 SimpleTy == MVT::i64 ? &BPF::GPRRegClass : &BPF::GPR32RegClass); in LowerFormalArguments()
713 int RShiftOp = isSigned ? BPF::SRA_ri : BPF::SRL_ri; in EmitSubregExt()
777 bool isSelectRROp = (Opc == BPF::Select || in EmitInstrWithCustomInserter()
779 Opc == BPF::Select_32 || in EmitInstrWithCustomInserter()
782 bool isMemcpyOp = Opc == BPF::MEMCPY; in EmitInstrWithCustomInserter()
797 bool is32BitCmp = (Opc == BPF::Select_32 || in EmitInstrWithCustomInserter()
837 NewCC = isSelectRROp ? BPF::Y##_rr_32 : BPF::Y##_ri_32; \ in EmitInstrWithCustomInserter()
[all …]
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 DBPFInstrFormats.td1 //===-- BPFInstrFormats.td - BPF Instruction Formats -------*- tablegen -*-===//
109 let Namespace = "BPF";
110 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()
1358 } else if (MI->getOpcode() == BPF::JAL) { in beginInstruction()
1504 if (MI->getOpcode() == BPF::LD_imm64) { in InstLower()
1523 OutMI.setOpcode(BPF::LD_imm64); in InstLower()
1525 OutMI.setOpcode(BPF::MOV_ri); in InstLower()
1531 } else if (MI->getOpcode() == BPF::CORE_LD64 || in InstLower()
1532 MI->getOpcode() == BPF::CORE_LD32 || in InstLower()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/Disassembler/
H A DBPFDisassembler.cpp97 BPF::R0, BPF::R1, BPF::R2, BPF::R3, BPF::R4, BPF::R5,
98 BPF::R6, BPF::R7, BPF::R8, BPF::R9, BPF::R10, BPF::R11};
112 BPF::W0, BPF::W1, BPF::W2, BPF::W3, BPF::W4, BPF::W5,
113 BPF::W6, BPF::W7, BPF::W8, BPF::W9, BPF::W10, BPF::W11};
191 case BPF::LD_imm64: in getInstruction()
206 case BPF::LD_ABS_B: in getInstruction()
207 case BPF::LD_ABS_H: in getInstruction()
208 case BPF::LD_ABS_W: in getInstruction()
209 case BPF::LD_IND_B: in getInstruction()
210 case BPF::LD_IND_H: in getInstruction()
[all …]
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/
H A DBPFMCCodeEmitter.cpp94 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()
158 if (Opcode == BPF::CMPXCHGW32 || Opcode == BPF::CMPXCHGD) in getMemoryOpValue()
H A DBPFAsmBackend.cpp47 return BPF::NumTargetFixupKinds; in getNumFixupKinds()
59 const static MCFixupKindInfo Infos[BPF::NumTargetFixupKinds] = { in getFixupKindInfo()
107 } else if (Fixup.getTargetKind() == BPF::FK_BPF_PCRel_4) { in applyFixup()
H A DBPFMCTargetDesc.cpp44 InitBPFMCRegisterInfo(X, BPF::R11 /* RAReg doesn't exist */); in createBPFMCRegisterInfo()
86 if (Inst.getOpcode() == BPF::JMP) in evaluateBranch()
H A DBPFMCFixups.h15 namespace BPF {
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/BPF/GISel/
H A DBPFRegisterBanks.td1 //===-- BPFRegisterBanks.td - Describe the BPF Banks -------*- tablegen -*-===//
10 /// Define the BPF register banks used for GlobalISel.
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltinsBPF.def1 //===--- BuiltinsBPF.def - BPF Builtin function database --------*- C++ -*-===//
9 // This file defines the BPF-specific builtin function database. Users of
/freebsd-14.2/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-14.2/contrib/libpcap/ChmodBPF/
H A DStartupParameters.plist2 Description = "Change BPF permissions";
/freebsd-14.2/tools/build/options/
H A DWITH_LLVM_TARGET_BPF1 Build LLVM target support for BPF.

123