46#include <unordered_map>
50#define GET_INSTRINFO_MC_DESC
51#define ENABLE_INSTR_PREDICATE_VERIFIER
52#include "HexagonGenInstrInfo.inc"
54#define GET_SUBTARGETINFO_MC_DESC
55#include "HexagonGenSubtargetInfo.inc"
57#define GET_REGINFO_MC_DESC
58#include "HexagonGenRegisterInfo.inc"
62 cl::desc(
"Disable looking for compound instructions for Hexagon"));
66 cl::desc(
"Disable looking for duplex instructions for Hexagon"));
104 "mhvx",
cl::desc(
"Enable Hexagon Vector eXtensions"),
124 cl::desc(
"Disable Hexagon Vector eXtensions"));
128 cl::desc(
"Enable HVX IEEE floating point extensions"));
150 return "hexagonv67t";
158 return "hexagonv71t";
173 if (!ArchV.
empty() && !CPU.empty()) {
176 std::pair<StringRef, StringRef> ArchP = ArchV.
split(
't');
177 std::pair<StringRef, StringRef> CPUP = CPU.split(
't');
178 if (ArchP.first != CPUP.first)
202 if (ItinUnits == HexagonItinerariesV62FU::CVI_ALL ||
203 ItinUnits == HexagonItinerariesV62FU::CVI_ALL_NOMEM)
204 return (*Lanes = 4, CVI_XLANE);
205 else if (ItinUnits & HexagonItinerariesV62FU::CVI_MPY01 &&
206 ItinUnits & HexagonItinerariesV62FU::CVI_XLSHF)
207 return (*Lanes = 2, CVI_XLANE | CVI_MPY0);
208 else if (ItinUnits & HexagonItinerariesV62FU::CVI_MPY01)
209 return (*Lanes = 2, CVI_MPY0);
210 else if (ItinUnits & HexagonItinerariesV62FU::CVI_XLSHF)
211 return (*Lanes = 2, CVI_XLANE);
212 else if (ItinUnits & HexagonItinerariesV62FU::CVI_XLANE &&
213 ItinUnits & HexagonItinerariesV62FU::CVI_SHIFT &&
214 ItinUnits & HexagonItinerariesV62FU::CVI_MPY0 &&
215 ItinUnits & HexagonItinerariesV62FU::CVI_MPY1)
216 return (*Lanes = 1, CVI_XLANE | CVI_SHIFT | CVI_MPY0 | CVI_MPY1);
217 else if (ItinUnits & HexagonItinerariesV62FU::CVI_XLANE &&
218 ItinUnits & HexagonItinerariesV62FU::CVI_SHIFT)
219 return (*Lanes = 1, CVI_XLANE | CVI_SHIFT);
220 else if (ItinUnits & HexagonItinerariesV62FU::CVI_MPY0 &&
221 ItinUnits & HexagonItinerariesV62FU::CVI_MPY1)
222 return (*Lanes = 1, CVI_MPY0 | CVI_MPY1);
223 else if (ItinUnits == HexagonItinerariesV62FU::CVI_ZW)
224 return (*Lanes = 1, CVI_ZW);
225 else if (ItinUnits == HexagonItinerariesV62FU::CVI_XLANE)
226 return (*Lanes = 1, CVI_XLANE);
227 else if (ItinUnits == HexagonItinerariesV62FU::CVI_SHIFT)
228 return (*Lanes = 1, CVI_SHIFT);
230 return (*Lanes = 0, CVI_NONE);
237 return HexagonItinerariesV62FU::SLOT0 == units;
245 formatted_raw_ostream &OS;
248 HexagonTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS,
250 : HexagonTargetStreamer(S), OS(OS) {}
252 void prettyPrintAsm(MCInstPrinter &InstPrinter, uint64_t
Address,
253 const MCInst &Inst,
const MCSubtargetInfo &STI,
254 raw_ostream &OS)
override {
259 raw_string_ostream TempStream(Buffer);
266 std::string LoopString =
"";
270 LoopString += (IsLoop1 ?
" :endloop01" :
" :endloop0");
271 }
else if (IsLoop1) {
272 LoopString +=
" :endloop1";
275 StringRef Contents(Buffer);
276 auto PacketBundle = Contents.rsplit(
'\n');
277 auto HeadTail = PacketBundle.first.split(
'\n');
278 StringRef Separator =
"\n";
279 StringRef Indent =
"\t";
281 while (!HeadTail.first.empty()) {
283 auto Duplex = HeadTail.first.split(
'\v');
284 if (!Duplex.second.empty()) {
285 OS << Indent << Duplex.first << Separator;
286 InstTxt = Duplex.second;
287 }
else if (!HeadTail.first.trim().starts_with(
"immext")) {
288 InstTxt = Duplex.first;
290 if (!InstTxt.
empty())
291 OS << Indent << InstTxt << Separator;
292 HeadTail = HeadTail.second.
split(
'\n');
296 OS <<
"\n\t} :mem_noshuf" << LoopString;
298 OS <<
"\t}" << LoopString;
301 void finish()
override { finishAttributeSection(); }
303 void finishAttributeSection()
override {}
307 if (getStreamer().isVerboseAsm()) {
311 OS <<
"\t// " <<
Name;
319 MCELFStreamer &getStreamer() {
320 return static_cast<MCELFStreamer &
>(Streamer);
322 HexagonTargetELFStreamer(MCStreamer &S, MCSubtargetInfo
const &STI)
323 : HexagonTargetStreamer(S) {
327 void emitCommonSymbolSorted(MCSymbol *Symbol, uint64_t
Size,
328 unsigned ByteAlignment,
329 unsigned AccessSize)
override {
330 HexagonMCELFStreamer &HexagonELFStreamer =
331 static_cast<HexagonMCELFStreamer &
>(getStreamer());
333 Symbol,
Size,
Align(ByteAlignment), AccessSize);
336 void emitLocalCommonSymbolSorted(MCSymbol *Symbol, uint64_t
Size,
337 unsigned ByteAlignment,
338 unsigned AccessSize)
override {
339 HexagonMCELFStreamer &HexagonELFStreamer =
340 static_cast<HexagonMCELFStreamer &
>(getStreamer());
342 Symbol,
Size,
Align(ByteAlignment), AccessSize);
345 void finish()
override { finishAttributeSection(); }
347 void reset()
override { AttributeSection =
nullptr; }
350 MCSection *AttributeSection =
nullptr;
352 void finishAttributeSection()
override {
353 MCELFStreamer &S = getStreamer();
371 InitHexagonMCInstrInfo(
X);
377 InitHexagonMCRegisterInfo(
X, Hexagon::R31, 0,
389 nullptr,
MRI.getDwarfRegNum(Hexagon::R30,
true), 0);
396 unsigned SyntaxVariant,
401 if (SyntaxVariant == 0)
410 return new HexagonTargetAsmStreamer(S, OS, *IP);
414 std::unique_ptr<MCAsmBackend> &&MAB,
415 std::unique_ptr<MCObjectWriter> &&OW,
416 std::unique_ptr<MCCodeEmitter> &&
Emitter) {
423 return new HexagonTargetELFStreamer(S, STI);
450 Result.push_back(
"+hvxv60");
453 Result.push_back(
"+hvxv62");
456 Result.push_back(
"+hvxv65");
459 Result.push_back(
"+hvxv66");
462 Result.push_back(
"+hvxv67");
465 Result.push_back(
"+hvxv68");
468 Result.push_back(
"+hvxv69");
471 Result.push_back(
"+hvxv71");
474 Result.push_back(
"+hvxv73");
477 Result.push_back(
"+hvxv75");
480 Result.push_back(
"+hvxv79");
483 Result.push_back(
"+hvxv81");
488 .Case(
"hexagonv60",
"+hvxv60")
489 .Case(
"hexagonv62",
"+hvxv62")
490 .Case(
"hexagonv65",
"+hvxv65")
491 .Case(
"hexagonv66",
"+hvxv66")
492 .Case(
"hexagonv67",
"+hvxv67")
493 .Case(
"hexagonv67t",
"+hvxv67")
494 .Case(
"hexagonv68",
"+hvxv68")
495 .Case(
"hexagonv69",
"+hvxv69")
496 .Case(
"hexagonv71",
"+hvxv71")
497 .Case(
"hexagonv71t",
"+hvxv71")
498 .Case(
"hexagonv73",
"+hvxv73")
499 .Case(
"hexagonv75",
"+hvxv75")
500 .Case(
"hexagonv79",
"+hvxv79")
501 .Case(
"hexagonv81",
"+hvxv81"));
509 Result.push_back(
"+hvx-ieee-fp");
511 Result.push_back(
"+cabac");
522std::pair<std::string, std::string> selectCPUAndFS(
StringRef CPU,
524 std::pair<std::string, std::string>
Result;
529std::mutex ArchSubtargetMutex;
530std::unordered_map<std::string, std::unique_ptr<MCSubtargetInfo const>>
536 std::lock_guard<std::mutex> Lock(ArchSubtargetMutex);
537 auto Existing = ArchSubtarget.find(std::string(STI->
getCPU()));
538 if (Existing == ArchSubtarget.end())
540 return Existing->second.get();
548 unsigned CpuArch = ArchV5;
550 {ArchV81, ArchV79, ArchV75, ArchV73, ArchV71, ArchV69, ArchV68, ArchV67,
551 ArchV66, ArchV65, ArchV62, ArchV60, ArchV55, ArchV5}) {
558 for (
unsigned F : {ExtensionHVX, ExtensionHVX64B, ExtensionHVX128B}) {
564 bool HasHvxVer =
false;
566 {ExtensionHVXV60, ExtensionHVXV62, ExtensionHVXV65, ExtensionHVXV66,
567 ExtensionHVXV67, ExtensionHVXV68, ExtensionHVXV69, ExtensionHVXV71,
568 ExtensionHVXV73, ExtensionHVXV75, ExtensionHVXV79, ExtensionHVXV81}) {
576 if (!UseHvx || HasHvxVer)
582 FB.
set(ExtensionHVXV81);
585 FB.
set(ExtensionHVXV79);
588 FB.
set(ExtensionHVXV75);
591 FB.
set(ExtensionHVXV73);
594 FB.
set(ExtensionHVXV71);
597 FB.
set(ExtensionHVXV69);
600 FB.
set(ExtensionHVXV68);
603 FB.
set(ExtensionHVXV67);
606 FB.
set(ExtensionHVXV66);
609 FB.
set(ExtensionHVXV65);
612 FB.
set(ExtensionHVXV62);
615 FB.
set(ExtensionHVXV60);
624 std::pair<std::string, std::string> Features = selectCPUAndFS(CPU, FS);
629 TT, CPUName, CPUName, ArchFS);
630 if (
X !=
nullptr && (CPUName ==
"hexagonv67t" || CPUName ==
"hexagon71t"))
637 errs() <<
"error: invalid CPU \"" << CPUName.
str().c_str()
647 X->setFeatureBits(Features.
set(Hexagon::ExtensionHVXQFloat));
652 X->setFeatureBits(Features.
reset(Hexagon::FeatureDuplex));
660 const bool ZRegOnDefault =
661 (CPUName ==
"hexagonv67") || (CPUName ==
"hexagonv66");
664 X->setFeatureBits(Features.
set(Hexagon::ExtensionZReg));
675 std::lock_guard<std::mutex> Lock(ArchSubtargetMutex);
676 ArchSubtarget[std::string(STI->
getCPU())] =
677 std::unique_ptr<MCSubtargetInfo const>(ArchSTI);
681std::optional<unsigned>
683 for (
auto Arch : {Hexagon::ExtensionHVXV81, Hexagon::ExtensionHVXV79,
684 Hexagon::ExtensionHVXV75, Hexagon::ExtensionHVXV73,
685 Hexagon::ExtensionHVXV71, Hexagon::ExtensionHVXV69,
686 Hexagon::ExtensionHVXV68, Hexagon::ExtensionHVXV67,
687 Hexagon::ExtensionHVXV66, Hexagon::ExtensionHVXV65,
688 Hexagon::ExtensionHVXV62, Hexagon::ExtensionHVXV60})
689 if (Features.
test(Arch))
696 {Hexagon::ArchV81, Hexagon::ArchV79, Hexagon::ArchV75, Hexagon::ArchV73,
697 Hexagon::ArchV71, Hexagon::ArchV69, Hexagon::ArchV68, Hexagon::ArchV67,
698 Hexagon::ArchV66, Hexagon::ArchV65, Hexagon::ArchV62, Hexagon::ArchV60,
699 Hexagon::ArchV55, Hexagon::ArchV5})
700 if (Features.
test(Arch))
741 bool isConditionalBranch(MCInst
const &Inst)
const override {
746 bool evaluateBranch(MCInst
const &Inst, uint64_t Addr,
747 uint64_t
Size, uint64_t &Target)
const override {
749 isConditionalBranch(Inst)))
764 uint32_t getValueFromMask(uint32_t Instruction, uint32_t Mask)
const {
768 if (Instruction & (Mask & -Mask))
776 std::vector<std::pair<uint64_t, uint64_t>>
777 findPltEntries(uint64_t PltSectionVA, ArrayRef<uint8_t> PltContents,
778 const MCSubtargetInfo &STI)
const override {
780 std::vector<std::pair<uint64_t, uint64_t>>
Result;
781 for (uint64_t Byte = 0x0, End = PltContents.
size(); Byte < End; Byte += 4) {
784 if ((ImmExt & 0x00004000) != 0x00004000)
786 uint32_t LoadGotPlt =
788 if ((LoadGotPlt & 0x6a49c00c) != 0x6a49c00c)
790 uint32_t
Address = (getValueFromMask(ImmExt, 0xfff3fff) << 6) +
791 getValueFromMask(LoadGotPlt, 0x1f80) + PltSectionVA +
801 return new HexagonMCInstrAnalysis(
Info);
unsigned const MachineRegisterInfo * MRI
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
static bool isUnconditionalBranch(Instruction *Term)
static MCStreamer * createMCStreamer(const Triple &T, MCContext &Context, std::unique_ptr< MCAsmBackend > &&MAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter)
static MCTargetStreamer * createMCAsmTargetStreamer(MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint)
Analysis containing CSE Info
#define clEnumValN(ENUMVAL, FLAGNAME, DESC)
#define LLVM_EXTERNAL_VISIBILITY
dxil DXContainer Global Emitter
static cl::opt< bool > EnableHexagonCabac("mcabac", cl::desc("tbd"), cl::init(false))
static MCTargetStreamer * createHexagonNullTargetStreamer(MCStreamer &S)
static MCTargetStreamer * createHexagonObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI)
static MCTargetStreamer * createMCAsmTargetStreamer(MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *IP)
LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeHexagonTargetMC()
static MCInstrAnalysis * createHexagonMCInstrAnalysis(const MCInstrInfo *Info)
static MCInstPrinter * createHexagonMCInstPrinter(const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
static cl::opt< Hexagon::ArchEnum > EnableHVX("mhvx", cl::desc("Enable Hexagon Vector eXtensions"), cl::values(clEnumValN(Hexagon::ArchEnum::V60, "v60", "Build for HVX v60"), clEnumValN(Hexagon::ArchEnum::V62, "v62", "Build for HVX v62"), clEnumValN(Hexagon::ArchEnum::V65, "v65", "Build for HVX v65"), clEnumValN(Hexagon::ArchEnum::V66, "v66", "Build for HVX v66"), clEnumValN(Hexagon::ArchEnum::V67, "v67", "Build for HVX v67"), clEnumValN(Hexagon::ArchEnum::V68, "v68", "Build for HVX v68"), clEnumValN(Hexagon::ArchEnum::V69, "v69", "Build for HVX v69"), clEnumValN(Hexagon::ArchEnum::V71, "v71", "Build for HVX v71"), clEnumValN(Hexagon::ArchEnum::V73, "v73", "Build for HVX v73"), clEnumValN(Hexagon::ArchEnum::V75, "v75", "Build for HVX v75"), clEnumValN(Hexagon::ArchEnum::V79, "v79", "Build for HVX v79"), clEnumValN(Hexagon::ArchEnum::V81, "v81", "Build for HVX v81"), clEnumValN(Hexagon::ArchEnum::Generic, "", "")), cl::init(Hexagon::ArchEnum::NoArch), cl::ValueOptional)
static cl::opt< bool > DisableHVX("mno-hvx", cl::Hidden, cl::desc("Disable Hexagon Vector eXtensions"))
static MCStreamer * createMCStreamer(Triple const &T, MCContext &Context, std::unique_ptr< MCAsmBackend > &&MAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter)
static bool isCPUValid(StringRef CPU)
static MCRegisterInfo * createHexagonMCRegisterInfo(const Triple &TT)
static cl::opt< bool > EnableHvxIeeeFp("mhvx-ieee-fp", cl::Hidden, cl::desc("Enable HVX IEEE floating point extensions"))
static MCAsmInfo * createHexagonMCAsmInfo(const MCRegisterInfo &MRI, const Triple &TT, const MCTargetOptions &Options)
static StringRef HexagonGetArchVariant()
static void clearFeature(MCSubtargetInfo *STI, uint64_t F)
static bool checkFeature(MCSubtargetInfo *STI, uint64_t F)
static constexpr StringRef DefaultArch
#define HEXAGON_PACKET_SIZE
static TableGen::Emitter::OptClass< SkeletonEmitter > X("gen-skeleton-class", "Generate example skeleton class")
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
size_t size() const
size - Get the array size.
Container class for subtarget features.
constexpr FeatureBitset & reset(unsigned I)
constexpr bool test(unsigned I) const
Prints bundles as a newline separated list of individual instructions Duplexes are separated by a ver...
void HexagonMCEmitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size, Align ByteAlignment, unsigned AccessSize)
void HexagonMCEmitCommonSymbol(MCSymbol *Symbol, uint64_t Size, Align ByteAlignment, unsigned AccessSize)
This class is intended to be used as a base class for asm properties and features specific to the tar...
void addInitialFrameState(const MCCFIInstruction &Inst)
static MCCFIInstruction cfiDefCfa(MCSymbol *L, unsigned Register, int64_t Offset, SMLoc Loc={})
.cfi_def_cfa defines a rule for computing CFA as: take address from Register and add Offset to it.
Context object for machine code objects.
SmallVector< AttributeItem, 64 > Contents
void emitAttributesSection(StringRef Vendor, const Twine &Section, unsigned Type, MCSection *&AttributeSection)
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
virtual void printInst(const MCInst *MI, uint64_t Address, StringRef Annot, const MCSubtargetInfo &STI, raw_ostream &OS)=0
Print the specified MCInst to the specified raw_ostream.
Instances of this class represent a single low-level machine instruction.
virtual bool isUnconditionalBranch(const MCInst &Inst) const
virtual bool isConditionalBranch(const MCInst &Inst) const
Interface to description of machine instruction set.
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
Streaming machine code generation interface.
Generic base class for all target subtargets.
bool hasFeature(unsigned Feature) const
const Triple & getTargetTriple() const
FeatureBitset ToggleFeature(uint64_t FB)
Toggle a feature and return the re-computed feature bits.
Target specific streamer interface.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
StringRef - Represent a constant reference to a string, i.e.
std::pair< StringRef, StringRef > split(char Separator) const
Split into two substrings around the first occurrence of a separator character.
std::string str() const
str - Get the contents as an std::string.
constexpr bool empty() const
empty - Check if the string is empty.
bool contains(StringRef Other) const
Return true if the given string is a substring of *this, and false otherwise.
StringRef drop_back(size_t N=1) const
Return a StringRef equal to 'this' but with the last N elements dropped.
A switch()-like statement whose cases are string literals.
StringSwitch & Case(StringLiteral S, T Value)
Triple - Helper class for working with autoconf configuration names.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
constexpr char Align[]
Key for Kernel::Arg::Metadata::mAlign.
constexpr std::underlying_type_t< E > Mask()
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
LLVM_ABI StringRef attrTypeAsString(unsigned attr, TagNameMap tagNameMap, bool hasTagPrefix=true)
LLVM_ABI const TagNameMap & getHexagonAttributeTags()
bool isSlot0Only(unsigned units)
bool isOuterLoop(MCInst const &MCI)
size_t bundleSize(MCInst const &MCI)
bool isMemReorderDisabled(MCInst const &MCI)
iterator_range< Hexagon::PacketIterator > bundleInstructions(MCInstrInfo const &MCII, MCInst const &MCI)
bool isBundle(MCInst const &MCI)
bool isExtendable(MCInstrInfo const &MCII, MCInst const &MCI)
bool isInnerLoop(MCInst const &MCI)
MCOperand const & getExtendableOperand(MCInstrInfo const &MCII, MCInst const &MCI)
llvm::ArrayRef< MCPhysReg > GetVectRegRev()
unsigned getArchVersion(const FeatureBitset &Features)
unsigned GetELFFlags(const MCSubtargetInfo &STI)
std::optional< unsigned > getHVXVersion(const FeatureBitset &Features)
MCSubtargetInfo const * getArchSubtarget(MCSubtargetInfo const *STI)
StringRef selectHexagonCPU(StringRef CPU)
void addArchSubtarget(MCSubtargetInfo const *STI, StringRef FS)
FeatureBitset completeHVXFeatures(const FeatureBitset &FB)
MCSubtargetInfo * createHexagonMCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS)
Create a Hexagon MCSubtargetInfo instance.
std::optional< Hexagon::ArchEnum > getCpu(StringRef CPU)
ValuesClass values(OptsTy... Options)
Helper to build a ValuesClass by forwarding a variable number of arguments as an initializer list to ...
initializer< Ty > init(const Ty &Val)
uint32_t read32le(const void *P)
This is an optimization pass for GlobalISel generic memory operations.
FunctionAddr VTableAddr Value
unsigned HexagonConvertUnits(unsigned ItinUnits, unsigned *Lanes)
cl::opt< bool > HexagonDisableCompound
MCCodeEmitter * createHexagonMCCodeEmitter(const MCInstrInfo &MCII, MCContext &MCT)
unsigned HexagonGetLastSlot()
Target & getTheHexagonTarget()
MCAsmBackend * createHexagonAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
LLVM_ABI void report_fatal_error(Error Err, bool gen_crash_diag=true)
LLVM_ABI raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
std::string join(IteratorT Begin, IteratorT End, StringRef Separator)
Joins the strings in the range [Begin, End), adding Separator between the elements.
MCInstrInfo * createHexagonMCInstrInfo()
ArrayRef(const T &OneElt) -> ArrayRef< T >
MCStreamer * createHexagonELFStreamer(Triple const &TT, MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > CE)
cl::opt< bool > HexagonDisableDuplex
RegisterMCAsmInfoFn - Helper template for registering a target assembly info implementation.
static void RegisterMCRegInfo(Target &T, Target::MCRegInfoCtorFnTy Fn)
RegisterMCRegInfo - Register a MCRegisterInfo implementation for the given target.
static void RegisterMCAsmBackend(Target &T, Target::MCAsmBackendCtorTy Fn)
RegisterMCAsmBackend - Register a MCAsmBackend implementation for the given target.
static void RegisterMCCodeEmitter(Target &T, Target::MCCodeEmitterCtorTy Fn)
RegisterMCCodeEmitter - Register a MCCodeEmitter implementation for the given target.
static void RegisterMCSubtargetInfo(Target &T, Target::MCSubtargetInfoCtorFnTy Fn)
RegisterMCSubtargetInfo - Register a MCSubtargetInfo implementation for the given target.
static void RegisterObjectTargetStreamer(Target &T, Target::ObjectTargetStreamerCtorTy Fn)
static void RegisterMCInstrAnalysis(Target &T, Target::MCInstrAnalysisCtorFnTy Fn)
RegisterMCInstrAnalysis - Register a MCInstrAnalysis implementation for the given target.
static void RegisterELFStreamer(Target &T, Target::ELFStreamerCtorTy Fn)
static void RegisterNullTargetStreamer(Target &T, Target::NullTargetStreamerCtorTy Fn)
static void RegisterMCInstPrinter(Target &T, Target::MCInstPrinterCtorTy Fn)
RegisterMCInstPrinter - Register a MCInstPrinter implementation for the given target.
static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn)
RegisterMCInstrInfo - Register a MCInstrInfo implementation for the given target.
static void RegisterAsmTargetStreamer(Target &T, Target::AsmTargetStreamerCtorTy Fn)