Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / lib / Target / XCore / XCoreTargetObjectFile.h
blob73cc6686d7755311967f84c126aa0a17f4cce04f
1 //===-- XCoreTargetObjectFile.h - XCore Object Info -------------*- C++ -*-===//
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
10 #define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
12 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
14 namespace llvm {
16 static const unsigned CodeModelLargeSize = 256;
18 class XCoreTargetObjectFile : public TargetLoweringObjectFileELF {
19 MCSection *BSSSectionLarge;
20 MCSection *DataSectionLarge;
21 MCSection *ReadOnlySectionLarge;
22 MCSection *DataRelROSectionLarge;
24 public:
25 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
27 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
28 const TargetMachine &TM) const override;
30 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
31 const TargetMachine &TM) const override;
33 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
34 const Constant *C,
35 Align &Alignment) const override;
37 } // end namespace llvm
39 #endif