LLVM  8.0.1
XCoreTargetObjectFile.h
Go to the documentation of this file.
1 //===-- XCoreTargetObjectFile.h - XCore Object Info -------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
11 #define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
12 
14 
15 namespace llvm {
16 
17 static const unsigned CodeModelLargeSize = 256;
18 
20  MCSection *BSSSectionLarge;
21  MCSection *DataSectionLarge;
22  MCSection *ReadOnlySectionLarge;
23  MCSection *DataRelROSectionLarge;
24 
25  public:
26  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
27 
29  const TargetMachine &TM) const override;
30 
32  const TargetMachine &TM) const override;
33 
35  const Constant *C,
36  unsigned &Align) const override;
37  };
38 } // end namespace llvm
39 
40 #endif
uint64_t CallInst * C
Instances of this class represent a uniqued identifier for a section in the current translation unit...
Definition: MCSection.h:39
A parsed version of the target data layout string in and methods for querying it. ...
Definition: DataLayout.h:111
constexpr char Align[]
Key for Kernel::Arg::Metadata::mAlign.
This class represents lattice values for constants.
Definition: AllocatorList.h:24
void Initialize(MCContext &Ctx, const TargetMachine &TM) override
This method must be called before any actual lowering is done.
MCSection * SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
MCSection * getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
Targets should implement this method to assign a section to globals with an explicit section specfied...
static const unsigned CodeModelLargeSize
Context object for machine code objects.
Definition: MCContext.h:63
This is an important base class in LLVM.
Definition: Constant.h:42
SectionKind - This is a simple POD value that classifies the properties of a section.
Definition: SectionKind.h:23
MCSection * getSectionForConstant(const DataLayout &DL, SectionKind Kind, const Constant *C, unsigned &Align) const override
Given a constant with the SectionKind, return a section that it should be placed in.
const unsigned Kind
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:59