[PowerPC] Materialize more constants with CR-field set in late peephole
[llvm-core.git] / lib / Target / XCore / XCoreTargetObjectFile.h
blob5eb423a7435e44fa68352495dc02234067a8eae6
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 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
11 #define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
15 namespace llvm {
17 static const unsigned CodeModelLargeSize = 256;
19 class XCoreTargetObjectFile : public TargetLoweringObjectFileELF {
20 MCSection *BSSSectionLarge;
21 MCSection *DataSectionLarge;
22 MCSection *ReadOnlySectionLarge;
23 MCSection *DataRelROSectionLarge;
25 public:
26 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
28 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
29 const TargetMachine &TM) const override;
31 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
32 const TargetMachine &TM) const override;
34 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
35 const Constant *C,
36 unsigned &Align) const override;
38 } // end namespace llvm
40 #endif