/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/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 23 class SMLoc { 26 SMLoc() : Ptr(nullptr) {} 30 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; } 31 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; } 35 static SMLoc getFromPointer(const char *Ptr) { 36 SMLoc L; 49 SMLoc Start, End; 52 SMRange(SMLoc St, SMLoc En) : Start(St), End(En) [all...] |
SourceMgr.h | 22 #include "llvm/Support/SMLoc.h" 53 SMLoc IncludeLoc; 111 SMLoc getParentIncludeLoc(unsigned i) const { 118 unsigned AddNewSourceBuffer(MemoryBuffer *F, SMLoc IncludeLoc) { 132 unsigned AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc, 138 unsigned FindBufferContainingLoc(SMLoc Loc) const; 142 unsigned FindLineNumber(SMLoc Loc, unsigned BufferID = 0) const { 148 std::pair<unsigned, unsigned> getLineAndColumn(SMLoc Loc, 155 void PrintMessage(raw_ostream &OS, SMLoc Loc, DiagKind Kind, 162 void PrintMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg [all...] |
/external/llvm/lib/MC/MCParser/ |
MCAsmLexer.cpp | 22 SMLoc MCAsmLexer::getLoc() const { 23 return SMLoc::getFromPointer(TokStart); 26 SMLoc AsmToken::getLoc() const { 27 return SMLoc::getFromPointer(Str.data()); 30 SMLoc AsmToken::getEndLoc() const { 31 return SMLoc::getFromPointer(Str.data() + Str.size());
|
DarwinAsmParser.cpp | 30 template<bool (DarwinAsmParser::*HandlerMethod)(StringRef, SMLoc)> 172 bool parseDirectiveDesc(StringRef, SMLoc); 173 bool parseDirectiveIndirectSymbol(StringRef, SMLoc); 174 bool parseDirectiveDumpOrLoad(StringRef, SMLoc); 175 bool parseDirectiveLsym(StringRef, SMLoc); 176 bool parseDirectiveLinkerOption(StringRef, SMLoc); 177 bool parseDirectiveSection(StringRef, SMLoc); 178 bool parseDirectivePushSection(StringRef, SMLoc); 179 bool parseDirectivePopSection(StringRef, SMLoc); 180 bool parseDirectivePrevious(StringRef, SMLoc); [all...] |
COFFAsmParser.cpp | 28 template<bool (COFFAsmParser::*HandlerMethod)(StringRef, SMLoc)> 92 bool ParseSectionDirectiveText(StringRef, SMLoc) { 99 bool ParseSectionDirectiveData(StringRef, SMLoc) { 106 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { 114 bool ParseDirectiveSection(StringRef, SMLoc); 115 bool ParseDirectiveDef(StringRef, SMLoc); 116 bool ParseDirectiveScl(StringRef, SMLoc); 117 bool ParseDirectiveType(StringRef, SMLoc); 118 bool ParseDirectiveEndef(StringRef, SMLoc); 119 bool ParseDirectiveSecRel32(StringRef, SMLoc); [all...] |
ELFAsmParser.cpp | 26 template<bool (ELFAsmParser::*HandlerMethod)(StringRef, SMLoc)> 82 bool ParseSectionDirectiveData(StringRef, SMLoc) { 87 bool ParseSectionDirectiveText(StringRef, SMLoc) { 92 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { 97 bool ParseSectionDirectiveRoData(StringRef, SMLoc) { 102 bool ParseSectionDirectiveTData(StringRef, SMLoc) { 108 bool ParseSectionDirectiveTBSS(StringRef, SMLoc) { 114 bool ParseSectionDirectiveDataRel(StringRef, SMLoc) { 120 bool ParseSectionDirectiveDataRelRo(StringRef, SMLoc) { 126 bool ParseSectionDirectiveDataRelRoLocal(StringRef, SMLoc) { [all...] |
MCAsmParser.cpp | 42 SMLoc L;
|
/external/llvm/include/llvm/MC/MCParser/ |
MCParsedAsmOperand.h | 14 class SMLoc; 55 virtual SMLoc getStartLoc() const = 0; 57 virtual SMLoc getEndLoc() const = 0; 69 virtual SMLoc getOffsetOfLoc() const { return SMLoc(); }
|
MCAsmParser.h | 28 class SMLoc; 64 typedef bool (*DirectiveHandler)(MCAsmParserExtension*, StringRef, SMLoc); 120 virtual void Note(SMLoc L, const Twine &Msg, 126 virtual bool Warning(SMLoc L, const Twine &Msg, 133 virtual bool Error(SMLoc L, const Twine &Msg, 168 virtual bool parseExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0; 176 virtual bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) = 0; 184 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 | 17 #include "llvm/Support/SMLoc.h" 75 SMLoc getLoc() const; 76 SMLoc getEndLoc() const; 123 SMLoc ErrLoc; 137 void SetError(const SMLoc &errLoc, const std::string &err) { 156 SMLoc getLoc() const; 167 const SMLoc &getErrLoc() {
|
/external/llvm/lib/TableGen/ |
Error.cpp | 25 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, 32 SMLoc NullLoc; 41 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg) { 46 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); 53 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { 58 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); 70 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) {
|
TGParser.h | 38 SMLoc Loc; 40 SMLoc L) 94 bool Error(SMLoc L, const Twine &Msg) const { 106 bool AddValue(Record *TheRec, SMLoc Loc, const RecordVal &RV); 107 bool SetValue(Record *TheRec, SMLoc Loc, Init *ValName, 109 bool SetValue(Record *TheRec, SMLoc Loc, const std::string &ValName, 130 bool ProcessForeachDefs(Record *CurRec, SMLoc Loc); 131 bool ProcessForeachDefs(Record *CurRec, SMLoc Loc, IterSet &IterVals); 144 SMLoc DefmPrefixLoc, 145 SMLoc SubClassLoc [all...] |
TGLexer.h | 19 #include "llvm/Support/SMLoc.h" 26 class SMLoc; 79 typedef std::map<std::string, SMLoc> DependenciesMapTy; 109 SMLoc getLoc() const;
|
/external/llvm/include/llvm/TableGen/ |
Error.h | 22 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg); 26 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 31 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(ArrayRef<SMLoc> ErrorLoc,
|
SetTheory.h | 77 ArrayRef<SMLoc> Loc) =0; 124 void evaluate(Init *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc); 128 void evaluate(Iter begin, Iter end, RecSet &Elts, ArrayRef<SMLoc> Loc) {
|
/external/llvm/include/llvm/MC/ |
MCTargetAsmParser.h | 24 class SMLoc; 59 SMLoc Loc; 63 AsmRewrite(AsmRewriteKind kind, SMLoc loc, unsigned len = 0, unsigned val = 0) 121 virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, 122 SMLoc &EndLoc) = 0; 138 SMLoc NameLoc, OperandVector &Operands) = 0; 162 virtual bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
|
MCFixup.h | 16 #include "llvm/Support/SMLoc.h" 76 SMLoc Loc; 79 MCFixupKind Kind, SMLoc Loc = SMLoc()) { 108 SMLoc getLoc() const { return Loc; }
|
/external/llvm/utils/TableGen/ |
CTagsEmitter.cpp | 34 SMLoc Loc; 36 Tag(const std::string &Name, const SMLoc Location) 57 static SMLoc locate(const Record *R); 62 SMLoc CTagsEmitter::locate(const Record *R) { 63 ArrayRef<SMLoc> Locs = R->getLoc(); 65 SMLoc NullLoc;
|
/external/llvm/tools/llvm-mcmarkup/ |
llvm-mcmarkup.cpp | 59 SMLoc StartLoc; 61 MarkupTag(StringRef n, StringRef m, SMLoc Loc) 65 SMLoc getLoc() const { return StartLoc; } 80 void FatalError(SMLoc Loc, StringRef Msg); 83 void MarkupParser::FatalError(SMLoc Loc, StringRef Msg) { 126 SMLoc Loc = SMLoc::getFromPointer(Start - 1); 130 FatalError(SMLoc::getFromPointer(Start), "unterminated markup tag"); 149 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc()); 175 SMLoc Loc = SMLoc::getFromPointer(Lex.getPosition() - 1) [all...] |
/external/llvm/lib/Target/Sparc/AsmParser/ |
SparcAsmParser.cpp | 49 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, 53 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override; 55 SMLoc NameLoc, OperandVector &Operands) override; 76 bool matchSparcAsmModifiers(const MCExpr *&EVal, SMLoc &EndLoc); 77 bool parseDirectiveWord(unsigned Size, SMLoc L); 150 SMLoc StartLoc, EndLoc; 229 SMLoc getStartLoc() const override { 233 SMLoc getEndLoc() const override { 290 static std::unique_ptr<SparcOperand> CreateToken(StringRef Str, SMLoc S) [all...] |
/external/llvm/lib/Target/Mips/AsmParser/ |
MipsAsmParser.cpp | 77 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, 83 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override; 90 SMLoc NameLoc, OperandVector &Operands) override; 98 StringRef Identifier, SMLoc S); 101 MatchAnyRegisterWithoutDollar(OperandVector &Operands, SMLoc S); 121 bool expandInstruction(MCInst &Inst, SMLoc IDLoc, 124 bool expandLoadImm(MCInst &Inst, SMLoc IDLoc, 127 bool expandLoadAddressImm(MCInst &Inst, SMLoc IDLoc, 130 bool expandLoadAddressReg(MCInst &Inst, SMLoc IDLoc [all...] |
/external/llvm/tools/llvm-mc/ |
Disassembler.cpp | 73 SM.PrintMessage(SMLoc::getFromPointer(Bytes[Index].second), 86 SM.PrintMessage(SMLoc::getFromPointer(Bytes[Index].second), 143 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), SourceMgr::DK_Error, 202 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error, 211 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error, 229 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
|
/external/llvm/lib/Target/SystemZ/AsmParser/ |
SystemZAsmParser.cpp | 64 SMLoc StartLoc, EndLoc; 118 SystemZOperand(OperandKind kind, SMLoc startLoc, SMLoc endLoc) 122 static std::unique_ptr<SystemZOperand> createInvalid(SMLoc StartLoc, 123 SMLoc EndLoc) { 126 static std::unique_ptr<SystemZOperand> createToken(StringRef Str, SMLoc Loc) { 133 createReg(RegisterKind Kind, unsigned Num, SMLoc StartLoc, SMLoc EndLoc) { 140 createAccessReg(unsigned Num, SMLoc StartLoc, SMLoc EndLoc) [all...] |