Home
last modified time | relevance | path

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

12345678910

/external/llvm/unittests/Option/
DOptionParsingTest.cpp69 unsigned MAI, MAC; in TEST() local
70 InputArgList AL = T.ParseArgs(Args, MAI, MAC); in TEST()
112 unsigned MAI, MAC; in TEST() local
115 InputArgList AL = T.ParseArgs(Args, MAI, MAC, in TEST()
123 AL = T.ParseArgs(Args, MAI, MAC, in TEST()
131 AL = T.ParseArgs(NewArgs, MAI, MAC); in TEST()
140 unsigned MAI, MAC; in TEST() local
143 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST()
149 unsigned MAI, MAC; in TEST() local
152 InputArgList AL = T.ParseArgs(MyArgs, MAI, MAC); in TEST()
[all …]
/external/llvm/lib/MC/
DMCAsmStreamer.cpp44 const MCAsmInfo *MAI; member in __anonae619c620111::MCAsmStreamer
67 MAI(Context.getAsmInfo()), InstPrinter(printer), Emitter(emitter), in MCAsmStreamer()
312 OS.PadToColumn(MAI->getCommentColumn()); in EmitCommentsAndEOL()
314 OS << MAI->getCommentString() << ' ' << Comments.substr(0, Position) <<'\n'; in EmitCommentsAndEOL()
330 OS << MAI->getCommentString() << T; in emitRawComment()
336 if (c.equals(StringRef(MAI->getSeparatorString()))) in addExplicitComment()
340 ExplicitCommentToEmit.append(MAI->getCommentString()); in addExplicitComment()
349 ExplicitCommentToEmit.append(MAI->getCommentString()); in addExplicitComment()
356 } else if (c.startswith(StringRef(MAI->getCommentString()))) { in addExplicitComment()
380 Section->PrintSwitchToSection(*MAI, OS, Subsection); in ChangeSection()
[all …]
DMCSectionELF.cpp25 const MCAsmInfo &MAI) const { in ShouldOmitSectionDirective()
30 return MAI.shouldOmitSectionDirective(Name); in ShouldOmitSectionDirective()
56 void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &MAI, in PrintSwitchToSection() argument
60 if (ShouldOmitSectionDirective(SectionName, MAI)) { in PrintSwitchToSection()
64 Subsection->print(OS, &MAI); in PrintSwitchToSection()
74 if (MAI.usesSunStyleELFSectionSwitchSyntax() && in PrintSwitchToSection()
119 if (MAI.getCommentString()[0] == '@') in PrintSwitchToSection()
157 Subsection->print(OS, &MAI); in PrintSwitchToSection()
DMCSymbol.cpp54 void MCSymbol::print(raw_ostream &OS, const MCAsmInfo *MAI) const { in print()
59 if (!MAI || MAI->isValidUnquotedName(Name)) { in print()
64 if (MAI && !MAI->supportsNameQuoting()) in print()
DMCSectionCOFF.cpp23 const MCAsmInfo &MAI) const { in ShouldOmitSectionDirective()
40 void MCSectionCOFF::PrintSwitchToSection(const MCAsmInfo &MAI, in PrintSwitchToSection() argument
45 if (ShouldOmitSectionDirective(SectionName, MAI)) { in PrintSwitchToSection()
98 COMDATSymbol->print(OS, &MAI); in PrintSwitchToSection()
/external/swiftshader/third_party/LLVM/lib/Target/PTX/
DPTXMCAsmStreamer.cpp32 const MCAsmInfo &MAI; member in __anon39f62b4c0111::PTXMCAsmStreamer
49 : MCStreamer(Context), OS(os), MAI(Context.getAsmInfo()), in PTXMCAsmStreamer()
214 OS.PadToColumn(MAI.getCommentColumn()); in EmitCommentsAndEOL()
216 OS << MAI.getCommentString() << ' ' << Comments.substr(0, Position) << '\n'; in EmitCommentsAndEOL()
240 OS << *Symbol << MAI.getLabelSuffix(); in EmitLabel()
338 OS << MAI.getData8bitsDirective(AddrSpace); in EmitBytes()
346 if (MAI.getAscizDirective() && Data.back() == 0) { in EmitBytes()
347 OS << MAI.getAscizDirective(); in EmitBytes()
350 OS << MAI.getAsciiDirective(); in EmitBytes()
364 case 1: Directive = MAI.getData8bitsDirective(AddrSpace); break; in EmitValueImpl()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/
DMangler.cpp48 static bool NameNeedsEscaping(StringRef Str, const MCAsmInfo &MAI) { in NameNeedsEscaping() argument
53 if (!MAI.doesAllowNameToStartWithDigit() && Str[0] >= '0' && Str[0] <= '9') in NameNeedsEscaping()
58 bool AllowPeriod = MAI.doesAllowPeriodsInName(); in NameNeedsEscaping()
68 const MCAsmInfo &MAI) { in appendMangledName() argument
71 if (!MAI.doesAllowNameToStartWithDigit() && Str[0] >= '0' && Str[0] <= '9') { in appendMangledName()
76 bool AllowPeriod = MAI.doesAllowPeriodsInName(); in appendMangledName()
109 const MCAsmInfo &MAI = Context.getAsmInfo(); in getNameWithPrefix() local
116 const char *Prefix = MAI.getPrivateGlobalPrefix(); in getNameWithPrefix()
119 const char *Prefix = MAI.getLinkerPrivateGlobalPrefix(); in getNameWithPrefix()
123 const char *Prefix = MAI.getGlobalPrefix(); in getNameWithPrefix()
[all …]
DTargetInstrInfo.cpp154 const MCAsmInfo &MAI) const { in getInlineAsmLength()
161 if (*Str == '\n' || strncmp(Str, MAI.getSeparatorString(), in getInlineAsmLength()
162 strlen(MAI.getSeparatorString())) == 0) in getInlineAsmLength()
165 Length += MAI.getMaxInstLength(); in getInlineAsmLength()
168 if (atInsnStart && strncmp(Str, MAI.getCommentString(), in getInlineAsmLength()
169 strlen(MAI.getCommentString())) == 0) in getInlineAsmLength()
/external/swiftshader/third_party/LLVM/lib/MC/
DMCAsmStreamer.cpp40 const MCAsmInfo &MAI; member in __anon0e941e8e0111::MCAsmStreamer
69 : MCStreamer(Context), OS(os), MAI(Context.getAsmInfo()), in MCAsmStreamer()
290 OS.PadToColumn(MAI.getCommentColumn()); in EmitCommentsAndEOL()
292 OS << MAI.getCommentString() << ' ' << Comments.substr(0, Position) << '\n'; in EmitCommentsAndEOL()
309 Section->PrintSwitchToSection(MAI, OS); in ChangeSection()
331 OS << *Symbol << MAI.getLabelSuffix(); in EmitLabel()
340 case MCAF_Code16: OS << '\t'<< MAI.getCode16Directive(); break; in EmitAssemblerFlag()
341 case MCAF_Code32: OS << '\t'<< MAI.getCode32Directive(); break; in EmitAssemblerFlag()
342 case MCAF_Code64: OS << '\t'<< MAI.getCode64Directive(); break; in EmitAssemblerFlag()
352 if (MAI.hasSubsectionsViaSymbols()) in EmitThumbFunc()
[all …]
DMCInst.cpp18 void MCOperand::print(raw_ostream &OS, const MCAsmInfo *MAI) const { in print()
38 void MCInst::print(raw_ostream &OS, const MCAsmInfo *MAI) const { in print()
42 getOperand(i).print(OS, MAI); in print()
47 void MCInst::dump_pretty(raw_ostream &OS, const MCAsmInfo *MAI, in dump_pretty() argument
58 getOperand(i).print(OS, MAI); in dump_pretty()
DMCSectionELF.cpp24 const MCAsmInfo &MAI) const { in ShouldOmitSectionDirective()
28 (Name == ".bss" && !MAI.usesELFSectionDirectiveForBSS())) in ShouldOmitSectionDirective()
34 void MCSectionELF::PrintSwitchToSection(const MCAsmInfo &MAI, in PrintSwitchToSection() argument
37 if (ShouldOmitSectionDirective(SectionName, MAI)) { in PrintSwitchToSection()
65 if (MAI.usesSunStyleELFSectionSwitchSyntax() && in PrintSwitchToSection()
106 if (MAI.getCommentString()[0] == '@') in PrintSwitchToSection()
DMCStreamer.cpp185 const MCAsmInfo &MAI = Context.getAsmInfo(); in EmitDataRegion() local
186 if (!MAI.getSupportsDataRegions()) return; in EmitDataRegion()
190 Twine(MAI.getDataBeginLabelName()) + in EmitDataRegion()
201 const MCAsmInfo &MAI = Context.getAsmInfo(); in EmitCodeRegion() local
202 if (!MAI.getSupportsDataRegions()) return; in EmitCodeRegion()
206 Twine(MAI.getCodeBeginLabelName()) + in EmitCodeRegion()
217 const MCAsmInfo &MAI = Context.getAsmInfo(); in EmitJumpTable8Region() local
218 if (!MAI.getSupportsDataRegions()) return; in EmitJumpTable8Region()
222 Twine(MAI.getJumpTable8BeginLabelName()) + in EmitJumpTable8Region()
233 const MCAsmInfo &MAI = Context.getAsmInfo(); in EmitJumpTable16Region() local
[all …]
/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64MCTargetDesc.cpp58 MCAsmInfo *MAI; in createAArch64MCAsmInfo() local
60 MAI = new AArch64MCAsmInfoDarwin(); in createAArch64MCAsmInfo()
63 MAI = new AArch64MCAsmInfoELF(TheTriple); in createAArch64MCAsmInfo()
69 MAI->addInitialFrameState(Inst); in createAArch64MCAsmInfo()
71 return MAI; in createAArch64MCAsmInfo()
93 const MCAsmInfo &MAI, in createAArch64MCInstPrinter() argument
97 return new AArch64InstPrinter(MAI, MII, MRI); in createAArch64MCInstPrinter()
99 return new AArch64AppleInstPrinter(MAI, MII, MRI); in createAArch64MCInstPrinter()
/external/llvm/lib/Target/Sparc/MCTargetDesc/
DSparcMCTargetDesc.cpp37 MCAsmInfo *MAI = new SparcELFMCAsmInfo(TT); in createSparcMCAsmInfo() local
40 MAI->addInitialFrameState(Inst); in createSparcMCAsmInfo()
41 return MAI; in createSparcMCAsmInfo()
46 MCAsmInfo *MAI = new SparcELFMCAsmInfo(TT); in createSparcV9MCAsmInfo() local
49 MAI->addInitialFrameState(Inst); in createSparcV9MCAsmInfo()
50 return MAI; in createSparcV9MCAsmInfo()
123 const MCAsmInfo &MAI, in createSparcMCInstPrinter() argument
126 return new SparcInstPrinter(MAI, MII, MRI); in createSparcMCInstPrinter()
/external/swiftshader/third_party/LLVM/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp114 *MAI)); in EmitInlineAsm()
163 OutStreamer.EmitRawText(Twine("\t")+MAI->getCommentString()+ in EmitInlineAsm()
164 MAI->getInlineAsmStart()); in EmitInlineAsm()
165 OutStreamer.EmitRawText(Twine("\t")+MAI->getCommentString()+ in EmitInlineAsm()
166 MAI->getInlineAsmEnd()); in EmitInlineAsm()
173 OutStreamer.EmitRawText(Twine("\t")+MAI->getCommentString()+ in EmitInlineAsm()
174 MAI->getInlineAsmStart()); in EmitInlineAsm()
199 int AsmPrinterVariant = MAI->getAssemblerDialect(); in EmitInlineAsm()
367 OutStreamer.EmitRawText(Twine("\t")+MAI->getCommentString()+ in EmitInlineAsm()
368 MAI->getInlineAsmEnd()); in EmitInlineAsm()
[all …]
DAsmPrinter.cpp98 TM(tm), MAI(tm.getMCAsmInfo()), in AsmPrinter()
169 if (MAI->hasSingleParameterDotFile()) { in doInitialization()
189 if (MAI->doesSupportDebugInformation()) in doInitialization()
192 switch (MAI->getExceptionHandlingType()) { in doInitialization()
219 if (MAI->getWeakDefDirective() != 0) { in EmitLinkage()
229 } else if (MAI->getLinkOnceDirective() != 0) { in EmitLinkage()
277 if (MAI->hasDotTypeDotSizeDirective()) in EmitGlobalVariable()
306 if (MAI->hasMachoZeroFillDirective()) { in EmitGlobalVariable()
314 if (MAI->getLCOMMDirectiveType() != LCOMM::None && in EmitGlobalVariable()
315 (MAI->getLCOMMDirectiveType() != LCOMM::NoAlignment || Align == 1)) { in EmitGlobalVariable()
[all …]
/external/llvm/lib/MC/MCDisassembler/
DDisassembler.cpp51 const MCAsmInfo *MAI = TheTarget->createMCAsmInfo(*MRI, TT); in LLVMCreateDisasmCPUFeatures() local
52 if (!MAI) in LLVMCreateDisasmCPUFeatures()
65 MCContext *Ctx = new MCContext(MAI, MRI, nullptr); in LLVMCreateDisasmCPUFeatures()
84 int AsmPrinterVariant = MAI->getAssemblerDialect(); in LLVMCreateDisasmCPUFeatures()
86 Triple(TT), AsmPrinterVariant, *MAI, *MII, *MRI); in LLVMCreateDisasmCPUFeatures()
92 TheTarget, MAI, MRI, STI, MII, Ctx, DisAsm, IP); in LLVMCreateDisasmCPUFeatures()
130 const MCAsmInfo *MAI = DC->getAsmInfo(); in emitComments() local
131 const char *CommentBegin = MAI->getCommentString(); in emitComments()
132 unsigned CommentColumn = MAI->getCommentColumn(); in emitComments()
307 const MCAsmInfo *MAI = DC->getAsmInfo(); in LLVMSetDisasmOptions() local
[all …]
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCTargetDesc.cpp74 MCAsmInfo *MAI; in createPPCMCAsmInfo() local
76 MAI = new PPCMCAsmInfoDarwin(isPPC64, TheTriple); in createPPCMCAsmInfo()
78 MAI = new PPCELFMCAsmInfo(isPPC64, TheTriple); in createPPCMCAsmInfo()
84 MAI->addInitialFrameState(Inst); in createPPCMCAsmInfo()
86 return MAI; in createPPCMCAsmInfo()
119 const MCAsmInfo *MAI = Streamer.getContext().getAsmInfo(); in emitLocalEntry() local
122 S->print(OS, MAI); in emitLocalEntry()
124 LocalOffset->print(OS, MAI); in emitLocalEntry()
224 const MCAsmInfo &MAI, in createPPCMCInstPrinter() argument
227 return new PPCInstPrinter(MAI, MII, MRI, T.isOSDarwin()); in createPPCMCInstPrinter()
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/MCTargetDesc/
DPPCMCTargetDesc.cpp64 MCAsmInfo *MAI; in createPPCMCAsmInfo() local
66 MAI = new PPCMCAsmInfoDarwin(isPPC64); in createPPCMCAsmInfo()
68 MAI = new PPCLinuxMCAsmInfo(isPPC64); in createPPCMCAsmInfo()
73 MAI->addInitialFrameState(0, Dst, Src); in createPPCMCAsmInfo()
75 return MAI; in createPPCMCAsmInfo()
108 const MCAsmInfo &MAI, in createPPCMCInstPrinter() argument
110 return new PPCInstPrinter(MAI, SyntaxVariant); in createPPCMCInstPrinter()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/AsmParser/
DARMAsmLexer.cpp78 ARMBaseAsmLexer(const Target &T, const MCAsmInfo &MAI) in ARMBaseAsmLexer() argument
79 : MCTargetAsmLexer(T), AsmInfo(MAI) { in ARMBaseAsmLexer()
85 ARMAsmLexer(const Target &T, const MCRegisterInfo &MRI, const MCAsmInfo &MAI) in ARMAsmLexer() argument
86 : ARMBaseAsmLexer(T, MAI) { in ARMAsmLexer()
93 ThumbAsmLexer(const Target &T, const MCRegisterInfo &MRI,const MCAsmInfo &MAI) in ThumbAsmLexer() argument
94 : ARMBaseAsmLexer(T, MAI) { in ThumbAsmLexer()
/external/swiftshader/third_party/LLVM/lib/MC/MCDisassembler/
DDisassembler.cpp50 const MCAsmInfo *MAI = TheTarget->createMCAsmInfo(TripleName); in LLVMCreateDisasm() local
51 assert(MAI && "Unable to create target asm info!"); in LLVMCreateDisasm()
65 MCContext *Ctx = new MCContext(*MAI, *MRI, 0); in LLVMCreateDisasm()
74 int AsmPrinterVariant = MAI->getAssemblerDialect(); in LLVMCreateDisasm()
76 *MAI, *STI); in LLVMCreateDisasm()
81 TheTarget, MAI, MRI, in LLVMCreateDisasm()
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMMCTargetDesc.cpp187 MCAsmInfo *MAI; in createARMMCAsmInfo() local
189 MAI = new ARMMCAsmInfoDarwin(TheTriple); in createARMMCAsmInfo()
191 MAI = new ARMCOFFMCAsmInfoMicrosoft(); in createARMMCAsmInfo()
193 MAI = new ARMCOFFMCAsmInfoGNU(); in createARMMCAsmInfo()
195 MAI = new ARMELFMCAsmInfo(TheTriple); in createARMMCAsmInfo()
198 MAI->addInitialFrameState(MCCFIInstruction::createDefCfa(nullptr, Reg, 0)); in createARMMCAsmInfo()
200 return MAI; in createARMMCAsmInfo()
219 const MCAsmInfo &MAI, in createARMMCInstPrinter() argument
223 return new ARMInstPrinter(MAI, MII, MRI); in createARMMCInstPrinter()
/external/llvm/lib/Target/XCore/MCTargetDesc/
DXCoreMCTargetDesc.cpp55 MCAsmInfo *MAI = new XCoreMCAsmInfo(TT); in createXCoreMCAsmInfo() local
59 MAI->addInitialFrameState(Inst); in createXCoreMCAsmInfo()
61 return MAI; in createXCoreMCAsmInfo()
75 const MCAsmInfo &MAI, in createXCoreMCInstPrinter() argument
78 return new XCoreInstPrinter(MAI, MII, MRI); in createXCoreMCInstPrinter()
/external/llvm/tools/llvm-mc/
Dllvm-mc.cpp249 static int AsLexInput(SourceMgr &SrcMgr, MCAsmInfo &MAI, in AsLexInput() argument
252 AsmLexer Lexer(MAI); in AsLexInput()
350 MCAsmInfo &MAI, MCSubtargetInfo &STI, in AssembleInput() argument
353 createMCAsmParser(SrcMgr, Ctx, Str, MAI)); in AssembleInput()
424 std::unique_ptr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(*MRI, TripleName)); in main() local
425 assert(MAI && "Unable to create target asm info!"); in main()
427 MAI->setRelaxELFRelocations(RelaxELFRel); in main()
435 MAI->setCompressDebugSections(CompressDebugSections); in main()
437 MAI->setPreserveAsmComments(PreserveComments); in main()
442 MCContext Ctx(MAI.get(), MRI.get(), &MOFI, &SrcMgr); in main()
[all …]
/external/llvm/lib/Target/Lanai/InstPrinter/
DLanaiInstPrinter.cpp156 Op.getExpr()->print(OS, &MAI); in printOperand()
169 Op.getExpr()->print(OS, &MAI); in printMemImmOperand()
182 Op.getExpr()->print(OS, &MAI); in printHi16ImmOperand()
194 Op.getExpr()->print(OS, &MAI); in printHi16AndImmOperand()
206 Op.getExpr()->print(OS, &MAI); in printLo16AndImmOperand()
223 static void printMemoryImmediateOffset(const MCAsmInfo &MAI, in printMemoryImmediateOffset() argument
231 OffsetOp.getExpr()->print(OS, &MAI); in printMemoryImmediateOffset()
243 printMemoryImmediateOffset<16>(MAI, OffsetOp, OS); in printMemRiOperand()
279 printMemoryImmediateOffset<10>(MAI, OffsetOp, OS); in printMemSplsOperand()

12345678910