Lines Matching refs:MatchTableRecord

410 struct MatchTableRecord {  struct
453 MatchTableRecord(Optional<unsigned> LabelID_, StringRef EmitStr, in MatchTableRecord() argument
462 MatchTableRecord(const MatchTableRecord &Other) = default;
463 MatchTableRecord(MatchTableRecord &&Other) = default;
473 bool operator<(const MatchTableRecord &Other) const { in operator <() argument
493 std::vector<MatchTableRecord> Contents;
504 static MatchTableRecord LineBreak;
505 static MatchTableRecord Comment(StringRef Comment) { in Comment()
506 return MatchTableRecord(None, Comment, 0, MatchTableRecord::MTRF_Comment); in Comment()
508 static MatchTableRecord Opcode(StringRef Opcode, int IndentAdjust = 0) { in Opcode()
511 ExtraFlags |= MatchTableRecord::MTRF_Indent; in Opcode()
513 ExtraFlags |= MatchTableRecord::MTRF_Outdent; in Opcode()
515 return MatchTableRecord(None, Opcode, 1, in Opcode()
516 MatchTableRecord::MTRF_CommaFollows | ExtraFlags); in Opcode()
518 static MatchTableRecord NamedValue(StringRef NamedValue) { in NamedValue()
519 return MatchTableRecord(None, NamedValue, 1, in NamedValue()
520 MatchTableRecord::MTRF_CommaFollows); in NamedValue()
522 static MatchTableRecord NamedValue(StringRef NamedValue, int64_t RawValue) { in NamedValue()
523 return MatchTableRecord(None, NamedValue, 1, in NamedValue()
524 MatchTableRecord::MTRF_CommaFollows, RawValue); in NamedValue()
526 static MatchTableRecord NamedValue(StringRef Namespace, in NamedValue()
528 return MatchTableRecord(None, (Namespace + "::" + NamedValue).str(), 1, in NamedValue()
529 MatchTableRecord::MTRF_CommaFollows); in NamedValue()
531 static MatchTableRecord NamedValue(StringRef Namespace, StringRef NamedValue, in NamedValue()
533 return MatchTableRecord(None, (Namespace + "::" + NamedValue).str(), 1, in NamedValue()
534 MatchTableRecord::MTRF_CommaFollows, RawValue); in NamedValue()
536 static MatchTableRecord IntValue(int64_t IntValue) { in IntValue()
537 return MatchTableRecord(None, llvm::to_string(IntValue), 1, in IntValue()
538 MatchTableRecord::MTRF_CommaFollows); in IntValue()
540 static MatchTableRecord Label(unsigned LabelID) { in Label()
541 return MatchTableRecord(LabelID, "Label " + llvm::to_string(LabelID), 0, in Label()
542 MatchTableRecord::MTRF_Label | in Label()
543 MatchTableRecord::MTRF_Comment | in Label()
544 MatchTableRecord::MTRF_LineBreakFollows); in Label()
546 static MatchTableRecord JumpTarget(unsigned LabelID) { in JumpTarget()
547 return MatchTableRecord(LabelID, "Label " + llvm::to_string(LabelID), 1, in JumpTarget()
548 MatchTableRecord::MTRF_JumpTarget | in JumpTarget()
549 MatchTableRecord::MTRF_Comment | in JumpTarget()
550 MatchTableRecord::MTRF_CommaFollows); in JumpTarget()
560 void push_back(const MatchTableRecord &Value) { in push_back()
561 if (Value.Flags & MatchTableRecord::MTRF_Label) in push_back()
594 NextI->Flags == MatchTableRecord::MTRF_LineBreakFollows) in emitDeclaration()
598 if (I->Flags & MatchTableRecord::MTRF_Indent) in emitDeclaration()
602 if (I->Flags & MatchTableRecord::MTRF_LineBreakFollows) in emitDeclaration()
605 if (I->Flags & MatchTableRecord::MTRF_Outdent) in emitDeclaration()
612 MatchTableRecord MatchTable::LineBreak = {
614 MatchTableRecord::MTRF_LineBreakFollows};
616 void MatchTableRecord::emit(raw_ostream &OS, bool LineBreakIsNextAfterThis, in emit()
649 MatchTable &operator<<(MatchTable &Table, const MatchTableRecord &Value) { in operator <<()
766 std::set<MatchTableRecord> Values;
1162 virtual MatchTableRecord getValue() const { in getValue()
1249 MatchTableRecord getValue() const override { in getValue()
1742 MatchTableRecord getInstValue(const CodeGenInstruction *I) const { in getInstValue()
1782 MatchTableRecord getValue() const override { in getValue()