Home
last modified time | relevance | path

Searched refs:SMLoc (Results 1 – 25 of 50) sorted by relevance

12

/external/llvm/lib/MC/MCParser/
DDarwinAsmParser.cpp28 template<bool (DarwinAsmParser::*Handler)(StringRef, SMLoc)>
107 bool ParseDirectiveDesc(StringRef, SMLoc);
108 bool ParseDirectiveDumpOrLoad(StringRef, SMLoc);
109 bool ParseDirectiveLsym(StringRef, SMLoc);
110 bool ParseDirectiveSection(StringRef, SMLoc);
111 bool ParseDirectiveSecureLogReset(StringRef, SMLoc);
112 bool ParseDirectiveSecureLogUnique(StringRef, SMLoc);
113 bool ParseDirectiveSubsectionsViaSymbols(StringRef, SMLoc);
114 bool ParseDirectiveTBSS(StringRef, SMLoc);
115 bool ParseDirectiveZerofill(StringRef, SMLoc);
[all …]
DCOFFAsmParser.cpp26 template<bool (COFFAsmParser::*Handler)(StringRef, SMLoc)>
77 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument
84 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument
91 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument
99 bool ParseDirectiveDef(StringRef, SMLoc);
100 bool ParseDirectiveScl(StringRef, SMLoc);
101 bool ParseDirectiveType(StringRef, SMLoc);
102 bool ParseDirectiveEndef(StringRef, SMLoc);
105 bool ParseSEHDirectiveStartProc(StringRef, SMLoc);
106 bool ParseSEHDirectiveEndProc(StringRef, SMLoc);
[all …]
DELFAsmParser.cpp25 template<bool (ELFAsmParser::*Handler)(StringRef, SMLoc)>
67 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument
72 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument
77 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument
82 bool ParseSectionDirectiveRoData(StringRef, SMLoc) { in ParseSectionDirectiveRoData() argument
87 bool ParseSectionDirectiveTData(StringRef, SMLoc) { in ParseSectionDirectiveTData() argument
93 bool ParseSectionDirectiveTBSS(StringRef, SMLoc) { in ParseSectionDirectiveTBSS() argument
99 bool ParseSectionDirectiveDataRel(StringRef, SMLoc) { in ParseSectionDirectiveDataRel() argument
105 bool ParseSectionDirectiveDataRelRo(StringRef, SMLoc) { in ParseSectionDirectiveDataRelRo() argument
111 bool ParseSectionDirectiveDataRelRoLocal(StringRef, SMLoc) { in ParseSectionDirectiveDataRelRoLocal() argument
[all …]
DAsmParser.cpp69 SMLoc InstantiationLoc;
72 SMLoc ExitLoc;
75 MacroInstantiation(const Macro *M, SMLoc IL, SMLoc EL,
141 virtual bool Warning(SMLoc L, const Twine &Msg);
142 virtual bool Error(SMLoc L, const Twine &Msg);
147 virtual bool ParseExpression(const MCExpr *&Res, SMLoc &EndLoc);
148 virtual bool ParseParenExpression(const MCExpr *&Res, SMLoc &EndLoc);
158 bool HandleMacroEntry(StringRef Name, SMLoc NameLoc, const Macro *M);
162 const SMLoc &L);
166 void PrintMessage(SMLoc Loc, const Twine &Msg, const char *Type, in PrintMessage()
[all …]
DMCAsmLexer.cpp21 SMLoc MCAsmLexer::getLoc() const { in getLoc()
22 return SMLoc::getFromPointer(TokStart); in getLoc()
25 SMLoc AsmToken::getLoc() const { in getLoc()
26 return SMLoc::getFromPointer(Str.data()); in getLoc()
/external/llvm/lib/Target/MBlaze/AsmParser/
DMBlazeAsmParser.cpp39 void Warning(SMLoc L, const Twine &Msg) { Parser.Warning(L, Msg); } in Warning()
40 bool Error(SMLoc L, const Twine &Msg) { return Parser.Error(L, Msg); } in Error()
48 virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc);
50 bool ParseDirectiveWord(unsigned Size, SMLoc L);
52 bool MatchAndEmitInstruction(SMLoc IDLoc,
69 virtual bool ParseInstruction(StringRef Name, SMLoc NameLoc,
86 SMLoc StartLoc, EndLoc;
139 SMLoc getStartLoc() const { return StartLoc; } in getStartLoc()
142 SMLoc getEndLoc() const { return EndLoc; } in getEndLoc()
224 static MBlazeOperand *CreateToken(StringRef Str, SMLoc S) { in CreateToken()
[all …]
/external/llvm/include/llvm/Support/
DSMLoc.h21 class SMLoc {
24 SMLoc() : Ptr(0) {} in SMLoc() function
25 SMLoc(const SMLoc &RHS) : Ptr(RHS.Ptr) {} in SMLoc() function
29 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; }
30 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; }
34 static SMLoc getFromPointer(const char *Ptr) { in getFromPointer()
35 SMLoc L; in getFromPointer()
DSourceMgr.h47 SMLoc IncludeLoc;
91 SMLoc getParentIncludeLoc(unsigned i) const { in getParentIncludeLoc()
98 unsigned AddNewSourceBuffer(MemoryBuffer *F, SMLoc IncludeLoc) { in AddNewSourceBuffer()
110 unsigned AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc,
115 int FindBufferContainingLoc(SMLoc Loc) const;
119 unsigned FindLineNumber(SMLoc Loc, int BufferID = -1) const;
127 void PrintMessage(SMLoc Loc, const Twine &Msg, const char *Type,
137 SMDiagnostic GetMessage(SMLoc Loc,
143 void PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const;
151 SMLoc Loc;
[all …]
/external/clang/test/CodeGenCXX/
Darm-cc.cpp3 class SMLoc { class
6 SMLoc();
7 SMLoc(const SMLoc &RHS);
9 SMLoc foo(void *p);
13 void zed(SMLoc x);
15 SMLoc a; in baz()
/external/llvm/utils/FileCheck/
DFileCheck.cpp53 SMLoc PatternLoc;
111 PatternLoc = SMLoc::getFromPointer(PatternStr.data()); in ParsePattern()
146 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern()
175 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern()
188 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), in ParsePattern()
196 SM.PrintMessage(SMLoc::getFromPointer(Name.data()+i), in ParsePattern()
203 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), in ParsePattern()
269 SM.PrintMessage(SMLoc::getFromPointer(RegexStr.data()), in AddRegExToRegEx()
386 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), OS.str(), "note", in PrintFailureInfo()
424 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data() + Best), in PrintFailureInfo()
[all …]
/external/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp45 bool Error(SMLoc L, const Twine &Msg) { return Parser.Error(L, Msg); } in Error()
48 X86Operand *ParseMemOperand(unsigned SegReg, SMLoc StartLoc);
50 bool ParseDirectiveWord(unsigned Size, SMLoc L);
52 bool MatchAndEmitInstruction(SMLoc IDLoc,
84 virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc);
86 virtual bool ParseInstruction(StringRef Name, SMLoc NameLoc,
112 SMLoc StartLoc, EndLoc;
137 X86Operand(KindTy K, SMLoc Start, SMLoc End) in X86Operand()
141 SMLoc getStartLoc() const { return StartLoc; } in getStartLoc()
143 SMLoc getEndLoc() const { return EndLoc; } in getEndLoc()
[all …]
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp47 void Warning(SMLoc L, const Twine &Msg) { Parser.Warning(L, Msg); } in Warning()
48 bool Error(SMLoc L, const Twine &Msg) { return Parser.Error(L, Msg); } in Error()
51 virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc);
70 SMLoc &E);
72 const MCExpr *&ShiftAmount, SMLoc &E);
73 bool ParseDirectiveWord(unsigned Size, SMLoc L);
74 bool ParseDirectiveThumb(SMLoc L);
75 bool ParseDirectiveThumbFunc(SMLoc L);
76 bool ParseDirectiveCode(SMLoc L);
77 bool ParseDirectiveSyntax(SMLoc L);
[all …]
/external/llvm/include/llvm/Target/
DTargetAsmParser.h18 class SMLoc; variable
39 virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc,
40 SMLoc &EndLoc) = 0;
55 virtual bool ParseInstruction(StringRef Name, SMLoc NameLoc,
77 MatchAndEmitInstruction(SMLoc IDLoc,
DTargetAsmLexer.h24 SMLoc ErrLoc;
34 void SetError(const SMLoc &errLoc, const std::string &err) { in SetError()
68 const SMLoc &getErrLoc() { in getErrLoc()
/external/llvm/include/llvm/MC/MCParser/
DMCAsmParser.h23 class SMLoc; variable
34 typedef bool (*DirectiveHandler)(MCAsmParserExtension*, StringRef, SMLoc);
76 virtual bool Warning(SMLoc L, const Twine &Msg) = 0;
83 virtual bool Error(SMLoc L, const Twine &Msg) = 0;
113 virtual bool ParseExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0;
122 virtual bool ParseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0;
DMCAsmParserExtension.h33 template<typename T, bool (T::*Handler)(StringRef, SMLoc)>
36 SMLoc DirectiveLoc) { in HandleDirective()
59 bool Warning(SMLoc L, const Twine &Msg) { in Warning()
62 bool Error(SMLoc L, const Twine &Msg) { in Error()
DMCAsmLexer.h74 SMLoc getLoc() const;
122 SMLoc ErrLoc;
134 void SetError(const SMLoc &errLoc, const std::string &err) { in SetError()
153 SMLoc getLoc() const;
161 const SMLoc &getErrLoc() { in getErrLoc()
DMCParsedAsmOperand.h14 class SMLoc; variable
27 virtual SMLoc getStartLoc() const = 0;
29 virtual SMLoc getEndLoc() const = 0;
/external/llvm/lib/Support/
DSourceMgr.cpp52 SMLoc IncludeLoc, in AddIncludeFile()
72 int SourceMgr::FindBufferContainingLoc(SMLoc Loc) const { in FindBufferContainingLoc()
84 unsigned SourceMgr::FindLineNumber(SMLoc Loc, int BufferID) const { in FindLineNumber()
108 for (; SMLoc::getFromPointer(Ptr) != Loc; ++Ptr) in FindLineNumber()
124 void SourceMgr::PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const { in PrintIncludeStack()
125 if (IncludeLoc == SMLoc()) return; // Top of stack. in PrintIncludeStack()
143 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, const Twine &Msg, in GetMessage()
181 void SourceMgr::PrintMessage(SMLoc Loc, const Twine &Msg, in PrintMessage()
/external/llvm/utils/TableGen/
DError.h23 SMLoc Loc;
26 TGError(SMLoc loc, const std::string &message) : Loc(loc), Message(message) {} in TGError()
28 SMLoc getLoc() const { return Loc; } in getLoc()
32 void PrintError(SMLoc ErrorLoc, const Twine &Msg);
DTGParser.h37 SMLoc Loc;
39 SMLoc L) in LetRecord()
63 bool Error(SMLoc L, const Twine &Msg) const { in Error()
74 bool AddValue(Record *TheRec, SMLoc Loc, const RecordVal &RV);
75 bool SetValue(Record *TheRec, SMLoc Loc, const std::string &ValName,
102 Init *ParseIDValue(Record *CurRec, const std::string &Name, SMLoc NameLoc);
DError.cpp23 void PrintError(SMLoc ErrorLoc, const Twine &Msg) { in PrintError()
28 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), Msg, "error"); in PrintError()
DTGLexer.cpp35 SMLoc TGLexer::getLoc() const { in getLoc()
36 return SMLoc::getFromPointer(TokStart); in getLoc()
59 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer); in getNextChar()
60 if (ParentIncludeLoc != SMLoc()) { in getNextChar()
263 CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr), in LexInclude()
DTGParser.cpp29 SMLoc RefLoc;
38 SMLoc RefLoc;
63 bool TGParser::AddValue(Record *CurRec, SMLoc Loc, const RecordVal &RV) { in AddValue()
82 bool TGParser::SetValue(Record *CurRec, SMLoc Loc, const std::string &ValName, in SetValue()
532 SMLoc StartLoc = Lex.getLoc(); in ParseOptionalRangeList()
554 SMLoc StartLoc = Lex.getLoc(); in ParseOptionalBitList()
639 SMLoc Loc = Lex.getLoc(); in ParseIDValue()
647 const std::string &Name, SMLoc NameLoc) { in ParseIDValue()
803 SMLoc OpLoc = Lex.getLoc(); in ParseOperation()
1068 SMLoc NameLoc = Lex.getLoc(); in ParseSimpleValue()
[all …]
/external/llvm/tools/llvm-mc/
DDisassembler.cpp73 SM.PrintMessage(SMLoc::getFromPointer(Bytes[Index].second), in PrintInsts()
116 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), in ByteArrayFromString()
159 SM.AddNewSourceBuffer(&Buffer, SMLoc()); in disassemble()
207 SM.AddNewSourceBuffer(&Buffer, SMLoc()); in disassembleEnhanced()

12