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 "PPCMCOptions.h"
19#include "PPCTargetStreamer.h"
20#include "PPCXCOFFStreamer.h"
23#include "llvm/ADT/StringRef.h"
26#include "llvm/MC/MCAssembler.h"
28#include "llvm/MC/MCContext.h"
29#include "llvm/MC/MCDwarf.h"
32#include "llvm/MC/MCExpr.h"
34#include "llvm/MC/MCInstrInfo.h"
37#include "llvm/MC/MCStreamer.h"
39#include "llvm/MC/MCSymbol.h"
40#include "llvm/MC/MCSymbolELF.h"
51
52using namespace llvm;
53
54#define GET_INSTRINFO_MC_DESC
55#define ENABLE_INSTR_PREDICATE_VERIFIER
56#include "PPCGenInstrInfo.inc"
57
58#define GET_SUBTARGETINFO_MC_DESC
59#include "PPCGenSubtargetInfo.inc"
60
61#define GET_REGINFO_MC_DESC
62#include "PPCGenRegisterInfo.inc"
63
64#define OPTIONS_STRUCT_DEFS
65#include "PPCMCOptions.inc"
66
67/// stripRegisterPrefix - This method strips the character prefix from a
68/// register name so that only the number is left. Used by for linux asm.
69const char *PPC::stripRegisterPrefix(const char *RegName) {
70 switch (RegName[0]) {
71 case 'a':
72 if (RegName[1] == 'c' && RegName[2] == 'c')
73 return RegName + 3;
74 break;
75 case 'f':
76 if (RegName[1] == 'p')
77 return RegName + 2;
78 [[fallthrough]];
79 case 'r':
80 case 'v':
81 if (RegName[1] == 's') {
82 if (RegName[2] == 'p')
83 return RegName + 3;
84 return RegName + 2;
85 }
86 return RegName + 1;
87 case 'c':
88 if (RegName[1] == 'r')
89 return RegName + 2;
90 break;
91 case 'w':
92 // For wacc and wacc_hi
93 if (RegName[1] == 'a' && RegName[2] == 'c' && RegName[3] == 'c') {
94 if (RegName[4] == '_')
95 return RegName + 7;
96 else
97 return RegName + 4;
98 }
99 break;
100 case 'd':
101 // For dmr, dmrp, dmrrow, dmrrowp
102 if (RegName[1] == 'm' && RegName[2] == 'r') {
103 if (RegName[3] == 'r' && RegName[4] == 'o' && RegName[5] == 'w' &&
104 RegName[6] == 'p')
105 return RegName + 7;
106 else if (RegName[3] == 'r' && RegName[4] == 'o' && RegName[5] == 'w')
107 return RegName + 6;
108 else if (RegName[3] == 'p')
109 return RegName + 4;
110 else
111 return RegName + 3;
112 }
113 break;
114 }
115
116 return RegName;
117}
118
119/// getRegNumForOperand - some operands use different numbering schemes
120/// for the same registers. For example, a VSX instruction may have any of
121/// vs0-vs63 allocated whereas an Altivec instruction could only have
122/// vs32-vs63 allocated (numbered as v0-v31). This function returns the actual
123/// register number needed for the opcode/operand number combination.
124/// The operand number argument will be useful when we need to extend this
125/// to instructions that use both Altivec and VSX numbering (for different
126/// operands).
128 unsigned OpNo) {
129 int16_t regClass = Desc.operands()[OpNo].RegClass;
130 switch (regClass) {
131 // We store F0-F31, VF0-VF31 in MCOperand and it should be F0-F31,
132 // VSX32-VSX63 during encoding/disassembling
133 case PPC::VSSRCRegClassID:
134 case PPC::VSFRCRegClassID:
135 if (PPC::isVFRegister(Reg))
136 return PPC::VSX32 + (Reg - PPC::VF0);
137 break;
138 // We store VSL0-VSL31, V0-V31 in MCOperand and it should be VSL0-VSL31,
139 // VSX32-VSX63 during encoding/disassembling
140 case PPC::VSRCRegClassID:
141 if (PPC::isVRRegister(Reg))
142 return PPC::VSX32 + (Reg - PPC::V0);
143 break;
144 // Other RegClass doesn't need mapping
145 default:
146 break;
147 }
148 return Reg;
149}
150
152
153// Pin the vtable to this file.
155
157 MCInstrInfo *X = new MCInstrInfo();
158 InitPPCMCInstrInfo(X);
159 return X;
160}
161
163 bool isPPC64 = TT.isPPC64();
164 unsigned Flavour = isPPC64 ? 0 : 1;
165 unsigned RA = isPPC64 ? PPC::LR8 : PPC::LR;
166
168 InitPPCMCRegisterInfo(X, RA, Flavour, Flavour);
169 return X;
170}
171
173 StringRef CPU, StringRef FS) {
174 // Set some default feature to MC layer.
175 std::string FullFS = std::string(FS);
176
177 if (TT.isOSAIX()) {
178 if (!FullFS.empty())
179 FullFS = "+aix," + FullFS;
180 else
181 FullFS = "+aix";
182 }
183
184 return createPPCMCSubtargetInfoImpl(TT, CPU, /*TuneCPU*/ CPU, FullFS);
185}
186
188 const Triple &TheTriple,
189 const MCTargetOptions &Options) {
190 bool isPPC64 = TheTriple.isPPC64();
191
192 MCAsmInfo *MAI;
193 if (TheTriple.isOSBinFormatXCOFF())
194 MAI = new PPCXCOFFMCAsmInfo(isPPC64, TheTriple, Options);
195 else
196 MAI = new PPCELFMCAsmInfo(isPPC64, TheTriple, Options);
197
198 // Initial state of the frame pointer is R1.
199 unsigned Reg = isPPC64 ? PPC::X1 : PPC::R1;
200 MCCFIInstruction Inst =
201 MCCFIInstruction::cfiDefCfa(nullptr, MRI.getDwarfRegNum(Reg, true), 0);
202 MAI->addInitialFrameState(Inst);
203
204 return MAI;
205}
206
207namespace {
208
209class PPCTargetAsmStreamer : public PPCTargetStreamer {
210 formatted_raw_ostream &OS;
211
212public:
213 PPCTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
214 : PPCTargetStreamer(S), OS(OS) {}
215
216 void emitTCEntry(const MCSymbol &S, PPCMCExpr::Specifier Kind) override {
217 if (getContext().isXCOFF()) {
218 MCSymbolXCOFF *TCSym =
219 static_cast<const MCSectionXCOFF *>(Streamer.getCurrentSectionOnly())
220 ->getQualNameSymbol();
221 // On AIX, we have TLS variable offsets (symbol@({gd|ie|le|ld}) depending
222 // on the TLS access method (or model). For the general-dynamic access
223 // method, we also have region handle (symbol@m) for each variable. For
224 // local-dynamic, there is a module handle (_$TLSML[TC]@ml) for all
225 // variables. Finally for local-exec and initial-exec, we have a thread
226 // pointer, in r13 for 64-bit mode and returned by .__get_tpointer for
227 // 32-bit mode.
228 if (Kind == PPC::S_AIX_TLSGD || Kind == PPC::S_AIX_TLSGDM ||
229 Kind == PPC::S_AIX_TLSIE || Kind == PPC::S_AIX_TLSLE ||
230 Kind == PPC::S_AIX_TLSLD || Kind == PPC::S_AIX_TLSML)
231 OS << "\t.tc " << TCSym->getName() << "," << S.getName() << "@"
232 << getContext().getAsmInfo().getSpecifierName(Kind) << '\n';
233 else
234 OS << "\t.tc " << TCSym->getName() << "," << S.getName() << '\n';
235
236 if (TCSym->hasRename())
237 Streamer.emitXCOFFRenameDirective(TCSym, TCSym->getSymbolTableName());
238 return;
239 }
240
241 OS << "\t.tc " << S.getName() << "[TC]," << S.getName() << '\n';
242 }
243
244 void emitMachine(StringRef CPU) override {
245 const Triple &TT = Streamer.getContext().getTargetTriple();
246 if (TT.isOSBinFormatXCOFF())
247 OS << "\t.machine\t" << '\"' << CPU << '\"' << '\n';
248 else
249 OS << "\t.machine " << CPU << '\n';
250 }
251
252 void emitAbiVersion(int AbiVersion) override {
253 OS << "\t.abiversion " << AbiVersion << '\n';
254 }
255
256 void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) override {
257 const MCAsmInfo &MAI = Streamer.getContext().getAsmInfo();
258
259 OS << "\t.localentry\t";
260 S->print(OS, MAI);
261 OS << ", ";
262 MAI.printExpr(OS, *LocalOffset);
263 OS << '\n';
264 }
265};
266
267class PPCTargetELFStreamer : public PPCTargetStreamer {
268public:
269 PPCTargetELFStreamer(MCStreamer &S) : PPCTargetStreamer(S) {}
270
271 MCELFStreamer &getStreamer() {
272 return static_cast<MCELFStreamer &>(Streamer);
273 }
274
275 void emitTCEntry(const MCSymbol &S, PPCMCExpr::Specifier Kind) override {
276 // Creates a R_PPC64_TOC relocation
277 Streamer.emitValueToAlignment(Align(8));
278 Streamer.emitSymbolValue(&S, 8);
279 }
280
281 void emitMachine(StringRef CPU) override {
282 // FIXME: Is there anything to do in here or does this directive only
283 // limit the parser?
284 }
285
286 void emitAbiVersion(int AbiVersion) override {
287 ELFObjectWriter &W = getStreamer().getWriter();
288 unsigned Flags = W.getELFHeaderEFlags();
289 Flags &= ~ELF::EF_PPC64_ABI;
290 Flags |= (AbiVersion & ELF::EF_PPC64_ABI);
291 W.setELFHeaderEFlags(Flags);
292 }
293
294 void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) override {
295
296 // encodePPC64LocalEntryOffset will report an error if it cannot
297 // encode LocalOffset.
298 unsigned Encoded = encodePPC64LocalEntryOffset(LocalOffset);
299
300 unsigned Other = S->getOther();
301 Other &= ~ELF::STO_PPC64_LOCAL_MASK;
302 Other |= Encoded;
303 S->setOther(Other);
304
305 // For GAS compatibility, unless we already saw a .abiversion directive,
306 // set e_flags to indicate ELFv2 ABI.
307 ELFObjectWriter &W = getStreamer().getWriter();
308 unsigned Flags = W.getELFHeaderEFlags();
309 if ((Flags & ELF::EF_PPC64_ABI) == 0)
310 W.setELFHeaderEFlags(Flags | 2);
311 }
312
313 void emitAssignment(MCSymbol *S, const MCExpr *Value) override {
314 auto *Symbol = static_cast<MCSymbolELF *>(S);
315
316 // When encoding an assignment to set symbol A to symbol B, also copy
317 // the st_other bits encoding the local entry point offset.
318 if (copyLocalEntry(Symbol, Value))
319 UpdateOther.insert(Symbol);
320 else
321 UpdateOther.erase(Symbol);
322 }
323
324 void finish() override {
325 for (auto *Sym : UpdateOther)
326 if (Sym->isVariable())
327 copyLocalEntry(Sym, Sym->getVariableValue());
328
329 // Clear the set of symbols that needs to be updated so the streamer can
330 // be reused without issues.
331 UpdateOther.clear();
332 }
333
334private:
335 SmallPtrSet<MCSymbolELF *, 32> UpdateOther;
336
337 bool copyLocalEntry(MCSymbolELF *D, const MCExpr *S) {
339 if (!Ref)
340 return false;
341 auto &RhsSym = static_cast<const MCSymbolELF &>(Ref->getSymbol());
342 unsigned Other = D->getOther();
343 Other &= ~ELF::STO_PPC64_LOCAL_MASK;
344 Other |= RhsSym.getOther() & ELF::STO_PPC64_LOCAL_MASK;
345 D->setOther(Other);
346 return true;
347 }
348
349 unsigned encodePPC64LocalEntryOffset(const MCExpr *LocalOffset) {
350 MCAssembler &MCA = getStreamer().getAssembler();
351 int64_t Offset;
352 if (!LocalOffset->evaluateAsAbsolute(Offset, MCA))
353 MCA.getContext().reportError(LocalOffset->getLoc(),
354 ".localentry expression must be absolute");
355
356 switch (Offset) {
357 default:
359 LocalOffset->getLoc(), ".localentry expression must be a power of 2");
360 return 0;
361 case 0:
362 return 0;
363 case 1:
364 return 1 << ELF::STO_PPC64_LOCAL_BIT;
365 case 4:
366 case 8:
367 case 16:
368 case 32:
369 case 64:
371 }
372 }
373};
374
375class PPCTargetMachOStreamer : public PPCTargetStreamer {
376public:
377 PPCTargetMachOStreamer(MCStreamer &S) : PPCTargetStreamer(S) {}
378
379 void emitTCEntry(const MCSymbol &S, PPCMCExpr::Specifier Kind) override {
380 llvm_unreachable("Unknown pseudo-op: .tc");
381 }
382
383 void emitMachine(StringRef CPU) override {
384 // FIXME: We should update the CPUType, CPUSubType in the Object file if
385 // the new values are different from the defaults.
386 }
387
388 void emitAbiVersion(int AbiVersion) override {
389 llvm_unreachable("Unknown pseudo-op: .abiversion");
390 }
391
392 void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) override {
393 llvm_unreachable("Unknown pseudo-op: .localentry");
394 }
395};
396
397class PPCTargetXCOFFStreamer : public PPCTargetStreamer {
398public:
399 PPCTargetXCOFFStreamer(MCStreamer &S) : PPCTargetStreamer(S) {}
400
401 void emitTCEntry(const MCSymbol &S, PPCMCExpr::Specifier Kind) override {
402 const MCAsmInfo &MAI = Streamer.getContext().getAsmInfo();
403 const unsigned PointerSize = MAI.getCodePointerSize();
404 Streamer.emitValueToAlignment(Align(PointerSize));
405 Streamer.emitValue(MCSymbolRefExpr::create(&S, Kind, Streamer.getContext()),
406 PointerSize);
407 }
408
409 void emitMachine(StringRef CPU) override {
410 static_cast<XCOFFObjectWriter &>(Streamer.getAssemblerPtr()->getWriter())
411 .setCPU(CPU);
412 }
413
414 void emitAbiVersion(int AbiVersion) override {
415 llvm_unreachable("ABI-version pseudo-ops are invalid for XCOFF.");
416 }
417
418 void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) override {
419 llvm_unreachable("Local-entry pseudo-ops are invalid for XCOFF.");
420 }
421};
422
423} // end anonymous namespace
424
427 MCInstPrinter *InstPrint) {
428 return new PPCTargetAsmStreamer(S, OS);
429}
430
434
435static MCTargetStreamer *
437 const Triple &TT = STI.getTargetTriple();
438 if (TT.isOSBinFormatELF())
439 return new PPCTargetELFStreamer(S);
440 if (TT.isOSBinFormatXCOFF())
441 return new PPCTargetXCOFFStreamer(S);
442 return new PPCTargetMachOStreamer(S);
443}
444
446 unsigned SyntaxVariant,
447 const MCAsmInfo &MAI,
448 const MCInstrInfo &MII,
449 const MCRegisterInfo &MRI) {
450 return new PPCInstPrinter(MAI, MII, MRI, T);
451}
452
453namespace {
454
455class PPCMCInstrAnalysis : public MCInstrAnalysis {
456public:
457 explicit PPCMCInstrAnalysis(const MCInstrInfo *Info)
458 : MCInstrAnalysis(Info) {}
459
460 bool evaluateBranch(const MCInst &Inst, uint64_t Addr, uint64_t Size,
461 uint64_t &Target) const override {
462 unsigned NumOps = Inst.getNumOperands();
463 if (NumOps == 0 ||
464 Info->get(Inst.getOpcode()).operands()[NumOps - 1].OperandType !=
466 return false;
467 Target = Addr + Inst.getOperand(NumOps - 1).getImm() * Size;
468 return true;
469 }
470};
471
472} // end anonymous namespace
473
475 return new PPCMCInstrAnalysis(Info);
476}
477
483 // Register the MC asm info.
485
486 // Register the MC instruction info.
488
489 // Register the MC register info.
491
492 // Register the MC subtarget info.
494
495 // Register the MC instruction analyzer.
497
498 // Register the MC Code Emitter
500
501 // Register the asm backend.
503
504 // Register the elf streamer.
506
507 // Register the XCOFF streamer.
509
510 // Register the object target streamer.
513
514 // Register the asm target streamer.
516
517 // Register the null target streamer.
519
520 // Register the MCInstPrinter.
522 }
523}
uint64_t uint64_t
static MCTargetStreamer * createNullTargetStreamer(MCStreamer &S)
#define X(NUM, ENUM, NAME)
Definition ELF.h:665
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:211
#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()
MachineRegisterInfo & MRI
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:43
void printExpr(raw_ostream &, const MCExpr &) const
unsigned getCodePointerSize() const
Get the code pointer size in bytes.
Definition MCAsmInfo.h:457
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:631
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...
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:60
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:884
bool isPPC64() const
Tests whether the target is 64-bit PowerPC (little and big endian).
Definition Triple.h:1157
formatted_raw_ostream - A raw_ostream that wraps another one and keeps track of line and column posit...
Registers T with cl::parseCommandLineOptions.
#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:226
@ STO_PPC64_LOCAL_MASK
Definition ELF.h:232
@ STO_PPC64_LOCAL_BIT
Definition ELF.h:231
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)