/external/clang/test/CodeGenCXX/ |
arm-cc.cpp | 3 class SMLoc { 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/ |
MCAsmLexer.cpp | 21 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);
|
DarwinAsmParser.cpp | 28 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...] |
COFFAsmParser.cpp | 27 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...] |
ELFAsmParser.cpp | 25 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...] |
AsmParser.cpp | 68 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 &L) [all...] |
MCAsmParser.cpp | 42 SMLoc L;
|
/external/llvm/include/llvm/Support/ |
SMLoc.h | 1 //===- 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 { 26 SMLoc() : Ptr(0) {} 27 SMLoc(const SMLoc &RHS) : Ptr(RHS.Ptr) {} 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 getFromPointer(const char *Ptr) [all...] |
SourceMgr.h | 19 #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 IncludeLoc, raw_ostream &OS) const [all...] |
/external/llvm/include/llvm/MC/MCParser/ |
MCParsedAsmOperand.h | 14 class SMLoc; 27 virtual SMLoc getStartLoc() const = 0; 29 virtual SMLoc getEndLoc() const = 0;
|
MCAsmParser.h | 25 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;
|
MCAsmParserExtension.h | 15 #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) {
|
MCAsmLexer.h | 15 #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() {
|
AsmLexer.h | 26 class SMLoc;
|
/external/llvm/include/llvm/TableGen/ |
Error.h | 23 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/include/llvm/MC/ |
MCTargetAsmParser.h | 18 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,
|
MCTargetAsmLexer.h | 24 SMLoc ErrLoc; 34 void SetError(const SMLoc &errLoc, const std::string &err) { 68 const SMLoc &getErrLoc() {
|
/external/llvm/lib/TableGen/ |
Error.cpp | 23 void PrintError(SMLoc ErrorLoc, const Twine &Msg) { 28 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
|
TGParser.h | 38 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 DefmPrefixLoc) [all...] |
TGLexer.cpp | 35 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/ |
MBlazeAsmParser.cpp | 36 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 getEndLoc() const { return EndLoc; [all...] |
/external/llvm/lib/Support/ |
SourceMgr.cpp | 52 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 ranges to column ranges [all...] |
/external/llvm/utils/FileCheck/ |
FileCheck.cpp | 53 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::getFromPointer(Buffer.data() + Best) [all...] |
/external/llvm/lib/Target/X86/AsmParser/ |
X86AsmParser.cpp | 44 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 Start, SMLoc End [all...] |
/external/llvm/lib/AsmParser/ |
LLLexer.h | 55 typedef SMLoc LocTy; 56 LocTy getLoc() const { return SMLoc::getFromPointer(TokStart); }
|