LLVM 24.0.0git
PPCMCTargetDesc.cpp
Go to the documentation of this file.
1//===-- PPCMCTargetDesc.cpp - PowerPC Target Descriptions -----------------===//
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//===----------------------------------------------------------------------===//
8//
9// This file provides PowerPC specific target descriptions.
10//
11//===----------------------------------------------------------------------===//
12
16#include "PPCELFStreamer.h"
17#include "PPCMCAsmInfo.h"
18#include "PPCTargetStreamer.h"
19#include "PPCXCOFFStreamer.h"
22#include "llvm/ADT/StringRef.h"
25#include "llvm/MC/MCAssembler.h"
27#include "llvm/MC/MCContext.h"
28#include "llvm/MC/MCDwarf.h"
31#include "llvm/MC/MCExpr.h"
33#include "llvm/MC/MCInstrInfo.h"
36#include "llvm/MC/MCStreamer.h"
38#include "llvm/MC/MCSymbol.h"
39#include "llvm/MC/MCSymbolELF.h"
49
50using namespace llvm;
51
52#define GET_INSTRINFO_MC_DESC
53#define ENABLE_INSTR_PREDICATE_VERIFIER
54#include "PPCGenInstrInfo.inc"
55
56#define GET_SUBTARGETINFO_MC_DESC
57#include "PPCGenSubtargetInfo.inc"
58
59#define GET_REGINFO_MC_DESC
60#include "PPCGenRegisterInfo.inc"
61
62/// stripRegisterPrefix - This method strips the character prefix from a
63/// register name so that only the number is left. Used by for linux asm.
64const char *PPC::stripRegisterPrefix(const char *RegName) {
65 switch (RegName[0]) {
66 case 'a':
67 if (RegName[1] == 'c' && RegName[2] == 'c')
68 return RegName + 3;
69 break;
70 case 'f':
71 if (RegName[1] == 'p')
72 return RegName + 2;
73 [[fallthrough]];
74 case 'r':
75 case 'v':
76 if (RegName[1] == 's') {
77 if (RegName[2] == 'p')
78 return RegName + 3;
79 return RegName + 2;
80 }
81 return RegName + 1;
82 case 'c':
83 if (RegName[1] == 'r')
84 return RegName + 2;
85 break;
86 case 'w':
87 // For wacc and wacc_hi
88 if (RegName[1] == 'a' && RegName[2] == 'c' && RegName[3] == 'c') {
89 if (RegName[4] == '_')
90 return RegName + 7;
91 else
92 return RegName + 4;
93 }
94 break;
95 case 'd':
96 // For dmr, dmrp, dmrrow, dmrrowp
97 if (RegName[1] == 'm' && RegName[2] == 'r') {
98 if (RegName[3] == 'r' && RegName[4] == 'o' && RegName[5] == 'w' &&
99 RegName[6] == 'p')
100 return RegName + 7;
101 else if (RegName[3] == 'r' && RegName[4] == 'o' && RegName[5] == 'w')
102 return RegName + 6;
103 else if (RegName[3] == 'p')
104 return RegName + 4;
105 else
106 return RegName + 3;
107 }
108 break;
109 }
110
111 return RegName;
112}
113
114/// getRegNumForOperand - some operands use different numbering schemes
115/// for the same registers. For example, a VSX instruction may have any of
116/// vs0-vs63 allocated whereas an Altivec instruction could only have
117/// vs32-vs63 allocated (numbered as v0-v31). This function returns the actual
118/// register number needed for the opcode/operand number combination.
119/// The operand number argument will be useful when we need to extend this
120/// to instructions that use both Altivec and VSX numbering (for different
121/// operands).
123 unsigned OpNo) {
124 int16_t regClass = Desc.operands()[OpNo].RegClass;
125 switch (regClass) {
126 // We store F0-F31, VF0-VF31 in MCOperand and it should be F0-F31,
127 // VSX32-VSX63 during encoding/disassembling
128 case PPC::VSSRCRegClassID:
129 case PPC::VSFRCRegClassID:
130 if (PPC::isVFRegister(Reg))
131 return PPC::VSX32 + (Reg - PPC::VF0);
132 break;
133 // We store VSL0-VSL31, V0-V31 in MCOperand and it should be VSL0-VSL31,
134 // VSX32-VSX63 during encoding/disassembling
135 case PPC::VSRCRegClassID:
136 if (PPC::isVRRegister(Reg))
137 return PPC::VSX32 + (Reg - PPC::V0);
138 break;
139 // Other RegClass doesn't need mapping
140 default:
141 break;
142 }
143 return Reg;
144}
145
147
148// Pin the vtable to this file.
150
152 MCInstrInfo *X = new MCInstrInfo();
153 InitPPCMCInstrInfo(X);
154 return X;
155}
156
158 bool isPPC64 = TT.isPPC64();
159 unsigned Flavour = isPPC64 ? 0 : 1;
160 unsigned RA = isPPC64 ? PPC::LR8 : PPC::LR;
161
163 InitPPCMCRegisterInfo(X, RA, Flavour, Flavour);
164 return X;
165}
166
168 StringRef CPU, StringRef FS) {
169 // Set some default feature to MC layer.
170 std::string FullFS = std::string(FS);
171
172 if (TT.isOSAIX()) {
173 if (!FullFS.empty())
174 FullFS = "+aix," + FullFS;
175 else
176 FullFS = "+aix";
177 }
178
179 return createPPCMCSubtargetInfoImpl(TT, CPU, /*TuneCPU*/ CPU, FullFS);
180}
181
183 const Triple &TheTriple,
184 const MCTargetOptions &Options) {
185 bool isPPC64 = TheTriple.isPPC64();
186
187 MCAsmInfo *MAI;
188 if (TheTriple.isOSBinFormatXCOFF())
189 MAI = new PPCXCOFFMCAsmInfo(isPPC64, TheTriple, Options);
190 else
191 MAI = new PPCELFMCAsmInfo(isPPC64, TheTriple, Options);
192
193 // Initial state of the frame pointer is R1.
194 unsigned Reg = isPPC64 ? PPC::X1 : PPC::R1;
195 MCCFIInstruction Inst =
196 MCCFIInstruction::cfiDefCfa(nullptr, MRI.getDwarfRegNum(Reg, true), 0);
197 MAI->addInitialFrameState(Inst);
198
199 return MAI;
200}
201
202namespace {
203
204class PPCTargetAsmStreamer : public PPCTargetStreamer {
205 formatted_raw_ostream &OS;
206
207public:
208 PPCTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
209 : PPCTargetStreamer(S), OS(OS) {}
210
211 void emitTCEntry(const MCSymbol &S, PPCMCExpr::Specifier Kind) override {
212 if (getContext().isXCOFF()) {
213 MCSymbolXCOFF *TCSym =
214 static_cast<const MCSectionXCOFF *>(Streamer.getCurrentSectionOnly())
215 ->getQualNameSymbol();
216 // On AIX, we have TLS variable offsets (symbol@({gd|ie|le|ld}) depending
217 // on the TLS access method (or model). For the general-dynamic access
218 // method, we also have region handle (symbol@m) for each variable. For
219 // local-dynamic, there is a module handle (_$TLSML[TC]@ml) for all
220 // variables. Finally for local-exec and initial-exec, we have a thread
221 // pointer, in r13 for 64-bit mode and returned by .__get_tpointer for
222 // 32-bit mode.
223 if (Kind == PPC::S_AIX_TLSGD || Kind == PPC::S_AIX_TLSGDM ||
224 Kind == PPC::S_AIX_TLSIE || Kind == PPC::S_AIX_TLSLE ||
225 Kind == PPC::S_AIX_TLSLD || Kind == PPC::S_AIX_TLSML)
226 OS << "\t.tc " << TCSym->getName() << "," << S.getName() << "@"
227 << getContext().getAsmInfo().getSpecifierName(Kind) << '\n';
228 else
229 OS << "\t.tc " << TCSym->getName() << "," << S.getName() << '\n';
230
231 if (TCSym->hasRename())
232 Streamer.emitXCOFFRenameDirective(TCSym, TCSym->getSymbolTableName());
233 return;
234 }
235
236 OS << "\t.tc " << S.getName() << "[TC]," << S.getName() << '\n';
237 }
238
239 void emitMachine(StringRef CPU) override {
240 const Triple &TT = Streamer.getContext().getTargetTriple();
241 if (TT.isOSBinFormatXCOFF())
242 OS << "\t.machine\t" << '\"' << CPU << '\"' << '\n';
243 else
244 OS << "\t.machine " << CPU << '\n';
245 }
246
247 void emitAbiVersion(int AbiVersion) override {
248 OS << "\t.abiversion " << AbiVersion << '\n';
249 }
250
251 void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) override {
252 const MCAsmInfo &MAI = Streamer.getContext().getAsmInfo();
253
254 OS << "\t.localentry\t";
255 S->print(OS, MAI);
256 OS << ", ";
257 MAI.printExpr(OS, *LocalOffset);
258 OS << '\n';
259 }
260};
261
262class PPCTargetELFStreamer : public PPCTargetStreamer {
263public:
264 PPCTargetELFStreamer(MCStreamer &S) : PPCTargetStreamer(S) {}
265
266 MCELFStreamer &getStreamer() {
267 return static_cast<MCELFStreamer &>(Streamer);
268 }
269
270 void emitTCEntry(const MCSymbol &S, PPCMCExpr::Specifier Kind) override {
271 // Creates a R_PPC64_TOC relocation
272 Streamer.emitValueToAlignment(Align(8));
273 Streamer.emitSymbolValue(&S, 8);
274 }
275
276 void emitMachine(StringRef CPU) override {
277 // FIXME: Is there anything to do in here or does this directive only
278 // limit the parser?
279 }
280
281 void emitAbiVersion(int AbiVersion) override {
282 ELFObjectWriter &W = getStreamer().getWriter();
283 unsigned Flags = W.getELFHeaderEFlags();
284 Flags &= ~ELF::EF_PPC64_ABI;
285 Flags |= (AbiVersion & ELF::EF_PPC64_ABI);
286 W.setELFHeaderEFlags(Flags);
287 }
288
289 void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) override {
290
291 // encodePPC64LocalEntryOffset will report an error if it cannot
292 // encode LocalOffset.
293 unsigned Encoded = encodePPC64LocalEntryOffset(LocalOffset);
294
295 unsigned Other = S->getOther();
296 Other &= ~ELF::STO_PPC64_LOCAL_MASK;
297 Other |= Encoded;
298 S->setOther(Other);
299
300 // For GAS compatibility, unless we already saw a .abiversion directive,
301 // set e_flags to indicate ELFv2 ABI.
302 ELFObjectWriter &W = getStreamer().getWriter();
303 unsigned Flags = W.getELFHeaderEFlags();
304 if ((Flags & ELF::EF_PPC64_ABI) == 0)
305 W.setELFHeaderEFlags(Flags | 2);
306 }
307
308 void emitAssignment(MCSymbol *S, const MCExpr *Value) override {
309 auto *Symbol = static_cast<MCSymbolELF *>(S);
310
311 // When encoding an assignment to set symbol A to symbol B, also copy
312 // the st_other bits encoding the local entry point offset.
313 if (copyLocalEntry(Symbol, Value))
314 UpdateOther.insert(Symbol);
315 else
316 UpdateOther.erase(Symbol);
317 }
318
319 void finish() override {
320 for (auto *Sym : UpdateOther)
321 if (Sym->isVariable())
322 copyLocalEntry(Sym, Sym->getVariableValue());
323
324 // Clear the set of symbols that needs to be updated so the streamer can
325 // be reused without issues.
326 UpdateOther.clear();
327 }
328
329private:
330 SmallPtrSet<MCSymbolELF *, 32> UpdateOther;
331
332 bool copyLocalEntry(MCSymbolELF *D, const MCExpr *S) {
334 if (!Ref)
335 return false;
336 auto &RhsSym = static_cast<const MCSymbolELF &>(Ref->getSymbol());
337 unsigned Other = D->getOther();
338 Other &= ~ELF::STO_PPC64_LOCAL_MASK;
339 Other |= RhsSym.getOther() & ELF::STO_PPC64_LOCAL_MASK;
340 D->setOther(Other);
341 return true;
342 }
343
344 unsigned encodePPC64LocalEntryOffset(const MCExpr *LocalOffset) {
345 MCAssembler &MCA = getStreamer().getAssembler();
346 int64_t Offset;
347 if (!LocalOffset->evaluateAsAbsolute(Offset, MCA))
348 MCA.getContext().reportError(LocalOffset->getLoc(),
349 ".localentry expression must be absolute");
350
351 switch (Offset) {
352 default:
354 LocalOffset->getLoc(), ".localentry expression must be a power of 2");
355 return 0;
356 case 0:
357 return 0;
358 case 1:
359 return 1 << ELF::STO_PPC64_LOCAL_BIT;
360 case 4:
361 case 8:
362 case 16:
363 case 32:
364 case 64:
366 }
367 }
368};
369
370class PPCTargetMachOStreamer : public PPCTargetStreamer {
371public:
372 PPCTargetMachOStreamer(MCStreamer &S) : PPCTargetStreamer(S) {}
373
374 void emitTCEntry(const MCSymbol &S, PPCMCExpr::Specifier Kind) override {
375 llvm_unreachable("Unknown pseudo-op: .tc");
376 }
377
378 void emitMachine(StringRef CPU) override {
379 // FIXME: We should update the CPUType, CPUSubType in the Object file if
380 // the new values are different from the defaults.
381 }
382
383 void emitAbiVersion(int AbiVersion) override {
384 llvm_unreachable("Unknown pseudo-op: .abiversion");
385 }
386
387 void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) override {
388 llvm_unreachable("Unknown pseudo-op: .localentry");
389 }
390};
391
392class PPCTargetXCOFFStreamer : public PPCTargetStreamer {
393public:
394 PPCTargetXCOFFStreamer(MCStreamer &S) : PPCTargetStreamer(S) {}
395
396 void emitTCEntry(const MCSymbol &S, PPCMCExpr::Specifier Kind) override {
397 const MCAsmInfo &MAI = Streamer.getContext().getAsmInfo();
398 const unsigned PointerSize = MAI.getCodePointerSize();
399 Streamer.emitValueToAlignment(Align(PointerSize));
400 Streamer.emitValue(MCSymbolRefExpr::create(&S, Kind, Streamer.getContext()),
401 PointerSize);
402 }
403
404 void emitMachine(StringRef CPU) override {
405 static_cast<XCOFFObjectWriter &>(Streamer.getAssemblerPtr()->getWriter())
406 .setCPU(CPU);
407 }
408
409 void emitAbiVersion(int AbiVersion) override {
410 llvm_unreachable("ABI-version pseudo-ops are invalid for XCOFF.");
411 }
412
413 void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) override {
414 llvm_unreachable("Local-entry pseudo-ops are invalid for XCOFF.");
415 }
416};
417
418} // end anonymous namespace
419
422 MCInstPrinter *InstPrint) {
423 return new PPCTargetAsmStreamer(S, OS);
424}
425
429
430static MCTargetStreamer *
432 const Triple &TT = STI.getTargetTriple();
433 if (TT.isOSBinFormatELF())
434 return new PPCTargetELFStreamer(S);
435 if (TT.isOSBinFormatXCOFF())
436 return new PPCTargetXCOFFStreamer(S);
437 return new PPCTargetMachOStreamer(S);
438}
439
441 unsigned SyntaxVariant,
442 const MCAsmInfo &MAI,
443 const MCInstrInfo &MII,
444 const MCRegisterInfo &MRI) {
445 return new PPCInstPrinter(MAI, MII, MRI, T);
446}
447
448namespace {
449
450class PPCMCInstrAnalysis : public MCInstrAnalysis {
451public:
452 explicit PPCMCInstrAnalysis(const MCInstrInfo *Info)
453 : MCInstrAnalysis(Info) {}
454
455 bool evaluateBranch(const MCInst &Inst, uint64_t Addr, uint64_t Size,
456 uint64_t &Target) const override {
457 unsigned NumOps = Inst.getNumOperands();
458 if (NumOps == 0 ||
459 Info->get(Inst.getOpcode()).operands()[NumOps - 1].OperandType !=
461 return false;
462 Target = Addr + Inst.getOperand(NumOps - 1).getImm() * Size;
463 return true;
464 }
465};
466
467} // end anonymous namespace
468
470 return new PPCMCInstrAnalysis(Info);
471}
472
477 // Register the MC asm info.
479
480 // Register the MC instruction info.
482
483 // Register the MC register info.
485
486 // Register the MC subtarget info.
488
489 // Register the MC instruction analyzer.
491
492 // Register the MC Code Emitter
494
495 // Register the asm backend.
497
498 // Register the elf streamer.
500
501 // Register the XCOFF streamer.
503
504 // Register the object target streamer.
507
508 // Register the asm target streamer.
510
511 // Register the null target streamer.
513
514 // Register the MCInstPrinter.
516 }
517}
unsigned uint64_t
static MCTargetStreamer * createNullTargetStreamer(MCStreamer &S)
#define X(NUM, ENUM, NAME)
Definition ELF.h:857
static GCRegistry::Add< ShadowStackGC > C("shadow-stack", "Very portable GC for uncooperative code generators")
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
#define LLVM_ABI
Definition Compiler.h:215
#define LLVM_EXTERNAL_VISIBILITY
Definition Compiler.h:132
const size_t AbstractManglingParser< Derived, Alloc >::NumOps
#define RegName(no)
static LVOptions Options
Definition LVOptions.cpp:25
Register Reg
#define T
static MCTargetStreamer * createAsmTargetStreamer(MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint)
static MCInstPrinter * createPPCMCInstPrinter(const Triple &T, unsigned SyntaxVariant, const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
static MCTargetStreamer * createObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI)
LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializePowerPCTargetMC()
static MCInstrAnalysis * createPPCMCInstrAnalysis(const MCInstrInfo *Info)
static MCAsmInfo * createPPCMCAsmInfo(const MCRegisterInfo &MRI, const Triple &TheTriple, const MCTargetOptions &Options)
static MCSubtargetInfo * createPPCMCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef FS)
static MCRegisterInfo * createPPCMCRegisterInfo(const Triple &TT)
static MCInstrInfo * createPPCMCInstrInfo()
SI optimize exec mask operations pre RA
Func getContext().diagnose(DiagnosticInfoUnsupported(Func
This file defines the SmallPtrSet class.
std::unique_ptr< MCStreamer > && Streamer
This class is intended to be used as a base class for asm properties and features specific to the tar...
Definition MCAsmInfo.h:67
void addInitialFrameState(const MCCFIInstruction &Inst)
Definition MCAsmInfo.cpp:39
void printExpr(raw_ostream &, const MCExpr &) const
unsigned getCodePointerSize() const
Get the code pointer size in bytes.
Definition MCAsmInfo.h:454
MCContext & getContext() const
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.
Definition MCDwarf.h:628
LLVM_ABI void reportError(SMLoc L, const Twine &Msg)
SMLoc getLoc() const
Definition MCExpr.h:86
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
unsigned getNumOperands() const
Definition MCInst.h:212
unsigned getOpcode() const
Definition MCInst.h:202
const MCOperand & getOperand(unsigned i) const
Definition MCInst.h:210
Describe properties that are true of each instruction in the target description file.
Interface to description of machine instruction set.
Definition MCInstrInfo.h:27
int64_t getImm() const
Definition MCInst.h:84
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
virtual int64_t getDwarfRegNum(MCRegister Reg, bool isEH) const
Map a target register to an equivalent dwarf register number.
Wrapper class representing physical registers. Should be passed by value.
Definition MCRegister.h:41
Streaming machine code generation interface.
Definition MCStreamer.h:222
Generic base class for all target subtargets.
const Triple & getTargetTriple() const
LLVM_ABI unsigned getOther() const
LLVM_ABI void setOther(unsigned Other)
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx, SMLoc Loc=SMLoc())
Definition MCExpr.h:213
StringRef getSymbolTableName() const
bool hasRename() const
LLVM_ABI void print(raw_ostream &OS, const MCAsmInfo *MAI) const
print - Print the value to the stream OS.
Definition MCSymbol.cpp:59
StringRef getName() const
getName - Get the symbol name.
Definition MCSymbol.h:188
Target specific streamer interface.
Definition MCStreamer.h:95
MCTargetStreamer(MCStreamer &S)
~PPCTargetStreamer() override
Represent a constant reference to a string, i.e.
Definition StringRef.h:56
Target - Wrapper for Target specific information.
Triple - Helper class for working with autoconf configuration names.
Definition Triple.h:48
bool isOSBinFormatXCOFF() const
Tests whether the OS uses the XCOFF binary format.
Definition Triple.h:881
bool isPPC64() const
Tests whether the target is 64-bit PowerPC (little and big endian).
Definition Triple.h:1151
formatted_raw_ostream - A raw_ostream that wraps another one and keeps track of line and column posit...
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
constexpr char Align[]
Key for Kernel::Arg::Metadata::mAlign.
@ EF_PPC64_ABI
Definition ELF.h:418
@ STO_PPC64_LOCAL_MASK
Definition ELF.h:424
@ STO_PPC64_LOCAL_BIT
Definition ELF.h:423
const char * stripRegisterPrefix(const char *RegName)
stripRegisterPrefix - This method strips the character prefix from a register name so that only the n...
MCRegister getRegNumForOperand(const MCInstrDesc &Desc, MCRegister Reg, unsigned OpNo)
getRegNumForOperand - some operands use different numbering schemes for the same registers.
static bool isVRRegister(MCRegister Reg)
static bool isVFRegister(MCRegister Reg)
This is an optimization pass for GlobalISel generic memory operations.
@ Offset
Definition DWP.cpp:577
Target & getThePPC64LETarget()
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
Definition Casting.h:643
Target & getThePPC32Target()
MCAsmBackend * createPPCAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
Op::Description Desc
RelativeUniformCounterPtr ValuesPtrExpr VTableAddr Value
Definition InstrProf.h:143
unsigned Log2_32(uint32_t Value)
Return the floor log base 2 of the specified value, -1 if the value is zero.
Definition MathExtras.h:326
MCStreamer * createPPCXCOFFStreamer(const Triple &, MCContext &, std::unique_ptr< MCAsmBackend > &&MAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter)
@ Ref
The access may reference the value stored in memory.
Definition ModRef.h:32
Target & getThePPC64Target()
@ Other
Any other memory.
Definition ModRef.h:68
MCCodeEmitter * createPPCMCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
Target & getThePPC32LETarget()
MCStreamer * createPPCELFStreamer(const Triple &, MCContext &, std::unique_ptr< MCAsmBackend > &&MAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter)
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 RegisterXCOFFStreamer(Target &T, Target::XCOFFStreamerCtorTy Fn)
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)