mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
7c0f2ab3db
This patch is in response to r223147 where the avaiable features are computed based on ".cpu" directive. This will work clean for the standard variants like cortex-a9. For custom variants which rely on standard cpu names for assembly, the additional features of a CPU should be propagated. This can be done via ".arch_extension" as long as the assembler supports it. The implementation for krait along with unit test will be submitted in next patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230650 91177308-0d34-0410-b5e6-96231b3b80d8
75 lines
3.1 KiB
C++
75 lines
3.1 KiB
C++
//===- ARMTargetStreamer.cpp - ARMTargetStreamer class --*- C++ -*---------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file implements the ARMTargetStreamer class.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#include "llvm/ADT/MapVector.h"
|
|
#include "llvm/MC/ConstantPools.h"
|
|
#include "llvm/MC/MCContext.h"
|
|
#include "llvm/MC/MCExpr.h"
|
|
#include "llvm/MC/MCStreamer.h"
|
|
|
|
using namespace llvm;
|
|
//
|
|
// ARMTargetStreamer Implemenation
|
|
//
|
|
ARMTargetStreamer::ARMTargetStreamer(MCStreamer &S)
|
|
: MCTargetStreamer(S), ConstantPools(new AssemblerConstantPools()) {}
|
|
|
|
ARMTargetStreamer::~ARMTargetStreamer() {}
|
|
|
|
// The constant pool handling is shared by all ARMTargetStreamer
|
|
// implementations.
|
|
const MCExpr *ARMTargetStreamer::addConstantPoolEntry(const MCExpr *Expr) {
|
|
return ConstantPools->addEntry(Streamer, Expr, 4);
|
|
}
|
|
|
|
void ARMTargetStreamer::emitCurrentConstantPool() {
|
|
ConstantPools->emitForCurrentSection(Streamer);
|
|
}
|
|
|
|
// finish() - write out any non-empty assembler constant pools.
|
|
void ARMTargetStreamer::finish() { ConstantPools->emitAll(Streamer); }
|
|
|
|
// The remaining callbacks should be handled separately by each
|
|
// streamer.
|
|
void ARMTargetStreamer::emitFnStart() {}
|
|
void ARMTargetStreamer::emitFnEnd() {}
|
|
void ARMTargetStreamer::emitCantUnwind() {}
|
|
void ARMTargetStreamer::emitPersonality(const MCSymbol *Personality) {}
|
|
void ARMTargetStreamer::emitPersonalityIndex(unsigned Index) {}
|
|
void ARMTargetStreamer::emitHandlerData() {}
|
|
void ARMTargetStreamer::emitSetFP(unsigned FpReg, unsigned SpReg,
|
|
int64_t Offset) {}
|
|
void ARMTargetStreamer::emitMovSP(unsigned Reg, int64_t Offset) {}
|
|
void ARMTargetStreamer::emitPad(int64_t Offset) {}
|
|
void ARMTargetStreamer::emitRegSave(const SmallVectorImpl<unsigned> &RegList,
|
|
bool isVector) {}
|
|
void ARMTargetStreamer::emitUnwindRaw(int64_t StackOffset,
|
|
const SmallVectorImpl<uint8_t> &Opcodes) {
|
|
}
|
|
void ARMTargetStreamer::switchVendor(StringRef Vendor) {}
|
|
void ARMTargetStreamer::emitAttribute(unsigned Attribute, unsigned Value) {}
|
|
void ARMTargetStreamer::emitTextAttribute(unsigned Attribute,
|
|
StringRef String) {}
|
|
void ARMTargetStreamer::emitIntTextAttribute(unsigned Attribute,
|
|
unsigned IntValue,
|
|
StringRef StringValue) {}
|
|
void ARMTargetStreamer::emitArch(unsigned Arch) {}
|
|
void ARMTargetStreamer::emitArchExtension(unsigned ArchExt) {}
|
|
void ARMTargetStreamer::emitObjectArch(unsigned Arch) {}
|
|
void ARMTargetStreamer::emitFPU(unsigned FPU) {}
|
|
void ARMTargetStreamer::finishAttributeSection() {}
|
|
void ARMTargetStreamer::emitInst(uint32_t Inst, char Suffix) {}
|
|
void
|
|
ARMTargetStreamer::AnnotateTLSDescriptorSequence(const MCSymbolRefExpr *SRE) {}
|
|
|
|
void ARMTargetStreamer::emitThumbSet(MCSymbol *Symbol, const MCExpr *Value) {}
|