LLVM
22.0.0git
lib
Target
BPF
BPFTargetLoweringObjectFile.cpp
Go to the documentation of this file.
1
//===------------------ BPFTargetLoweringObjectFile.cpp -------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
BPFTargetLoweringObjectFile.h
"
10
#include "
llvm/MC/MCContext.h
"
11
#include "
llvm/MC/MCSectionELF.h
"
12
13
using namespace
llvm
;
14
15
MCSection
*
BPFTargetLoweringObjectFileELF::getSectionForJumpTable
(
16
const
Function
&
F
,
const
TargetMachine
&
TM
,
17
const
MachineJumpTableEntry
*JTE)
const
{
18
return
getContext
().
getELFSection
(
".jumptables"
,
ELF::SHT_PROGBITS
, 0);
19
}
BPFTargetLoweringObjectFile.h
MCContext.h
MCSectionELF.h
F
#define F(x, y, z)
Definition
MD5.cpp:55
llvm::BPFTargetLoweringObjectFileELF::getSectionForJumpTable
virtual MCSection * getSectionForJumpTable(const Function &F, const TargetMachine &TM, const MachineJumpTableEntry *JTE) const override
Definition
BPFTargetLoweringObjectFile.cpp:15
llvm::Function
Definition
Function.h:64
llvm::MCContext::getELFSection
MCSectionELF * getELFSection(const Twine &Section, unsigned Type, unsigned Flags)
Definition
MCContext.h:553
llvm::MCObjectFileInfo::getContext
MCContext & getContext() const
Definition
MCObjectFileInfo.h:261
llvm::MCSection
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition
MCSection.h:521
llvm::TargetLoweringObjectFile::TM
const TargetMachine * TM
Definition
TargetLoweringObjectFile.h:70
llvm::TargetMachine
Primary interface to the complete machine description for the target machine.
Definition
TargetMachine.h:83
llvm::ELF::SHT_PROGBITS
@ SHT_PROGBITS
Definition
ELF.h:1143
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
AddressRanges.h:18
llvm::MachineJumpTableEntry
MachineJumpTableEntry - One jump table in the jump table info.
Definition
MachineJumpTableInfo.h:36
Generated on
for LLVM by
1.14.0