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"));
102 "mhvx",
cl::desc(
"Enable Hexagon Vector eXtensions"),
121 cl::desc(
"Disable Hexagon Vector eXtensions"));
125 cl::desc(
"Enable HVX IEEE floating point extensions"));
147 return "hexagonv67t";
155 return "hexagonv71t";
168 if (!ArchV.
empty() && !CPU.empty()) {
171 std::pair<StringRef, StringRef> ArchP = ArchV.
split(
't');
172 std::pair<StringRef, StringRef> CPUP = CPU.split(
't');
173 if (ArchP.first != CPUP.first)
197 if (ItinUnits == HexagonItinerariesV62FU::CVI_ALL ||
198 ItinUnits == HexagonItinerariesV62FU::CVI_ALL_NOMEM)
199 return (*Lanes = 4, CVI_XLANE);
200 else if (ItinUnits & HexagonItinerariesV62FU::CVI_MPY01 &&
201 ItinUnits & HexagonItinerariesV62FU::CVI_XLSHF)
202 return (*Lanes = 2, CVI_XLANE | CVI_MPY0);
203 else if (ItinUnits & HexagonItinerariesV62FU::CVI_MPY01)
204 return (*Lanes = 2, CVI_MPY0);
205 else if (ItinUnits & HexagonItinerariesV62FU::CVI_XLSHF)
206 return (*Lanes = 2, CVI_XLANE);
207 else if (ItinUnits & HexagonItinerariesV62FU::CVI_XLANE &&
208 ItinUnits & HexagonItinerariesV62FU::CVI_SHIFT &&
209 ItinUnits & HexagonItinerariesV62FU::CVI_MPY0 &&
210 ItinUnits & HexagonItinerariesV62FU::CVI_MPY1)
211 return (*Lanes = 1, CVI_XLANE | CVI_SHIFT | CVI_MPY0 | CVI_MPY1);
212 else if (ItinUnits & HexagonItinerariesV62FU::CVI_XLANE &&
213 ItinUnits & HexagonItinerariesV62FU::CVI_SHIFT)
214 return (*Lanes = 1, CVI_XLANE | CVI_SHIFT);
215 else if (ItinUnits & HexagonItinerariesV62FU::CVI_MPY0 &&
216 ItinUnits & HexagonItinerariesV62FU::CVI_MPY1)
217 return (*Lanes = 1, CVI_MPY0 | CVI_MPY1);
218 else if (ItinUnits == HexagonItinerariesV62FU::CVI_ZW)
219 return (*Lanes = 1, CVI_ZW);
220 else if (ItinUnits == HexagonItinerariesV62FU::CVI_XLANE)
221 return (*Lanes = 1, CVI_XLANE);
222 else if (ItinUnits == HexagonItinerariesV62FU::CVI_SHIFT)
223 return (*Lanes = 1, CVI_SHIFT);
225 return (*Lanes = 0, CVI_NONE);
232 return HexagonItinerariesV62FU::SLOT0 == units;
240 formatted_raw_ostream &OS;
243 HexagonTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS,
245 : HexagonTargetStreamer(S), OS(OS) {}
247 void prettyPrintAsm(MCInstPrinter &InstPrinter, uint64_t
Address,
248 const MCInst &Inst,
const MCSubtargetInfo &STI,
249 raw_ostream &OS)
override {
254 raw_string_ostream TempStream(Buffer);
261 std::string LoopString =
"";
265 LoopString += (IsLoop1 ?
" :endloop01" :
" :endloop0");
266 }
else if (IsLoop1) {
267 LoopString +=
" :endloop1";
270 StringRef Contents(Buffer);
271 auto PacketBundle = Contents.rsplit(
'\n');
272 auto HeadTail = PacketBundle.first.split(
'\n');
273 StringRef Separator =
"\n";
274 StringRef Indent =
"\t";
276 while (!HeadTail.first.empty()) {
278 auto Duplex = HeadTail.first.split(
'\v');
279 if (!Duplex.second.empty()) {
280 OS << Indent << Duplex.first << Separator;
281 InstTxt = Duplex.second;
282 }
else if (!HeadTail.first.trim().starts_with(
"immext")) {
283 InstTxt = Duplex.first;
285 if (!InstTxt.
empty())
286 OS << Indent << InstTxt << Separator;
287 HeadTail = HeadTail.second.
split(
'\n');
291 OS <<
"\n\t} :mem_noshuf" << LoopString;
293 OS <<
"\t}" << LoopString;
296 void finish()
override { finishAttributeSection(); }
298 void finishAttributeSection()
override {}
302 if (getStreamer().isVerboseAsm()) {
306 OS <<
"\t// " <<
Name;
314 MCELFStreamer &getStreamer() {
315 return static_cast<MCELFStreamer &
>(Streamer);
317 HexagonTargetELFStreamer(MCStreamer &S, MCSubtargetInfo
const &STI)
318 : HexagonTargetStreamer(S) {
322 void emitCommonSymbolSorted(MCSymbol *Symbol, uint64_t
Size,
323 unsigned ByteAlignment,
324 unsigned AccessSize)
override {
325 HexagonMCELFStreamer &HexagonELFStreamer =
326 static_cast<HexagonMCELFStreamer &
>(getStreamer());
328 Symbol,
Size,
Align(ByteAlignment), AccessSize);
331 void emitLocalCommonSymbolSorted(MCSymbol *Symbol, uint64_t
Size,
332 unsigned ByteAlignment,
333 unsigned AccessSize)
override {
334 HexagonMCELFStreamer &HexagonELFStreamer =
335 static_cast<HexagonMCELFStreamer &
>(getStreamer());
337 Symbol,
Size,
Align(ByteAlignment), AccessSize);
340 void finish()
override { finishAttributeSection(); }
342 void reset()
override { AttributeSection =
nullptr; }
345 MCSection *AttributeSection =
nullptr;
347 void finishAttributeSection()
override {
348 MCELFStreamer &S = getStreamer();
366 InitHexagonMCInstrInfo(
X);
372 InitHexagonMCRegisterInfo(
X, Hexagon::R31, 0,
384 nullptr,
MRI.getDwarfRegNum(Hexagon::R30,
true), 0);
391 unsigned SyntaxVariant,
396 if (SyntaxVariant == 0)
405 return new HexagonTargetAsmStreamer(S, OS, *IP);
409 std::unique_ptr<MCAsmBackend> &&MAB,
410 std::unique_ptr<MCObjectWriter> &&OW,
411 std::unique_ptr<MCCodeEmitter> &&
Emitter) {
418 return new HexagonTargetELFStreamer(S, STI);
445 Result.push_back(
"+hvxv60");
448 Result.push_back(
"+hvxv62");
451 Result.push_back(
"+hvxv65");
454 Result.push_back(
"+hvxv66");
457 Result.push_back(
"+hvxv67");
460 Result.push_back(
"+hvxv68");
463 Result.push_back(
"+hvxv69");
466 Result.push_back(
"+hvxv71");
469 Result.push_back(
"+hvxv73");
472 Result.push_back(
"+hvxv75");
475 Result.push_back(
"+hvxv79");
480 .Case(
"hexagonv60",
"+hvxv60")
481 .Case(
"hexagonv62",
"+hvxv62")
482 .Case(
"hexagonv65",
"+hvxv65")
483 .Case(
"hexagonv66",
"+hvxv66")
484 .Case(
"hexagonv67",
"+hvxv67")
485 .Case(
"hexagonv67t",
"+hvxv67")
486 .Case(
"hexagonv68",
"+hvxv68")
487 .Case(
"hexagonv69",
"+hvxv69")
488 .Case(
"hexagonv71",
"+hvxv71")
489 .Case(
"hexagonv71t",
"+hvxv71")
490 .Case(
"hexagonv73",
"+hvxv73")
491 .Case(
"hexagonv75",
"+hvxv75")
492 .Case(
"hexagonv79",
"+hvxv79"));
500 Result.push_back(
"+hvx-ieee-fp");
502 Result.push_back(
"+cabac");
513std::pair<std::string, std::string> selectCPUAndFS(
StringRef CPU,
515 std::pair<std::string, std::string>
Result;
520std::mutex ArchSubtargetMutex;
521std::unordered_map<std::string, std::unique_ptr<MCSubtargetInfo const>>
527 std::lock_guard<std::mutex> Lock(ArchSubtargetMutex);
528 auto Existing = ArchSubtarget.find(std::string(STI->
getCPU()));
529 if (Existing == ArchSubtarget.end())
531 return Existing->second.get();
539 unsigned CpuArch = ArchV5;
541 {ArchV79, ArchV75, ArchV73, ArchV71, ArchV69, ArchV68, ArchV67, ArchV66,
542 ArchV65, ArchV62, ArchV60, ArchV55, ArchV5}) {
549 for (
unsigned F : {ExtensionHVX, ExtensionHVX64B, ExtensionHVX128B}) {
555 bool HasHvxVer =
false;
557 {ExtensionHVXV60, ExtensionHVXV62, ExtensionHVXV65, ExtensionHVXV66,
558 ExtensionHVXV67, ExtensionHVXV68, ExtensionHVXV69, ExtensionHVXV71,
559 ExtensionHVXV73, ExtensionHVXV75, ExtensionHVXV79}) {
567 if (!UseHvx || HasHvxVer)
573 FB.
set(ExtensionHVXV79);
576 FB.
set(ExtensionHVXV75);
579 FB.
set(ExtensionHVXV73);
582 FB.
set(ExtensionHVXV71);
585 FB.
set(ExtensionHVXV69);
588 FB.
set(ExtensionHVXV68);
591 FB.
set(ExtensionHVXV67);
594 FB.
set(ExtensionHVXV66);
597 FB.
set(ExtensionHVXV65);
600 FB.
set(ExtensionHVXV62);
603 FB.
set(ExtensionHVXV60);
612 std::pair<std::string, std::string> Features = selectCPUAndFS(CPU, FS);
617 TT, CPUName, CPUName, ArchFS);
618 if (
X !=
nullptr && (CPUName ==
"hexagonv67t" || CPUName ==
"hexagon71t"))
625 errs() <<
"error: invalid CPU \"" << CPUName.
str().c_str()
635 X->setFeatureBits(Features.
set(Hexagon::ExtensionHVXQFloat));
640 X->setFeatureBits(Features.
reset(Hexagon::FeatureDuplex));
648 const bool ZRegOnDefault =
649 (CPUName ==
"hexagonv67") || (CPUName ==
"hexagonv66");
652 X->setFeatureBits(Features.
set(Hexagon::ExtensionZReg));
663 std::lock_guard<std::mutex> Lock(ArchSubtargetMutex);
664 ArchSubtarget[std::string(STI->
getCPU())] =
665 std::unique_ptr<MCSubtargetInfo const>(ArchSTI);
669std::optional<unsigned>
671 for (
auto Arch : {Hexagon::ExtensionHVXV79, Hexagon::ExtensionHVXV75,
672 Hexagon::ExtensionHVXV73, Hexagon::ExtensionHVXV71,
673 Hexagon::ExtensionHVXV69, Hexagon::ExtensionHVXV68,
674 Hexagon::ExtensionHVXV67, Hexagon::ExtensionHVXV66,
675 Hexagon::ExtensionHVXV65, Hexagon::ExtensionHVXV62,
676 Hexagon::ExtensionHVXV60})
677 if (Features.
test(Arch))
684 {Hexagon::ArchV79, Hexagon::ArchV75, Hexagon::ArchV73, Hexagon::ArchV71,
685 Hexagon::ArchV69, Hexagon::ArchV68, Hexagon::ArchV67, Hexagon::ArchV66,
686 Hexagon::ArchV65, Hexagon::ArchV62, Hexagon::ArchV60, Hexagon::ArchV55,
688 if (Features.
test(Arch))
728 bool isConditionalBranch(MCInst
const &Inst)
const override {
733 bool evaluateBranch(MCInst
const &Inst, uint64_t Addr,
734 uint64_t
Size, uint64_t &Target)
const override {
736 isConditionalBranch(Inst)))
751 uint32_t getValueFromMask(uint32_t Instruction, uint32_t Mask)
const {
755 if (Instruction & (Mask & -Mask))
763 std::vector<std::pair<uint64_t, uint64_t>>
764 findPltEntries(uint64_t PltSectionVA, ArrayRef<uint8_t> PltContents,
765 const MCSubtargetInfo &STI)
const override {
767 std::vector<std::pair<uint64_t, uint64_t>>
Result;
768 for (uint64_t Byte = 0x0, End = PltContents.
size(); Byte < End; Byte += 4) {
771 if ((ImmExt & 0x00004000) != 0x00004000)
773 uint32_t LoadGotPlt =
775 if ((LoadGotPlt & 0x6a49c00c) != 0x6a49c00c)
777 uint32_t
Address = (getValueFromMask(ImmExt, 0xfff3fff) << 6) +
778 getValueFromMask(LoadGotPlt, 0x1f80) + PltSectionVA +
788 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_ATTRIBUTE_UNUSED
#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 void LLVM_ATTRIBUTE_UNUSED clearFeature(MCSubtargetInfo *STI, uint64_t F)
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< 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::Generic, "", "")), cl::init(Hexagon::ArchEnum::NoArch), cl::ValueOptional)
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 bool LLVM_ATTRIBUTE_UNUSED 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)