Home
last modified time | relevance | path

Searched refs:AsmString (Results 1 – 25 of 70) sorted by relevance

123

/external/llvm/utils/TableGen/
DAsmWriterInst.cpp60 std::string AsmString = CGI.FlattenAsmStringVariants(CGI.AsmString, Variant); in AsmWriterInst() local
62 while (LastEmitted != AsmString.size()) { in AsmWriterInst()
64 AsmString.find_first_of("$\\", LastEmitted); in AsmWriterInst()
65 if (DollarPos == std::string::npos) DollarPos = AsmString.size(); in AsmWriterInst()
70 switch (AsmString[LastEmitted]) { in AsmWriterInst()
84 AddLiteralString(std::string(1, AsmString[LastEmitted])); in AsmWriterInst()
87 } else if (AsmString[DollarPos] == '\\') { in AsmWriterInst()
88 if (DollarPos+1 != AsmString.size()) { in AsmWriterInst()
89 if (AsmString[DollarPos+1] == 'n') { in AsmWriterInst()
91 } else if (AsmString[DollarPos+1] == 't') { in AsmWriterInst()
[all …]
DAsmWriterEmitter.cpp643 std::string AsmString; member in __anon5ee6605a0211::IAPrinter
645 IAPrinter(std::string R, std::string AS) : Result(R), AsmString(AS) {} in IAPrinter()
709 StringRef ASM(AsmString); in print()
755 static unsigned CountNumOperands(StringRef AsmString, unsigned Variant) { in CountNumOperands() argument
757 CodeGenInstruction::FlattenAsmStringVariants(AsmString, Variant); in CountNumOperands()
758 AsmString = FlatAsmString; in CountNumOperands()
760 return AsmString.count(' ') + AsmString.count('\t'); in CountNumOperands()
828 CountNumOperands(CGA.ResultInst->AsmString, Variant); in EmitPrintAliasInstruction()
831 if (NumResultOps < CountNumOperands(CGA.AsmString, Variant)) in EmitPrintAliasInstruction()
834 IAPrinter IAP(CGA.Result->getAsString(), CGA.AsmString); in EmitPrintAliasInstruction()
[all …]
DCodeGenInstruction.h214 std::string AsmString; variable
284 static std::string FlattenAsmStringVariants(StringRef AsmString,
296 std::string AsmString; variable
DAsmMatcherEmitter.cpp413 std::string AsmString; member
459 : AsmVariantID(0), AsmString(CGI.AsmString), TheDef(CGI.TheDef), DefRec(&CGI), in MatchableInfo()
464 : AsmVariantID(0), AsmString(Alias->AsmString), TheDef(Alias->TheDef), in MatchableInfo()
474 : AsmVariantID(RHS.AsmVariantID), AsmString(RHS.AsmString), in MatchableInfo()
726 errs() << TheDef->getName() << " -- " << "flattened:\"" << AsmString <<"\"\n"; in dump()
844 AsmString = in initialize()
845 CodeGenInstruction::FlattenAsmStringVariants(AsmString, AsmVariantNo); in initialize()
873 StringRef String = AsmString; in addAsmOperand()
886 StringRef String = AsmString; in tokenizeAsmString()
968 if (AsmString.empty()) in validate()
[all …]
/external/llvm/test/TableGen/
DBitOffsetDecoder.td24 let AsmString = "foo $factor";
34 let AsmString = "bar $factor";
44 let AsmString = "biz $factor";
54 let AsmString = "baz $factor";
64 let AsmString = "bum $factor";
Dtrydecode-emission3.td21 let AsmString = "InstA";
34 let AsmString = "InstB";
Dtrydecode-emission2.td21 let AsmString = "InstA";
28 let AsmString = "InstB";
Dtrydecode-emission.td26 let AsmString = "InstA";
31 let AsmString = "InstB";
DAsmPredicateCondsEmission.td25 let AsmString = "foo";
/external/clang/lib/Parse/
DParseStmtAsm.cpp40 StringRef AsmString; member in __anona627ddaf0111::ClangAsmParserCallback
49 ClangAsmParserCallback(Parser &P, SourceLocation Loc, StringRef AsmString, in ClangAsmParserCallback() argument
51 : TheParser(P), AsmLoc(Loc), AsmString(AsmString), AsmToks(Toks), in ClangAsmParserCallback()
121 assert(!std::less<const char *>()(Str.begin(), AsmString.begin()) && in findTokensForString()
122 !std::less<const char *>()(AsmString.end(), Str.end())); in findTokensForString()
125 unsigned FirstCharOffset = Str.begin() - AsmString.begin(); in findTokensForString()
137 unsigned LastCharOffset = Str.end() - AsmString.begin(); in findTokensForString()
522 SmallString<512> AsmString; in ParseMicrosoftAsmStatement() local
524 if (buildMSAsmString(PP, AsmLoc, AsmToks, TokOffsets, AsmString)) in ParseMicrosoftAsmStatement()
540 llvm::MemoryBuffer::getMemBuffer(AsmString, "<MS inline asm>"); in ParseMicrosoftAsmStatement()
[all …]
/external/llvm/lib/Target/Mips/
DMipsEVAInstrInfo.td57 string AsmString = !strconcat(instr_asm, "\t$rt, $addr");
74 string AsmString = !strconcat(instr_asm, "\t$rt, $addr");
88 string AsmString = !strconcat(instr_asm, "\t$rt, $addr");
101 string AsmString = !strconcat(instr_asm, "\t$rt, $addr");
113 string AsmString = !strconcat(instr_asm, "\t$rt, $addr");
124 string AsmString = !strconcat(instr_asm, "\t$rt, $addr");
136 string AsmString = instr_asm;
146 string AsmString = !strconcat(instr_asm, "\t$hint, $addr");
DMips32r6InstrInfo.td183 string AsmString = !strconcat("cmp.", CondStr, ".", Typestr, "\t$fd, $fs, $ft");
251 string AsmString = !strconcat(instr_asm, "\t$rs, $imm");
263 string AsmString = !strconcat(instr_asm, "\t$rd, $rs, $rt, $bp");
273 string AsmString = !strconcat(instr_asm, "\t$rs, $imm");
284 string AsmString = !strconcat(instr_asm, "\t$rs, $rt, $imm");
300 string AsmString = !strconcat(instr_asm, "\t$offset");
308 string AsmString = !strconcat(instr_asm, "\t$rs, $rt, $offset");
316 string AsmString = !strconcat(instr_asm, "\t$rs, $offset");
325 string AsmString = !strconcat(instr_asm, "\t$rt, $offset");
361 string AsmString = instr_asm;
[all …]
DMicroMips64r6InstrInfo.td42 string AsmString = !strconcat(instr_asm, "\t$rt, $rs, $imm");
51 string AsmString = !strconcat(instr_asm, "\t$rt, $imm");
62 string AsmString = !strconcat(instr_asm, "\t$rt, $rs, $pos, $size");
82 string AsmString = !strconcat(instr_asm, "\t$rd, $rs, $rt, $bp");
DMicroMips32r6InstrInfo.td177 string AsmString = !strconcat(instr_asm, "\t$rt, $offset");
266 string AsmString = !strconcat(instr_asm, "\t$offset");
305 string AsmString = !strconcat(instr_asm, "\t$rd, $rt");
317 string AsmString = !strconcat(instr_asm, "\t$hint, $addr");
339 string AsmString = !strconcat(instr_asm, "\t$rt, $addr");
358 string AsmString = !strconcat(instr_asm, "\t$rt, $rs");
386 string AsmString = !strconcat(opstr, "\t$rt, $offset");
429 string AsmString = !strconcat(instr_asm, "\t$rd, $rs, $rt, $bp");
439 string AsmString = !strconcat(instr_asm, "\t$rt, $rs, $imm");
451 string AsmString = !strconcat(instr_asm, "\t$rt, $imm");
[all …]
DMipsDSPInstrInfo.td265 string AsmString = !strconcat(instr_asm, "\t$rd, $rs, $rt");
276 string AsmString = !strconcat(instr_asm, "\t$rd, $rs");
287 string AsmString = !strconcat(instr_asm, "\t$rs, $rt");
297 string AsmString = !strconcat(instr_asm, "\t$rd, $rs, $rt");
308 string AsmString = !strconcat(instr_asm, "\t$rt, $rs, $sa");
320 string AsmString = !strconcat(instr_asm, "\t$rd, $rt");
330 string AsmString = !strconcat(instr_asm, "\t$rd, $imm");
340 string AsmString = !strconcat(instr_asm, "\t$rd, $rt, $rs_sa");
351 string AsmString = !strconcat(instr_asm, "\t$rd, $rt, $rs_sa");
362 string AsmString = !strconcat(instr_asm, "\t$rd, ${index}(${base})");
[all …]
DMicroMipsDSPInstrInfo.td165 string AsmString = !strconcat(opstr, "\t$rt, $rs");
201 string AsmString = !strconcat(instr_asm, "\t$rt, $rs, $sa");
237 string AsmString = !strconcat(instr_asm, "\t$rd, $rt, $rs");
269 string AsmString = !strconcat(instr_asm, "\t$rt, $ac, $rs");
276 string AsmString = !strconcat(instr_asm, "\t$rt, $ac, $imm");
321 string AsmString = !strconcat(instr_asm, "\t$rs, $ac");
334 string AsmString = !strconcat("raddu.w.qb", "\t$rt, $rs");
343 string AsmString = !strconcat("rddsp", "\t$rt, $mask");
351 string AsmString = !strconcat("repl.qb", "\t$rt, $imm");
366 string AsmString = !strconcat("wrdsp", "\t$rt, $mask");
DMipsMSAInstrInfo.td1138 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $m");
1149 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $m");
1160 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $m");
1171 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $m");
1182 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $m");
1193 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $m");
1222 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $m");
1233 string AsmString = !strconcat(instr_asm, "\t$rd, $ws[$n]");
1244 string AsmString = !strconcat(instr_asm, "\t$wd, $ws[$n]");
1264 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $imm");
[all …]
/external/llvm/include/llvm/IR/
DInlineAsm.h46 std::string AsmString, Constraints; variable
52 InlineAsm(FunctionType *Ty, const std::string &AsmString,
64 static InlineAsm *get(FunctionType *Ty, StringRef AsmString,
83 const std::string &getAsmString() const { return AsmString; } in getAsmString()
/external/llvm/lib/IR/
DConstantsContext.h403 StringRef AsmString;
410 InlineAsmKeyType(StringRef AsmString, StringRef Constraints,
413 : AsmString(AsmString), Constraints(Constraints), FTy(FTy),
417 : AsmString(Asm->getAsmString()), Constraints(Asm->getConstraintString()),
424 AsmString == X.AsmString && Constraints == X.Constraints &&
431 AsmString == Asm->getAsmString() &&
436 return hash_combine(AsmString, Constraints, HasSideEffects, IsAlignStack,
443 return new InlineAsm(FTy, AsmString, Constraints, HasSideEffects,
DInlineAsm.cpp27 InlineAsm *InlineAsm::get(FunctionType *FTy, StringRef AsmString, in get() argument
30 InlineAsmKeyType Key(AsmString, Constraints, FTy, hasSideEffects, in get()
40 AsmString(asmString), Constraints(constraints), FTy(FTy), in InlineAsm()
/external/clang/lib/Sema/
DSemaStmtAsm.cpp150 StringLiteral *AsmString = cast<StringLiteral>(asmString); in ActOnGCCAsmStmt() local
156 assert(AsmString->isAscii()); in ActOnGCCAsmStmt()
163 Constraints, Exprs.data(), AsmString, NumClobbers, Clobbers, RParenLoc); in ActOnGCCAsmStmt()
350 AsmString, NumClobbers, Clobbers, RParenLoc); in ActOnGCCAsmStmt()
356 Diag(getLocationOfStringLiteralByte(AsmString, DiagOffs), DiagID) in ActOnGCCAsmStmt()
357 << AsmString->getSourceRange(); in ActOnGCCAsmStmt()
721 StringRef AsmString, in ActOnMSAsmStmt() argument
732 Constraints, Exprs, AsmString, in ActOnMSAsmStmt()
/external/llvm/lib/AsmParser/
DParser.cpp62 std::unique_ptr<Module> llvm::parseAssemblyString(StringRef AsmString, in parseAssemblyString() argument
66 MemoryBufferRef F(AsmString, "<string>"); in parseAssemblyString()
/external/llvm/include/llvm/AsmParser/
DParser.h54 std::unique_ptr<Module> parseAssemblyString(StringRef AsmString,
/external/llvm/lib/Target/BPF/
DBPFInstrFormats.td24 let AsmString = asmstr;
/external/llvm/include/llvm/Target/
DTarget.td329 string AsmString = ""; // The .s format to print the instruction with.
762 let AsmString = "PHINODE";
767 let AsmString = "";
773 let AsmString = "";
780 let AsmString = "";
787 let AsmString = "";
794 let AsmString = "";
800 let AsmString = "";
806 let AsmString = "";
813 let AsmString = "";
[all …]

123