Searched refs:SMLoc (Results 1 - 25 of 49) sorted by relevance

12

/external/clang/test/CodeGenCXX/
H A 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;
19 // CHECK: declare void @_Z3fooPv(%class.SMLoc* sret, i8*)
20 // CHECK: declare void @_Z3zed5SMLoc(%class.SMLoc*)
/external/llvm/lib/MC/MCParser/
H A DMCAsmLexer.cpp21 SMLoc MCAsmLexer::getLoc() const {
22 return SMLoc::getFromPointer(TokStart);
25 SMLoc AsmToken::getLoc() const {
26 return SMLoc::getFromPointer(Str.data());
29 SMLoc AsmToken::getEndLoc() const {
30 return SMLoc::getFromPointer(Str.data() + Str.size() - 1);
H A 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...]
H A DCOFFAsmParser.cpp27 template<bool (COFFAsmParser::*Handler)(StringRef, SMLoc)>
79 bool ParseSectionDirectiveText(StringRef, SMLoc) {
86 bool ParseSectionDirectiveData(StringRef, SMLoc) {
93 bool ParseSectionDirectiveBSS(StringRef, SMLoc) {
101 bool ParseDirectiveDef(StringRef, SMLoc);
102 bool ParseDirectiveScl(StringRef, SMLoc);
103 bool ParseDirectiveType(StringRef, SMLoc);
104 bool ParseDirectiveEndef(StringRef, SMLoc);
107 bool ParseSEHDirectiveStartProc(StringRef, SMLoc);
108 bool ParseSEHDirectiveEndProc(StringRef, SMLoc);
[all...]
H A DELFAsmParser.cpp25 template<bool (ELFAsmParser::*Handler)(StringRef, SMLoc)>
80 bool ParseSectionDirectiveData(StringRef, SMLoc) {
85 bool ParseSectionDirectiveText(StringRef, SMLoc) {
90 bool ParseSectionDirectiveBSS(StringRef, SMLoc) {
95 bool ParseSectionDirectiveRoData(StringRef, SMLoc) {
100 bool ParseSectionDirectiveTData(StringRef, SMLoc) {
106 bool ParseSectionDirectiveTBSS(StringRef, SMLoc) {
112 bool ParseSectionDirectiveDataRel(StringRef, SMLoc) {
118 bool ParseSectionDirectiveDataRelRo(StringRef, SMLoc) {
124 bool ParseSectionDirectiveDataRelRoLocal(StringRef, SMLoc) {
[all...]
H A DAsmParser.cpp68 SMLoc InstantiationLoc;
71 SMLoc ExitLoc;
74 MacroInstantiation(const Macro *M, SMLoc IL, SMLoc EL,
123 SMLoc CppHashLoc;
147 virtual bool Warning(SMLoc L, const Twine &Msg,
149 virtual bool Error(SMLoc L, const Twine &Msg,
155 virtual bool ParseExpression(const MCExpr *&Res, SMLoc &EndLoc);
156 virtual bool ParseParenExpression(const MCExpr *&Res, SMLoc &EndLoc);
166 bool ParseCppHashLineFilenameComment(const SMLoc
[all...]
H A DMCAsmParser.cpp42 SMLoc L;
/external/llvm/include/llvm/Support/
H A DSMLoc.h1 //===- SMLoc.h - Source location for use with diagnostics -------*- C++ -*-===//
10 // This file declares the SMLoc class. This class encapsulates a location in
22 /// SMLoc - Represents a location in source code.
23 class SMLoc { class in namespace:llvm
26 SMLoc() : Ptr(0) {} function in class:llvm::SMLoc
27 SMLoc(const SMLoc &RHS) : Ptr(RHS.Ptr) {} function in class:llvm::SMLoc
31 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; }
32 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; }
36 static SMLoc getFromPointe
[all...]
H A DSourceMgr.h19 #include "llvm/Support/SMLoc.h"
51 SMLoc IncludeLoc;
98 SMLoc getParentIncludeLoc(unsigned i) const {
105 unsigned AddNewSourceBuffer(MemoryBuffer *F, SMLoc IncludeLoc) {
117 unsigned AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc,
122 int FindBufferContainingLoc(SMLoc Loc) const;
126 unsigned FindLineNumber(SMLoc Loc, int BufferID = -1) const;
131 void PrintMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg,
140 SMDiagnostic GetMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg,
149 void PrintIncludeStack(SMLoc IncludeLo
[all...]
/external/llvm/include/llvm/MC/MCParser/
H A DMCParsedAsmOperand.h14 class SMLoc;
27 virtual SMLoc getStartLoc() const = 0;
29 virtual SMLoc getEndLoc() const = 0;
H A DMCAsmParser.h25 class SMLoc;
35 typedef bool (*DirectiveHandler)(MCAsmParserExtension*, StringRef, SMLoc);
77 virtual bool Warning(SMLoc L, const Twine &Msg,
85 virtual bool Error(SMLoc L, const Twine &Msg,
117 virtual bool ParseExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0;
126 virtual bool ParseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0;
H A DMCAsmParserExtension.h15 #include "llvm/Support/SMLoc.h"
33 template<typename T, bool (T::*Handler)(StringRef, SMLoc)>
36 SMLoc DirectiveLoc) {
59 bool Warning(SMLoc L, const Twine &Msg) {
62 bool Error(SMLoc L, const Twine &Msg) {
H A DMCAsmLexer.h15 #include "llvm/Support/SMLoc.h"
73 SMLoc getLoc() const;
74 SMLoc getEndLoc() const;
122 SMLoc ErrLoc;
134 void SetError(const SMLoc &errLoc, const std::string &err) {
153 SMLoc getLoc() const;
161 const SMLoc &getErrLoc() {
H A DAsmLexer.h26 class SMLoc;
/external/llvm/include/llvm/TableGen/
H A DError.h23 SMLoc Loc;
26 TGError(SMLoc loc, const std::string &message) : Loc(loc), Message(message) {}
28 SMLoc getLoc() const { return Loc; }
32 void PrintError(SMLoc ErrorLoc, const Twine &Msg);
/external/llvm/lib/TableGen/
H A DError.cpp23 void PrintError(SMLoc ErrorLoc, const Twine &Msg) {
28 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
H A DTGParser.h38 SMLoc Loc;
40 SMLoc L)
75 bool Error(SMLoc L, const Twine &Msg) const {
86 bool AddValue(Record *TheRec, SMLoc Loc, const RecordVal &RV);
87 bool SetValue(Record *TheRec, SMLoc Loc, Init *ValName,
89 bool SetValue(Record *TheRec, SMLoc Loc, const std::string &ValName,
105 SMLoc DefmPrefixLoc);
108 SMLoc DefmPrefixLoc,
109 SMLoc SubClassLoc,
116 SMLoc DefmPrefixLo
[all...]
H A DTGLexer.cpp35 SMLoc TGLexer::getLoc() const {
36 return SMLoc::getFromPointer(TokStart);
59 SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer);
60 if (ParentIncludeLoc != SMLoc()) {
303 CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr),
/external/llvm/lib/Target/MBlaze/AsmParser/
H A DMBlazeAsmParser.cpp36 void Warning(SMLoc L, const Twine &Msg) { Parser.Warning(L, Msg); }
37 bool Error(SMLoc L, const Twine &Msg) { return Parser.Error(L, Msg); }
45 virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc);
47 bool ParseDirectiveWord(unsigned Size, SMLoc L);
49 bool MatchAndEmitInstruction(SMLoc IDLoc,
66 virtual bool ParseInstruction(StringRef Name, SMLoc NameLoc,
83 SMLoc StartLoc, EndLoc;
136 SMLoc getStartLoc() const { return StartLoc; }
139 SMLoc getEndLo
[all...]
/external/llvm/include/llvm/MC/
H A DMCTargetAsmParser.h18 class SMLoc;
51 virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc,
52 SMLoc &EndLoc) = 0;
67 virtual bool ParseInstruction(StringRef Name, SMLoc NameLoc,
89 MatchAndEmitInstruction(SMLoc IDLoc,
H A DMCTargetAsmLexer.h24 SMLoc ErrLoc;
34 void SetError(const SMLoc &errLoc, const std::string &err) {
68 const SMLoc &getErrLoc() {
/external/llvm/lib/Support/
H A DSourceMgr.cpp52 SMLoc IncludeLoc,
72 int SourceMgr::FindBufferContainingLoc(SMLoc Loc) const {
84 unsigned SourceMgr::FindLineNumber(SMLoc Loc, int BufferID) const {
108 for (; SMLoc::getFromPointer(Ptr) != Loc; ++Ptr)
124 void SourceMgr::PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const {
125 if (IncludeLoc == SMLoc()) return; // Top of stack.
143 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind,
180 R.Start = SMLoc::getFromPointer(LineStart);
182 R.End = SMLoc::getFromPointer(LineEnd);
184 // Translate from SMLoc range
[all...]
/external/llvm/utils/FileCheck/
H A DFileCheck.cpp53 SMLoc PatternLoc;
111 PatternLoc = SMLoc::getFromPointer(PatternStr.data());
147 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()),
177 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()),
191 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error,
199 SM.PrintMessage(SMLoc::getFromPointer(Name.data()+i),
206 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error,
272 SM.PrintMessage(SMLoc::getFromPointer(RegexStr.data()), SourceMgr::DK_Error,
389 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data()), SourceMgr::DK_Note,
427 SM.PrintMessage(SMLoc
[all...]
/external/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp44 bool Error(SMLoc L, const Twine &Msg,
50 X86Operand *ParseMemOperand(unsigned SegReg, SMLoc StartLoc);
52 bool ParseDirectiveWord(unsigned Size, SMLoc L);
53 bool ParseDirectiveCode(StringRef IDVal, SMLoc L);
55 bool MatchAndEmitInstruction(SMLoc IDLoc,
91 virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc);
93 virtual bool ParseInstruction(StringRef Name, SMLoc NameLoc,
119 SMLoc StartLoc, EndLoc;
144 X86Operand(KindTy K, SMLoc Star
[all...]
/external/llvm/lib/AsmParser/
H A DLLLexer.h55 typedef SMLoc LocTy;
56 LocTy getLoc() const { return SMLoc::getFromPointer(TokStart); }

Completed in 312 milliseconds

12