+++ /dev/null
-//===-- AMDILELFWriterInfo.cpp - Elf Writer Info for AMDIL ----------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This file implements ELF writer information for the AMDIL backend.
-//
-//===----------------------------------------------------------------------===//
-
-#include "AMDILELFWriterInfo.h"
-#include "AMDIL.h"
-#include "llvm/Function.h"
-#include "llvm/Support/ErrorHandling.h"
-#include "llvm/Target/TargetData.h"
-#include "llvm/Target/TargetELFWriterInfo.h"
-#include "llvm/Target/TargetMachine.h"
-
-using namespace llvm;
-
-//===----------------------------------------------------------------------===//
-// Implementation of the AMDILELFWriterInfo class
-//===----------------------------------------------------------------------===//
-AMDILELFWriterInfo::AMDILELFWriterInfo(bool is64bit, bool endian)
- : TargetELFWriterInfo(is64bit, endian)
-{
-}
-
-AMDILELFWriterInfo::~AMDILELFWriterInfo() {
-}
-
-unsigned AMDILELFWriterInfo::getRelocationType(unsigned MachineRelTy) const {
- assert(0 && "What do we do here? Lets assert an analyze");
- return 0;
-}
-
-bool AMDILELFWriterInfo::hasRelocationAddend() const {
- assert(0 && "What do we do here? Lets assert an analyze");
- return false;
-}
-
-long int AMDILELFWriterInfo::getDefaultAddendForRelTy(unsigned RelTy,
- long int Modifier) const {
- assert(0 && "What do we do here? Lets assert an analyze");
- return 0;
-}
-
-unsigned AMDILELFWriterInfo::getRelocationTySize(unsigned RelTy) const {
- assert(0 && "What do we do here? Lets assert an analyze");
- return 0;
-}
-
-bool AMDILELFWriterInfo::isPCRelativeRel(unsigned RelTy) const {
- assert(0 && "What do we do here? Lets assert an analyze");
- return false;
-}
-
-unsigned AMDILELFWriterInfo::getAbsoluteLabelMachineRelTy() const {
- assert(0 && "What do we do here? Lets assert an analyze");
- return 0;
-}
-
-long int AMDILELFWriterInfo::computeRelocation(unsigned SymOffset,
- unsigned RelOffset,
- unsigned RelTy) const {
- assert(0 && "What do we do here? Lets assert an analyze");
- return 0;
-}
+++ /dev/null
-//===-- AMDILELFWriterInfo.h - Elf Writer Info for AMDIL ---------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===---------------------------------------------------------------------===//
-//
-// This file implements ELF writer information for the AMDIL backend.
-//
-//===---------------------------------------------------------------------===//
-#ifndef _AMDIL_ELF_WRITER_INFO_H_
-#define _AMDIL_ELF_WRITER_INFO_H_
-#include "llvm/Target/TargetELFWriterInfo.h"
-
-namespace llvm {
- class AMDILELFWriterInfo : public TargetELFWriterInfo {
- public:
- AMDILELFWriterInfo(bool is64Bit_, bool isLittleEndian_);
- virtual ~AMDILELFWriterInfo();
-
- /// getRelocationType - Returns the target specific ELF Relocation type.
- /// 'MachineRelTy' contains the object code independent relocation type
- virtual unsigned getRelocationType(unsigned MachineRelTy) const;
-
- /// 'hasRelocationAddend - True if the target uses and addend in the
- /// ELF relocation entry.
- virtual bool hasRelocationAddend() const;
-
- /// getDefaultAddendForRelTy - Gets the default addend value for a
- /// relocation entry based on the target ELF relocation type.
- virtual long int getDefaultAddendForRelTy(unsigned RelTy,
- long int Modifier = 0) const;
-
- /// getRelTySize - Returns the size of relocatble field in bits
- virtual unsigned getRelocationTySize(unsigned RelTy) const;
-
- /// isPCRelativeRel - True if the relocation type is pc relative
- virtual bool isPCRelativeRel(unsigned RelTy) const;
-
- /// getJumpTableRelocationTy - Returns the machine relocation type used
- /// to reference a jumptable.
- virtual unsigned getAbsoluteLabelMachineRelTy() const;
-
- /// computeRelocation - Some relocatable fields could be relocated
- /// directly, avoiding the relocation symbol emission, compute the
- /// final relocation value for this symbol.
- virtual long int computeRelocation(unsigned SymOffset,
- unsigned RelOffset,
- unsigned RelTy) const;
- };
-} // namespace llvm
-#endif // _AMDIL_ELF_WRITER_INFO_H_
Subtarget.device()->getStackAlignment(), 0),
InstrInfo(*this), //JITInfo(*this),
TLInfo(*this),
- IntrinsicInfo(this),
- ELFWriterInfo(false, true)
+ IntrinsicInfo(this)
{
setAsmVerbosityDefault(true);
setMCUseLoc(false);
return &DataLayout;
}
-const AMDILELFWriterInfo*
-AMDILTargetMachine::getELFWriterInfo() const
-{
- return Subtarget.isTargetELF() ? &ELFWriterInfo : 0;
-}
-
const AMDILIntrinsicInfo*
AMDILTargetMachine::getIntrinsicInfo() const
{
#ifndef AMDILTARGETMACHINE_H_
#define AMDILTARGETMACHINE_H_
-#include "AMDILELFWriterInfo.h"
#include "AMDILFrameLowering.h"
#include "AMDILISelLowering.h"
#include "AMDILInstrInfo.h"
AMDILInstrInfo InstrInfo;
AMDILTargetLowering TLInfo;
AMDILIntrinsicInfo IntrinsicInfo;
- AMDILELFWriterInfo ELFWriterInfo;
bool mDebugMode;
CodeGenOpt::Level mOptLevel;
virtual const AMDILRegisterInfo* getRegisterInfo() const;
virtual const TargetData* getTargetData() const;
virtual const AMDILIntrinsicInfo *getIntrinsicInfo() const;
- virtual const AMDILELFWriterInfo *getELFWriterInfo() const;
// Pass Pipeline Configuration
virtual TargetPassConfig *createPassConfig(PassManagerBase &PM);
AMDILDevice.cpp \
AMDILDeviceInfo.cpp \
AMDILEvergreenDevice.cpp \
- AMDILELFWriterInfo.cpp \
AMDILFrameLowering.cpp \
AMDILInstrInfo.cpp \
AMDILIntrinsicInfo.cpp \