AsmPrinterInlineAsm.cpp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. //===-- AsmPrinterInlineAsm.cpp - AsmPrinter Inline Asm Handling ----------===//
  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 implements the inline assembler pieces of the AsmPrinter class.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #include "llvm/ADT/SmallString.h"
  13. #include "llvm/ADT/SmallVector.h"
  14. #include "llvm/ADT/Twine.h"
  15. #include "llvm/CodeGen/AsmPrinter.h"
  16. #include "llvm/CodeGen/MachineBasicBlock.h"
  17. #include "llvm/CodeGen/MachineFunction.h"
  18. #include "llvm/CodeGen/MachineModuleInfo.h"
  19. #include "llvm/CodeGen/TargetInstrInfo.h"
  20. #include "llvm/CodeGen/TargetRegisterInfo.h"
  21. #include "llvm/IR/Constants.h"
  22. #include "llvm/IR/DataLayout.h"
  23. #include "llvm/IR/DiagnosticInfo.h"
  24. #include "llvm/IR/InlineAsm.h"
  25. #include "llvm/IR/LLVMContext.h"
  26. #include "llvm/IR/Module.h"
  27. #include "llvm/MC/MCAsmInfo.h"
  28. #include "llvm/MC/MCParser/MCTargetAsmParser.h"
  29. #include "llvm/MC/MCStreamer.h"
  30. #include "llvm/MC/MCSubtargetInfo.h"
  31. #include "llvm/MC/MCSymbol.h"
  32. #include "llvm/MC/TargetRegistry.h"
  33. #include "llvm/Support/ErrorHandling.h"
  34. #include "llvm/Support/MemoryBuffer.h"
  35. #include "llvm/Support/SourceMgr.h"
  36. #include "llvm/Support/raw_ostream.h"
  37. #include "llvm/Target/TargetMachine.h"
  38. using namespace llvm;
  39. #define DEBUG_TYPE "asm-printer"
  40. unsigned AsmPrinter::addInlineAsmDiagBuffer(StringRef AsmStr,
  41. const MDNode *LocMDNode) const {
  42. MCContext &Context = MMI->getContext();
  43. Context.initInlineSourceManager();
  44. SourceMgr &SrcMgr = *Context.getInlineSourceManager();
  45. std::vector<const MDNode *> &LocInfos = Context.getLocInfos();
  46. std::unique_ptr<MemoryBuffer> Buffer;
  47. // The inline asm source manager will outlive AsmStr, so make a copy of the
  48. // string for SourceMgr to own.
  49. Buffer = MemoryBuffer::getMemBufferCopy(AsmStr, "<inline asm>");
  50. // Tell SrcMgr about this buffer, it takes ownership of the buffer.
  51. unsigned BufNum = SrcMgr.AddNewSourceBuffer(std::move(Buffer), SMLoc());
  52. // Store LocMDNode in DiagInfo, using BufNum as an identifier.
  53. if (LocMDNode) {
  54. LocInfos.resize(BufNum);
  55. LocInfos[BufNum - 1] = LocMDNode;
  56. }
  57. return BufNum;
  58. }
  59. /// EmitInlineAsm - Emit a blob of inline asm to the output streamer.
  60. void AsmPrinter::emitInlineAsm(StringRef Str, const MCSubtargetInfo &STI,
  61. const MCTargetOptions &MCOptions,
  62. const MDNode *LocMDNode,
  63. InlineAsm::AsmDialect Dialect) const {
  64. assert(!Str.empty() && "Can't emit empty inline asm block");
  65. // Remember if the buffer is nul terminated or not so we can avoid a copy.
  66. bool isNullTerminated = Str.back() == 0;
  67. if (isNullTerminated)
  68. Str = Str.substr(0, Str.size()-1);
  69. // If the output streamer does not have mature MC support or the integrated
  70. // assembler has been disabled or not required, just emit the blob textually.
  71. // Otherwise parse the asm and emit it via MC support.
  72. // This is useful in case the asm parser doesn't handle something but the
  73. // system assembler does.
  74. const MCAsmInfo *MCAI = TM.getMCAsmInfo();
  75. assert(MCAI && "No MCAsmInfo");
  76. if (!MCAI->useIntegratedAssembler() &&
  77. !MCAI->parseInlineAsmUsingAsmParser() &&
  78. !OutStreamer->isIntegratedAssemblerRequired()) {
  79. emitInlineAsmStart();
  80. OutStreamer->emitRawText(Str);
  81. emitInlineAsmEnd(STI, nullptr);
  82. return;
  83. }
  84. unsigned BufNum = addInlineAsmDiagBuffer(Str, LocMDNode);
  85. SourceMgr &SrcMgr = *MMI->getContext().getInlineSourceManager();
  86. SrcMgr.setIncludeDirs(MCOptions.IASSearchPaths);
  87. std::unique_ptr<MCAsmParser> Parser(
  88. createMCAsmParser(SrcMgr, OutContext, *OutStreamer, *MAI, BufNum));
  89. // Do not use assembler-level information for parsing inline assembly.
  90. OutStreamer->setUseAssemblerInfoForParsing(false);
  91. // We create a new MCInstrInfo here since we might be at the module level
  92. // and not have a MachineFunction to initialize the TargetInstrInfo from and
  93. // we only need MCInstrInfo for asm parsing. We create one unconditionally
  94. // because it's not subtarget dependent.
  95. std::unique_ptr<MCInstrInfo> MII(TM.getTarget().createMCInstrInfo());
  96. assert(MII && "Failed to create instruction info");
  97. std::unique_ptr<MCTargetAsmParser> TAP(TM.getTarget().createMCAsmParser(
  98. STI, *Parser, *MII, MCOptions));
  99. if (!TAP)
  100. report_fatal_error("Inline asm not supported by this streamer because"
  101. " we don't have an asm parser for this target\n");
  102. Parser->setAssemblerDialect(Dialect);
  103. Parser->setTargetParser(*TAP.get());
  104. // Enable lexing Masm binary and hex integer literals in intel inline
  105. // assembly.
  106. if (Dialect == InlineAsm::AD_Intel)
  107. Parser->getLexer().setLexMasmIntegers(true);
  108. emitInlineAsmStart();
  109. // Don't implicitly switch to the text section before the asm.
  110. (void)Parser->Run(/*NoInitialTextSection*/ true,
  111. /*NoFinalize*/ true);
  112. emitInlineAsmEnd(STI, &TAP->getSTI());
  113. }
  114. static void EmitInlineAsmStr(const char *AsmStr, const MachineInstr *MI,
  115. MachineModuleInfo *MMI, const MCAsmInfo *MAI,
  116. AsmPrinter *AP, uint64_t LocCookie,
  117. raw_ostream &OS) {
  118. bool InputIsIntelDialect = MI->getInlineAsmDialect() == InlineAsm::AD_Intel;
  119. if (InputIsIntelDialect) {
  120. // Switch to the inline assembly variant.
  121. OS << "\t.intel_syntax\n\t";
  122. }
  123. int CurVariant = -1; // The number of the {.|.|.} region we are in.
  124. const char *LastEmitted = AsmStr; // One past the last character emitted.
  125. unsigned NumOperands = MI->getNumOperands();
  126. int AsmPrinterVariant;
  127. if (InputIsIntelDialect)
  128. AsmPrinterVariant = 1; // X86MCAsmInfo.cpp's AsmWriterFlavorTy::Intel.
  129. else
  130. AsmPrinterVariant = MMI->getTarget().unqualifiedInlineAsmVariant();
  131. // FIXME: Should this happen for `asm inteldialect` as well?
  132. if (!InputIsIntelDialect && MAI->getEmitGNUAsmStartIndentationMarker())
  133. OS << '\t';
  134. while (*LastEmitted) {
  135. switch (*LastEmitted) {
  136. default: {
  137. // Not a special case, emit the string section literally.
  138. const char *LiteralEnd = LastEmitted+1;
  139. while (*LiteralEnd && *LiteralEnd != '{' && *LiteralEnd != '|' &&
  140. *LiteralEnd != '}' && *LiteralEnd != '$' && *LiteralEnd != '\n')
  141. ++LiteralEnd;
  142. if (CurVariant == -1 || CurVariant == AsmPrinterVariant)
  143. OS.write(LastEmitted, LiteralEnd - LastEmitted);
  144. LastEmitted = LiteralEnd;
  145. break;
  146. }
  147. case '\n':
  148. ++LastEmitted; // Consume newline character.
  149. OS << '\n'; // Indent code with newline.
  150. break;
  151. case '$': {
  152. ++LastEmitted; // Consume '$' character.
  153. bool Done = true;
  154. // Handle escapes.
  155. switch (*LastEmitted) {
  156. default: Done = false; break;
  157. case '$': // $$ -> $
  158. if (!InputIsIntelDialect)
  159. if (CurVariant == -1 || CurVariant == AsmPrinterVariant)
  160. OS << '$';
  161. ++LastEmitted; // Consume second '$' character.
  162. break;
  163. case '(': // $( -> same as GCC's { character.
  164. ++LastEmitted; // Consume '(' character.
  165. if (CurVariant != -1)
  166. report_fatal_error("Nested variants found in inline asm string: '" +
  167. Twine(AsmStr) + "'");
  168. CurVariant = 0; // We're in the first variant now.
  169. break;
  170. case '|':
  171. ++LastEmitted; // Consume '|' character.
  172. if (CurVariant == -1)
  173. OS << '|'; // This is gcc's behavior for | outside a variant.
  174. else
  175. ++CurVariant; // We're in the next variant.
  176. break;
  177. case ')': // $) -> same as GCC's } char.
  178. ++LastEmitted; // Consume ')' character.
  179. if (CurVariant == -1)
  180. OS << '}'; // This is gcc's behavior for } outside a variant.
  181. else
  182. CurVariant = -1;
  183. break;
  184. }
  185. if (Done) break;
  186. bool HasCurlyBraces = false;
  187. if (*LastEmitted == '{') { // ${variable}
  188. ++LastEmitted; // Consume '{' character.
  189. HasCurlyBraces = true;
  190. }
  191. // If we have ${:foo}, then this is not a real operand reference, it is a
  192. // "magic" string reference, just like in .td files. Arrange to call
  193. // PrintSpecial.
  194. if (HasCurlyBraces && *LastEmitted == ':') {
  195. ++LastEmitted;
  196. const char *StrStart = LastEmitted;
  197. const char *StrEnd = strchr(StrStart, '}');
  198. if (!StrEnd)
  199. report_fatal_error("Unterminated ${:foo} operand in inline asm"
  200. " string: '" + Twine(AsmStr) + "'");
  201. if (CurVariant == -1 || CurVariant == AsmPrinterVariant)
  202. AP->PrintSpecial(MI, OS, StringRef(StrStart, StrEnd - StrStart));
  203. LastEmitted = StrEnd+1;
  204. break;
  205. }
  206. const char *IDStart = LastEmitted;
  207. const char *IDEnd = IDStart;
  208. while (isDigit(*IDEnd))
  209. ++IDEnd;
  210. unsigned Val;
  211. if (StringRef(IDStart, IDEnd-IDStart).getAsInteger(10, Val))
  212. report_fatal_error("Bad $ operand number in inline asm string: '" +
  213. Twine(AsmStr) + "'");
  214. LastEmitted = IDEnd;
  215. if (Val >= NumOperands - 1)
  216. report_fatal_error("Invalid $ operand number in inline asm string: '" +
  217. Twine(AsmStr) + "'");
  218. char Modifier[2] = { 0, 0 };
  219. if (HasCurlyBraces) {
  220. // If we have curly braces, check for a modifier character. This
  221. // supports syntax like ${0:u}, which correspond to "%u0" in GCC asm.
  222. if (*LastEmitted == ':') {
  223. ++LastEmitted; // Consume ':' character.
  224. if (*LastEmitted == 0)
  225. report_fatal_error("Bad ${:} expression in inline asm string: '" +
  226. Twine(AsmStr) + "'");
  227. Modifier[0] = *LastEmitted;
  228. ++LastEmitted; // Consume modifier character.
  229. }
  230. if (*LastEmitted != '}')
  231. report_fatal_error("Bad ${} expression in inline asm string: '" +
  232. Twine(AsmStr) + "'");
  233. ++LastEmitted; // Consume '}' character.
  234. }
  235. // Okay, we finally have a value number. Ask the target to print this
  236. // operand!
  237. if (CurVariant == -1 || CurVariant == AsmPrinterVariant) {
  238. unsigned OpNo = InlineAsm::MIOp_FirstOperand;
  239. bool Error = false;
  240. // Scan to find the machine operand number for the operand.
  241. for (; Val; --Val) {
  242. if (OpNo >= MI->getNumOperands())
  243. break;
  244. unsigned OpFlags = MI->getOperand(OpNo).getImm();
  245. OpNo += InlineAsm::getNumOperandRegisters(OpFlags) + 1;
  246. }
  247. // We may have a location metadata attached to the end of the
  248. // instruction, and at no point should see metadata at any
  249. // other point while processing. It's an error if so.
  250. if (OpNo >= MI->getNumOperands() || MI->getOperand(OpNo).isMetadata()) {
  251. Error = true;
  252. } else {
  253. unsigned OpFlags = MI->getOperand(OpNo).getImm();
  254. ++OpNo; // Skip over the ID number.
  255. // FIXME: Shouldn't arch-independent output template handling go into
  256. // PrintAsmOperand?
  257. // Labels are target independent.
  258. if (MI->getOperand(OpNo).isBlockAddress()) {
  259. const BlockAddress *BA = MI->getOperand(OpNo).getBlockAddress();
  260. MCSymbol *Sym = AP->GetBlockAddressSymbol(BA);
  261. Sym->print(OS, AP->MAI);
  262. MMI->getContext().registerInlineAsmLabel(Sym);
  263. } else if (MI->getOperand(OpNo).isMBB()) {
  264. const MCSymbol *Sym = MI->getOperand(OpNo).getMBB()->getSymbol();
  265. Sym->print(OS, AP->MAI);
  266. } else if (InlineAsm::isMemKind(OpFlags)) {
  267. Error = AP->PrintAsmMemoryOperand(
  268. MI, OpNo, Modifier[0] ? Modifier : nullptr, OS);
  269. } else {
  270. Error = AP->PrintAsmOperand(MI, OpNo,
  271. Modifier[0] ? Modifier : nullptr, OS);
  272. }
  273. }
  274. if (Error) {
  275. std::string msg;
  276. raw_string_ostream Msg(msg);
  277. Msg << "invalid operand in inline asm: '" << AsmStr << "'";
  278. MMI->getModule()->getContext().emitError(LocCookie, Msg.str());
  279. }
  280. }
  281. break;
  282. }
  283. }
  284. }
  285. if (InputIsIntelDialect)
  286. OS << "\n\t.att_syntax";
  287. OS << '\n' << (char)0; // null terminate string.
  288. }
  289. /// This method formats and emits the specified machine instruction that is an
  290. /// inline asm.
  291. void AsmPrinter::emitInlineAsm(const MachineInstr *MI) const {
  292. assert(MI->isInlineAsm() && "printInlineAsm only works on inline asms");
  293. // Count the number of register definitions to find the asm string.
  294. unsigned NumDefs = 0;
  295. for (; MI->getOperand(NumDefs).isReg() && MI->getOperand(NumDefs).isDef();
  296. ++NumDefs)
  297. assert(NumDefs != MI->getNumOperands()-2 && "No asm string?");
  298. assert(MI->getOperand(NumDefs).isSymbol() && "No asm string?");
  299. // Disassemble the AsmStr, printing out the literal pieces, the operands, etc.
  300. const char *AsmStr = MI->getOperand(NumDefs).getSymbolName();
  301. // If this asmstr is empty, just print the #APP/#NOAPP markers.
  302. // These are useful to see where empty asm's wound up.
  303. if (AsmStr[0] == 0) {
  304. OutStreamer->emitRawComment(MAI->getInlineAsmStart());
  305. OutStreamer->emitRawComment(MAI->getInlineAsmEnd());
  306. return;
  307. }
  308. // Emit the #APP start marker. This has to happen even if verbose-asm isn't
  309. // enabled, so we use emitRawComment.
  310. OutStreamer->emitRawComment(MAI->getInlineAsmStart());
  311. // Get the !srcloc metadata node if we have it, and decode the loc cookie from
  312. // it.
  313. uint64_t LocCookie = 0;
  314. const MDNode *LocMD = nullptr;
  315. for (const MachineOperand &MO : llvm::reverse(MI->operands())) {
  316. if (MO.isMetadata() && (LocMD = MO.getMetadata()) &&
  317. LocMD->getNumOperands() != 0) {
  318. if (const ConstantInt *CI =
  319. mdconst::dyn_extract<ConstantInt>(LocMD->getOperand(0))) {
  320. LocCookie = CI->getZExtValue();
  321. break;
  322. }
  323. }
  324. }
  325. // Emit the inline asm to a temporary string so we can emit it through
  326. // EmitInlineAsm.
  327. SmallString<256> StringData;
  328. raw_svector_ostream OS(StringData);
  329. AsmPrinter *AP = const_cast<AsmPrinter*>(this);
  330. EmitInlineAsmStr(AsmStr, MI, MMI, MAI, AP, LocCookie, OS);
  331. // Emit warnings if we use reserved registers on the clobber list, as
  332. // that might lead to undefined behaviour.
  333. SmallVector<Register, 8> RestrRegs;
  334. const TargetRegisterInfo *TRI = MF->getSubtarget().getRegisterInfo();
  335. // Start with the first operand descriptor, and iterate over them.
  336. for (unsigned I = InlineAsm::MIOp_FirstOperand, NumOps = MI->getNumOperands();
  337. I < NumOps; ++I) {
  338. const MachineOperand &MO = MI->getOperand(I);
  339. if (!MO.isImm())
  340. continue;
  341. unsigned Flags = MO.getImm();
  342. if (InlineAsm::getKind(Flags) == InlineAsm::Kind_Clobber) {
  343. Register Reg = MI->getOperand(I + 1).getReg();
  344. if (!TRI->isAsmClobberable(*MF, Reg))
  345. RestrRegs.push_back(Reg);
  346. }
  347. // Skip to one before the next operand descriptor, if it exists.
  348. I += InlineAsm::getNumOperandRegisters(Flags);
  349. }
  350. if (!RestrRegs.empty()) {
  351. std::string Msg = "inline asm clobber list contains reserved registers: ";
  352. ListSeparator LS;
  353. for (const Register &RR : RestrRegs) {
  354. Msg += LS;
  355. Msg += TRI->getName(RR);
  356. }
  357. const char *Note =
  358. "Reserved registers on the clobber list may not be "
  359. "preserved across the asm statement, and clobbering them may "
  360. "lead to undefined behaviour.";
  361. MMI->getModule()->getContext().diagnose(DiagnosticInfoInlineAsm(
  362. LocCookie, Msg, DiagnosticSeverity::DS_Warning));
  363. MMI->getModule()->getContext().diagnose(
  364. DiagnosticInfoInlineAsm(LocCookie, Note, DiagnosticSeverity::DS_Note));
  365. }
  366. emitInlineAsm(OS.str(), getSubtargetInfo(), TM.Options.MCOptions, LocMD,
  367. MI->getInlineAsmDialect());
  368. // Emit the #NOAPP end marker. This has to happen even if verbose-asm isn't
  369. // enabled, so we use emitRawComment.
  370. OutStreamer->emitRawComment(MAI->getInlineAsmEnd());
  371. }
  372. /// PrintSpecial - Print information related to the specified machine instr
  373. /// that is independent of the operand, and may be independent of the instr
  374. /// itself. This can be useful for portably encoding the comment character
  375. /// or other bits of target-specific knowledge into the asmstrings. The
  376. /// syntax used is ${:comment}. Targets can override this to add support
  377. /// for their own strange codes.
  378. void AsmPrinter::PrintSpecial(const MachineInstr *MI, raw_ostream &OS,
  379. StringRef Code) const {
  380. if (Code == "private") {
  381. const DataLayout &DL = MF->getDataLayout();
  382. OS << DL.getPrivateGlobalPrefix();
  383. } else if (Code == "comment") {
  384. OS << MAI->getCommentString();
  385. } else if (Code == "uid") {
  386. // Comparing the address of MI isn't sufficient, because machineinstrs may
  387. // be allocated to the same address across functions.
  388. // If this is a new LastFn instruction, bump the counter.
  389. if (LastMI != MI || LastFn != getFunctionNumber()) {
  390. ++Counter;
  391. LastMI = MI;
  392. LastFn = getFunctionNumber();
  393. }
  394. OS << Counter;
  395. } else {
  396. std::string msg;
  397. raw_string_ostream Msg(msg);
  398. Msg << "Unknown special formatter '" << Code
  399. << "' for machine instr: " << *MI;
  400. report_fatal_error(Twine(Msg.str()));
  401. }
  402. }
  403. void AsmPrinter::PrintSymbolOperand(const MachineOperand &MO, raw_ostream &OS) {
  404. assert(MO.isGlobal() && "caller should check MO.isGlobal");
  405. getSymbolPreferLocal(*MO.getGlobal())->print(OS, MAI);
  406. printOffset(MO.getOffset(), OS);
  407. }
  408. /// PrintAsmOperand - Print the specified operand of MI, an INLINEASM
  409. /// instruction, using the specified assembler variant. Targets should
  410. /// override this to format as appropriate for machine specific ExtraCodes
  411. /// or when the arch-independent handling would be too complex otherwise.
  412. bool AsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
  413. const char *ExtraCode, raw_ostream &O) {
  414. // Does this asm operand have a single letter operand modifier?
  415. if (ExtraCode && ExtraCode[0]) {
  416. if (ExtraCode[1] != 0) return true; // Unknown modifier.
  417. // https://gcc.gnu.org/onlinedocs/gccint/Output-Template.html
  418. const MachineOperand &MO = MI->getOperand(OpNo);
  419. switch (ExtraCode[0]) {
  420. default:
  421. return true; // Unknown modifier.
  422. case 'a': // Print as memory address.
  423. if (MO.isReg()) {
  424. PrintAsmMemoryOperand(MI, OpNo, nullptr, O);
  425. return false;
  426. }
  427. LLVM_FALLTHROUGH; // GCC allows '%a' to behave like '%c' with immediates.
  428. case 'c': // Substitute immediate value without immediate syntax
  429. if (MO.isImm()) {
  430. O << MO.getImm();
  431. return false;
  432. }
  433. if (MO.isGlobal()) {
  434. PrintSymbolOperand(MO, O);
  435. return false;
  436. }
  437. return true;
  438. case 'n': // Negate the immediate constant.
  439. if (!MO.isImm())
  440. return true;
  441. O << -MO.getImm();
  442. return false;
  443. case 's': // The GCC deprecated s modifier
  444. if (!MO.isImm())
  445. return true;
  446. O << ((32 - MO.getImm()) & 31);
  447. return false;
  448. }
  449. }
  450. return true;
  451. }
  452. bool AsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNo,
  453. const char *ExtraCode, raw_ostream &O) {
  454. // Target doesn't support this yet!
  455. return true;
  456. }
  457. void AsmPrinter::emitInlineAsmStart() const {}
  458. void AsmPrinter::emitInlineAsmEnd(const MCSubtargetInfo &StartInfo,
  459. const MCSubtargetInfo *EndInfo) const {}