Home | History | Annotate | Download | only in TableGen

Lines Matching defs:String

116 static cl::opt<std::string>
153 std::string Name;
156 std::string ClassName;
159 /// is the literal token string, for an operand it is the TableGen class (or
161 std::string ValueName;
165 std::string PredicateMethod;
169 std::string RenderMethod;
173 std::string ParserMethod;
386 /// AsmString - The assembly string for this instruction (with variants
388 std::string AsmString;
406 std::string ConversionFnKind;
528 std::string getEnumName() const {
561 std::string RegisterPrefix;
580 std::map<std::string, ClassInfo*> TokenClasses;
668 /// TokenizeAsmString - Tokenize a simplified assembly string.
670 StringRef String = AsmString;
673 for (unsigned i = 0, e = String.size(); i != e; ++i) {
674 switch (String[i]) {
683 AsmOperands.push_back(AsmOperand(String.slice(Prev, i)));
686 if (!isspace(String[i]) && String[i] != ',')
687 AsmOperands.push_back(AsmOperand(String.substr(i, 1)));
693 AsmOperands.push_back(AsmOperand(String.slice(Prev, i)));
697 assert(i != String.size() && "Invalid quoted character");
698 AsmOperands.push_back(AsmOperand(String.substr(i, 1)));
704 AsmOperands.push_back(AsmOperand(String.slice(Prev, i)));
709 if (i + 1 == String.size() || String[i + 1] != '{') {
714 StringRef::iterator End = std::find(String.begin() + i, String.end(),'}');
715 assert(End != String.end() && "Missing brace in operand reference!");
716 size_t EndPos = End - String.begin();
717 AsmOperands.push_back(AsmOperand(String.slice(i, EndPos+1)));
725 AsmOperands.push_back(AsmOperand(String.slice(Prev, i)));
734 if (InTok && Prev != String.size())
735 AsmOperands.push_back(AsmOperand(String.substr(Prev)));
738 // simple string, not a $foo variable or a singleton register.
750 // Reject matchables with no .s string.
752 throw TGError(TheDef->getLoc(), "instruction with empty asm string");
756 if (AsmString.find('\n') != std::string::npos)
761 // Remove comments from the asm string. We know that the asmstring only
775 std::set<std::string> OperandNames;
823 std::string Err = "unable to find register for '" + RegName.str() +
828 static std::string getEnumNameForToken(StringRef Str) {
829 std::string Res;
1161 std::string CommentDelimiter = AsmParser->getValueAsString("CommentDelimiter");
1365 /// matching string (e.g. "movsx $src, $dst"), determine what the class of the
1410 "' that doesn't appear in asm string!");
1448 const std::string &OpName = OpInfo->Name;
1463 "' that doesn't appear in asm string!");
1489 std::string ConvertFnBody;
1493 std::set<std::string> GeneratedFns;
1511 std::string TargetOperandClass = Target.getName() + "Operand";
1518 std::string AsmMatchConverter =
1521 std::string Signature = "ConvertCustom_" + AsmMatchConverter;
1538 std::string Signature = "Convert";
1539 std::string CaseBody;
1589 std::string N = getQualifiedName(OpInfo.Register);
1754 /// EmitMatchTokenString - Emit the function to match a token string to the
1778 /// EmitMatchRegisterName - Emit the function to match a string to the target
1825 std::string ClassName =
1837 std::string CondStorage = SFI.TheDef->getValueAsString("AssemblerCondString");
1873 static std::string GetAliasRequiredFeatures(Record *R,
1876 std::string Result;
1913 std::map<std::string, std::vector<Record*> > AliasesFromMnemonic;
1921 // by the string remapper.
1923 for (std::map<std::string, std::vector<Record*> >::iterator
1931 std::string MatchCode;
1936 std::string FeatureMask = GetAliasRequiredFeatures(R, Info);
1952 throw TGError(R->getLoc(), "MnemonicAlias to the same string");
2127 std::string ClassName = AsmParser->getValueAsString("AsmParserClassName");
2427 std::string InsnCleanupFn =