Home
last modified time | relevance | path

Searched refs:MAI (Results 1 – 25 of 228) sorted by relevance

12345678910

/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCAsmStreamer.cpp49 const MCAsmInfo *MAI; member in __anon0673dc030111::MCAsmStreamer
78 MAI(Context.getAsmInfo()), InstPrinter(printer), in MCAsmStreamer()
464 OS.PadToColumn(MAI->getCommentColumn()); in EmitCommentsAndEOL()
466 OS << MAI->getCommentString() << ' ' << Comments.substr(0, Position) <<'\n'; in EmitCommentsAndEOL()
482 OS << MAI->getCommentString() << T; in emitRawComment()
488 if (c == MAI->getSeparatorString()) in addExplicitComment()
492 ExplicitCommentToEmit.append(MAI->getCommentString()); in addExplicitComment()
501 ExplicitCommentToEmit.append(MAI->getCommentString()); in addExplicitComment()
508 } else if (c.starts_with(StringRef(MAI->getCommentString()))) { in addExplicitComment()
514 ExplicitCommentToEmit.append(MAI->getCommentString()); in addExplicitComment()
[all …]
H A DMCSymbol.cpp58 void MCSymbol::print(raw_ostream &OS, const MCAsmInfo *MAI) const { in print()
63 if (!MAI || MAI->isValidUnquotedName(Name)) { in print()
68 if (MAI && !MAI->supportsNameQuoting()) in print()
H A DMCSectionWasm.cpp20 const MCAsmInfo &MAI) const { in shouldOmitSectionDirective()
21 return MAI.shouldOmitSectionDirective(Name); in shouldOmitSectionDirective()
47 void MCSectionWasm::printSwitchToSection(const MCAsmInfo &MAI, const Triple &T, in printSwitchToSection() argument
51 if (shouldOmitSectionDirective(getName(), MAI)) { in printSwitchToSection()
79 if (MAI.getCommentString()[0] == '@') in printSwitchToSection()
H A DMCSectionELF.cpp23 const MCAsmInfo &MAI) const { in shouldOmitSectionDirective()
27 return MAI.shouldOmitSectionDirective(Name); in shouldOmitSectionDirective()
53 void MCSectionELF::printSwitchToSection(const MCAsmInfo &MAI, const Triple &T, in printSwitchToSection() argument
56 if (shouldOmitSectionDirective(getName(), MAI)) { in printSwitchToSection()
68 if (MAI.usesSunStyleELFSectionSwitchSyntax() && in printSwitchToSection()
134 if (MAI.getCommentString()[0] == '@') in printSwitchToSection()
H A DMCSectionCOFF.cpp20 const MCAsmInfo &MAI) const { in shouldOmitSectionDirective()
37 void MCSectionCOFF::printSwitchToSection(const MCAsmInfo &MAI, const Triple &T, in printSwitchToSection() argument
41 if (shouldOmitSectionDirective(getName(), MAI)) { in printSwitchToSection()
103 COMDATSymbol->print(OS, &MAI); in printSwitchToSection()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVModuleAnalysis.cpp133 MAI.MaxID = 0; in setBaseInfo()
135 MAI.MS[i].clear(); in setBaseInfo()
136 MAI.RegisterAliasTable.clear(); in setBaseInfo()
137 MAI.InstrsToDelete.clear(); in setBaseInfo()
138 MAI.FuncMap.clear(); in setBaseInfo()
139 MAI.GlobalVarList.clear(); in setBaseInfo()
140 MAI.ExtInstSetMap.clear(); in setBaseInfo()
141 MAI.Reqs.clear(); in setBaseInfo()
142 MAI.Reqs.initAvailableCapabilities(*ST); in setBaseInfo()
147 MAI.Addr = static_cast<SPIRV::AddressingModel::AddressingModel>( in setBaseInfo()
[all …]
H A DSPIRVAsmPrinter.cpp95 SPIRV::ModuleAnalysisInfo *MAI; member in __anonbc5f3f620111::SPIRVAsmPrinter
153 MAI->BBNumToRegMap.clear(); in emitFunctionBodyEnd()
159 LabelInst.addOperand(MCOperand::createReg(MAI->getOrCreateMBBRegister(MBB))); in emitOpLabel()
243 MCInstLowering.lower(MI, TmpInst, MAI); in outputInstruction()
251 if (!MAI->getSkipEmission(MI)) in emitInstruction()
256 if (!MAI->hasMBBRegister(*MI->getParent()) && isFuncOrHeaderInstr(MI, TII) && in emitInstruction()
265 for (MachineInstr *MI : MAI->getMSInstrs(MSType)) in outputModuleSection()
271 for (auto &Str : MAI->SrcExt) { in outputDebugSourceAndStrings()
280 Inst.addOperand(MCOperand::createImm(static_cast<unsigned>(MAI->SrcLang))); in outputDebugSourceAndStrings()
282 MCOperand::createImm(static_cast<unsigned>(MAI->SrcLangVersion))); in outputDebugSourceAndStrings()
[all …]
H A DSPIRVMCInstLower.cpp24 SPIRV::ModuleAnalysisInfo *MAI) const { in lower()
36 Register FuncReg = MAI->getFuncReg(dyn_cast<Function>(MO.getGlobal())); in lower()
48 MCOp = MCOperand::createReg(MAI->getOrCreateMBBRegister(*MO.getMBB())); in lower()
51 Register NewReg = MAI->getRegisterAlias(MF, MO.getReg()); in lower()
57 Register Reg = MAI->getExtInstSetReg(MO.getImm()); in lower()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZInstPrinter.cpp27 void SystemZInstPrinter::printAddress(const MCAsmInfo *MAI, MCRegister Base, in printAddress() argument
30 printOperand(DispMO, MAI, O); in printAddress()
34 printFormattedRegName(MAI, Index, O); in printAddress()
38 printFormattedRegName(MAI, Base, O); in printAddress()
45 void SystemZInstPrinter::printOperand(const MCOperand &MO, const MCAsmInfo *MAI, in printOperand()
51 printFormattedRegName(MAI, MO.getReg(), O); in printOperand()
56 MO.getExpr()->print(O, MAI); in printOperand()
61 void SystemZInstPrinter::printFormattedRegName(const MCAsmInfo *MAI, in printFormattedRegName()
65 if (MAI->getAssemblerDialect() == AD_HLASM) { in printFormattedRegName()
74 printFormattedRegName(&MAI, Re in printRegName()
44 printOperand(const MCOperand & MO,const MCAsmInfo * MAI,raw_ostream & O) printOperand() argument
60 printFormattedRegName(const MCAsmInfo * MAI,MCRegister Reg,raw_ostream & O) const printFormattedRegName() argument
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcMCTargetDesc.cpp51 MCAsmInfo *MAI = new SparcELFMCAsmInfo(TT); in createSparcMCAsmInfo() local
54 MAI->addInitialFrameState(Inst); in createSparcMCAsmInfo()
55 return MAI; in createSparcMCAsmInfo()
61 MCAsmInfo *MAI = new SparcELFMCAsmInfo(TT); in createSparcV9MCAsmInfo() local
64 MAI->addInitialFrameState(Inst); in createSparcV9MCAsmInfo()
65 return MAI; in createSparcV9MCAsmInfo()
104 const MCAsmInfo &MAI, in createSparcMCInstPrinter() argument
107 return new SparcInstPrinter(MAI, MII, MRI); in createSparcMCInstPrinter()
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430MCTargetDesc.cpp50 MCAsmInfo *MAI = new MSP430MCAsmInfo(TT); in createMSP430MCAsmInfo() local
58 MAI->addInitialFrameState(Inst); in createMSP430MCAsmInfo()
63 MAI->addInitialFrameState(Inst2); in createMSP430MCAsmInfo()
65 return MAI; in createMSP430MCAsmInfo()
75 const MCAsmInfo &MAI, in createMSP430MCInstPrinter() argument
79 return new MSP430InstPrinter(MAI, MII, MRI); in createMSP430MCInstPrinter()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/
H A DM68kMCTargetDesc.cpp76 MCAsmInfo *MAI = new M68kELFMCAsmInfo(TT); in createM68kMCAsmInfo() local
86 MAI->addInitialFrameState(Inst); in createM68kMCAsmInfo()
91 MAI->addInitialFrameState(Inst); in createM68kMCAsmInfo()
93 return MAI; in createM68kMCAsmInfo()
104 const MCAsmInfo &MAI, in createM68kMCInstPrinter() argument
107 return new M68kInstPrinter(MAI, MII, MRI); in createM68kMCInstPrinter()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCDisassembler/
H A DDisassembler.cpp61 std::unique_ptr<const MCAsmInfo> MAI( in LLVMCreateDisasmCPUFeatures() local
63 if (!MAI) in LLVMCreateDisasmCPUFeatures()
77 new MCContext(Triple(TT), MAI.get(), MRI.get(), STI.get())); in LLVMCreateDisasmCPUFeatures()
97 int AsmPrinterVariant = MAI->getAssemblerDialect(); in LLVMCreateDisasmCPUFeatures()
99 Triple(TT), AsmPrinterVariant, *MAI, *MII, *MRI)); in LLVMCreateDisasmCPUFeatures()
104 TT, DisInfo, TagType, GetOpInfo, SymbolLookUp, TheTarget, std::move(MAI), in LLVMCreateDisasmCPUFeatures()
144 const MCAsmInfo *MAI = DC->getAsmInfo(); in emitComments() local
145 StringRef CommentBegin = MAI->getCommentString(); in emitComments()
146 unsigned CommentColumn = MAI->getCommentColumn(); in emitComments()
321 const MCAsmInfo *MAI in LLVMSetDisasmOptions()
320 const MCAsmInfo *MAI = DC->getAsmInfo(); LLVMSetDisasmOptions() local
[all...]
H A DDisassembler.h62 std::unique_ptr<const llvm::MCAsmInfo> MAI; variable
89 std::unique_ptr<const MCAsmInfo> &&MAI, in LLVMDisasmContext() argument
98 MAI(std::move(MAI)), MRI(std::move(MRI)), MSI(std::move(MSI)), in LLVMDisasmContext()
110 const MCAsmInfo *getAsmInfo() const { return MAI.get(); } in getAsmInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/MCTargetDesc/
H A DARCMCTargetDesc.cpp58 MCAsmInfo *MAI = new ARCMCAsmInfo(TT); in createARCMCAsmInfo() local
62 MAI->addInitialFrameState(Inst); in createARCMCAsmInfo()
64 return MAI; in createARCMCAsmInfo()
69 const MCAsmInfo &MAI, in createARCMCInstPrinter() argument
72 return new ARCInstPrinter(MAI, MII, MRI); in createARCMCInstPrinter()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinterInlineAsm.cpp103 createMCAsmParser(SrcMgr, OutContext, *OutStreamer, *MAI, BufNum)); in emitInlineAsm()
135 MachineModuleInfo *MMI, const MCAsmInfo *MAI, in EmitInlineAsmStr() argument
156 if (!InputIsIntelDialect && MAI->getEmitGNUAsmStartIndentationMarker()) in EmitInlineAsmStr()
301 Sym->print(OS, AP->MAI); in EmitInlineAsmStr()
305 Sym->print(OS, AP->MAI); in EmitInlineAsmStr()
341 OutStreamer->emitRawComment(MAI->getInlineAsmStart()); in emitInlineAsm()
342 OutStreamer->emitRawComment(MAI->getInlineAsmEnd()); in emitInlineAsm()
348 OutStreamer->emitRawComment(MAI->getInlineAsmStart()); in emitInlineAsm()
371 EmitInlineAsmStr(AsmStr, MI, MMI, MAI, AP, LocCookie, OS); in emitInlineAsm()
423 OutStreamer->emitRawComment(MAI->getInlineAsmEnd()); in emitInlineAsm()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCTargetDesc.cpp187 MCAsmInfo *MAI; in createPPCMCAsmInfo() local
189 MAI = new PPCXCOFFMCAsmInfo(isPPC64, TheTriple); in createPPCMCAsmInfo()
191 MAI = new PPCELFMCAsmInfo(isPPC64, TheTriple); in createPPCMCAsmInfo()
197 MAI->addInitialFrameState(Inst); in createPPCMCAsmInfo()
199 return MAI; in createPPCMCAsmInfo()
270 const MCAsmInfo *MAI = Streamer.getContext().getAsmInfo(); in emitLocalEntry() local
273 S->print(OS, MAI); in emitLocalEntry()
275 LocalOffset->print(OS, MAI); in emitLocalEntry()
418 const MCAsmInfo *MAI = Streamer.getContext().getAsmInfo(); in emitTCEntry() local
419 const unsigned PointerSize = MAI->getCodePointerSize(); in emitTCEntry()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/
H A DVEMCTargetDesc.cpp38 MCAsmInfo *MAI = new VEELFMCAsmInfo(TT); in createVEMCAsmInfo() local
41 MAI->addInitialFrameState(Inst); in createVEMCAsmInfo()
42 return MAI; in createVEMCAsmInfo()
81 const MCAsmInfo &MAI, in createVEMCInstPrinter() argument
84 return new VEInstPrinter(MAI, MII, MRI); in createVEMCInstPrinter()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmLexer.cpp34 AsmLexer::AsmLexer(const MCAsmInfo &MAI) : MAI(MAI) { in AsmLexer() argument
35 AllowAtInIdentifier = !StringRef(MAI.getCommentString()).starts_with("@"); in AsmLexer()
36 LexMotorolaIntegers = MAI.shouldUseMotorolaIntegers(); in AsmLexer()
180 if (!MAI.shouldAllowAdditionalComments()) { in LexSlash()
710 if (MAI.getRestrictCommentStringToStartOfStatement() && !IsAtStartOfStatement) in isAtStartOfComment()
713 StringRef CommentString = MAI.getCommentString(); in isAtStartOfComment()
726 return strncmp(Ptr, MAI.getSeparatorString(), in isAtStatementSeparator()
727 strlen(MAI.getSeparatorString())) == 0; in isAtStatementSeparator()
751 if (MAI.shouldAllowAdditionalComments()) in LexToken()
759 CurPtr += strlen(MAI.getSeparatorString()) - 1; in LexToken()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/MCTargetDesc/
H A DXCoreMCTargetDesc.cpp61 MCAsmInfo *MAI = new XCoreMCAsmInfo(TT); in createXCoreMCAsmInfo() local
65 MAI->addInitialFrameState(Inst); in createXCoreMCAsmInfo()
67 return MAI; in createXCoreMCAsmInfo()
72 const MCAsmInfo &MAI, in createXCoreMCInstPrinter() argument
75 return new XCoreInstPrinter(MAI, MII, MRI); in createXCoreMCInstPrinter()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/
H A DXtensaMCTargetDesc.cpp38 MCAsmInfo *MAI = new XtensaMCAsmInfo(TT); in createXtensaMCAsmInfo() local
39 return MAI; in createXtensaMCAsmInfo()
50 const MCAsmInfo &MAI, in createXtensaMCInstPrinter() argument
53 return new XtensaInstPrinter(MAI, MII, MRI); in createXtensaMCInstPrinter()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/
H A DLanaiInstPrinter.cpp159 Op.getExpr()->print(OS, &MAI); in printOperand()
172 Op.getExpr()->print(OS, &MAI); in printMemImmOperand()
185 Op.getExpr()->print(OS, &MAI); in printHi16ImmOperand()
197 Op.getExpr()->print(OS, &MAI); in printHi16AndImmOperand()
209 Op.getExpr()->print(OS, &MAI); in printLo16AndImmOperand()
226 static void printMemoryImmediateOffset(const MCAsmInfo &MAI, in printMemoryImmediateOffset() argument
234 OffsetOp.getExpr()->print(OS, &MAI); in printMemoryImmediateOffset()
246 printMemoryImmediateOffset<16>(MAI, OffsetOp, OS); in printMemRiOperand()
282 printMemoryImmediateOffset<10>(MAI, OffsetOp, OS); in printMemSplsOperand()
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/
H A DDWARFEmitterImpl.cpp
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPerfHintAnalysis.cpp354 MemAccessInfo MAI = makeMemAccessInfo(const_cast<Instruction *>(Inst)); in isLargeStride() local
355 bool IsLargeStride = MAI.isLargeStride(LastAccess); in isLargeStride()
356 if (MAI.Base) in isLargeStride()
357 LastAccess = std::move(MAI); in isLargeStride()
364 MemAccessInfo MAI; in makeMemAccessInfo() local
370 return MAI; in makeMemAccessInfo()
372 MAI.V = MO; in makeMemAccessInfo()
373 MAI.Base = GetPointerBaseWithConstantOffset(MO, MAI.Offset, *DL); in makeMemAccessInfo()
374 return MAI; in makeMemAccessInfo()
/freebsd/contrib/llvm-project/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp276 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, in AsLexInput() argument
279 AsmLexer Lexer(MAI); in AsLexInput()
316 MCAsmInfo &MAI, MCSubtargetInfo &STI, in AssembleInput() argument
319 createMCAsmParser(SrcMgr, Ctx, Str, MAI)); in AssembleInput()
395 std::unique_ptr<MCAsmInfo> MAI( in main() local
397 assert(MAI && "Unable to create target asm info!"); in main()
407 MAI->setPreserveAsmComments(PreserveComments); in main()
424 MCContext Ctx(TheTriple, MAI.get(), MRI.get(), STI.get(), &SrcMgr, in main()
448 if (MAI->getCodePointerSize() < 8) { in main()
457 if (MAI->needsDwarfSectionOffsetDirective()) { in main()
[all …]

12345678910