/external/llvm/lib/MC/MCParser/ |
D | 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 …]
|
D | COFFAsmParser.cpp | 28 template<bool (COFFAsmParser::*HandlerMethod)(StringRef, SMLoc)> 92 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument 99 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument 106 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument 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 …]
|
D | ELFAsmParser.cpp | 26 template<bool (ELFAsmParser::*HandlerMethod)(StringRef, SMLoc)> 82 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument 87 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument 92 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument 97 bool ParseSectionDirectiveRoData(StringRef, SMLoc) { in ParseSectionDirectiveRoData() argument 102 bool ParseSectionDirectiveTData(StringRef, SMLoc) { in ParseSectionDirectiveTData() argument 108 bool ParseSectionDirectiveTBSS(StringRef, SMLoc) { in ParseSectionDirectiveTBSS() argument 114 bool ParseSectionDirectiveDataRel(StringRef, SMLoc) { in ParseSectionDirectiveDataRel() argument 120 bool ParseSectionDirectiveDataRelRo(StringRef, SMLoc) { in ParseSectionDirectiveDataRelRo() argument 126 bool ParseSectionDirectiveDataRelRoLocal(StringRef, SMLoc) { in ParseSectionDirectiveDataRelRoLocal() argument [all …]
|
D | MCAsmLexer.cpp | 22 SMLoc MCAsmLexer::getLoc() const { in getLoc() 23 return SMLoc::getFromPointer(TokStart); in getLoc() 26 SMLoc AsmToken::getLoc() const { in getLoc() 27 return SMLoc::getFromPointer(Str.data()); in getLoc() 30 SMLoc AsmToken::getEndLoc() const { in getEndLoc() 31 return SMLoc::getFromPointer(Str.data() + Str.size()); in getEndLoc()
|
D | AsmParser.cpp | 80 SMLoc InstantiationLoc; 86 SMLoc ExitLoc; 92 MacroInstantiation(SMLoc IL, int EB, SMLoc EL, size_t CondStackDepth); 156 SMLoc CppHashLoc; 162 SMLoc LastQueryIDLoc; 205 void Note(SMLoc L, const Twine &Msg, 207 bool Warning(SMLoc L, const Twine &Msg, 209 bool Error(SMLoc L, const Twine &Msg, 226 bool parseExpression(const MCExpr *&Res, SMLoc &EndLoc) override; 227 bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) override; [all …]
|
/external/llvm/include/llvm/Support/ |
D | SMLoc.h | 23 class SMLoc { 26 SMLoc() : Ptr(nullptr) {} in SMLoc() function 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) { in getFromPointer() 36 SMLoc L; in getFromPointer() 49 SMLoc Start, End; 52 SMRange(SMLoc St, SMLoc En) : Start(St), End(En) { in SMRange()
|
D | SourceMgr.h | 53 SMLoc IncludeLoc; 116 SMLoc getParentIncludeLoc(unsigned i) const { in getParentIncludeLoc() 124 SMLoc IncludeLoc) { in AddNewSourceBuffer() 138 unsigned AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc, 144 unsigned FindBufferContainingLoc(SMLoc Loc) const; 148 unsigned FindLineNumber(SMLoc Loc, unsigned BufferID = 0) const { 154 std::pair<unsigned, unsigned> getLineAndColumn(SMLoc Loc, 161 void PrintMessage(raw_ostream &OS, SMLoc Loc, DiagKind Kind, 168 void PrintMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg, 185 SMDiagnostic GetMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg, [all …]
|
/external/clang/test/CodeGenCXX/ |
D | arm-cc.cpp | 3 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/lib/Target/SystemZ/AsmParser/ |
D | SystemZAsmParser.cpp | 65 SMLoc StartLoc, EndLoc; 127 SystemZOperand(OperandKind kind, SMLoc startLoc, SMLoc endLoc) in SystemZOperand() 131 static std::unique_ptr<SystemZOperand> createInvalid(SMLoc StartLoc, in createInvalid() 132 SMLoc EndLoc) { in createInvalid() 135 static std::unique_ptr<SystemZOperand> createToken(StringRef Str, SMLoc Loc) { in createToken() 142 createReg(RegisterKind Kind, unsigned Num, SMLoc StartLoc, SMLoc EndLoc) { in createReg() 149 createAccessReg(unsigned Num, SMLoc StartLoc, SMLoc EndLoc) { in createAccessReg() 155 createImm(const MCExpr *Expr, SMLoc StartLoc, SMLoc EndLoc) { in createImm() 162 unsigned Index, const MCExpr *Length, SMLoc StartLoc, in createMem() 163 SMLoc EndLoc) { in createMem() [all …]
|
/external/llvm/lib/TableGen/ |
D | Error.cpp | 25 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, in PrintMessage() 32 SMLoc NullLoc; in PrintMessage() 41 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg) { in PrintWarning() 46 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); in PrintWarning() 53 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError() 58 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); in PrintError() 70 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintFatalError()
|
D | TGParser.h | 38 SMLoc Loc; 40 SMLoc L) in LetRecord() 94 bool Error(SMLoc L, const Twine &Msg) const { in Error() 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, in SetValue() 130 bool ProcessForeachDefs(Record *CurRec, SMLoc Loc); 131 bool ProcessForeachDefs(Record *CurRec, SMLoc Loc, IterSet &IterVals); 144 SMLoc DefmPrefixLoc, 145 SMLoc SubClassLoc, [all …]
|
D | SetTheory.cpp | 31 ArrayRef<SMLoc> Loc) override { in apply() 39 ArrayRef<SMLoc> Loc) override { in apply() 55 ArrayRef<SMLoc> Loc) override { in apply() 71 RecSet &Elts, ArrayRef<SMLoc> Loc) = 0; 74 ArrayRef<SMLoc> Loc) override { in apply() 91 RecSet &Elts, ArrayRef<SMLoc> Loc) override { in apply2() 103 RecSet &Elts, ArrayRef<SMLoc> Loc) override { in apply2() 120 RecSet &Elts, ArrayRef<SMLoc> Loc) override { in apply2() 138 RecSet &Elts, ArrayRef<SMLoc> Loc) override { in apply2() 150 ArrayRef<SMLoc> Loc) override { in apply() [all …]
|
/external/llvm/tools/llvm-mcmarkup/ |
D | llvm-mcmarkup.cpp | 59 SMLoc StartLoc; 61 MarkupTag(StringRef n, StringRef m, SMLoc Loc) in MarkupTag() 65 SMLoc getLoc() const { return StartLoc; } in getLoc() 80 void FatalError(SMLoc Loc, StringRef Msg); 83 void MarkupParser::FatalError(SMLoc Loc, StringRef Msg) { in FatalError() 126 SMLoc Loc = SMLoc::getFromPointer(Start - 1); in parseTag() 130 FatalError(SMLoc::getFromPointer(Start), "unterminated markup tag"); in parseTag() 151 SrcMgr.AddNewSourceBuffer(std::move(Buffer), SMLoc()); in parseMCMarkup() 176 SMLoc Loc = SMLoc::getFromPointer(Lex.getPosition() - 1); in parseMCMarkup()
|
/external/llvm/lib/Target/Sparc/AsmParser/ |
D | 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 { in getStartLoc() 233 SMLoc getEndLoc() const override { in getEndLoc() 290 static std::unique_ptr<SparcOperand> CreateToken(StringRef Str, SMLoc S) { in CreateToken() 300 SMLoc S, SMLoc E) { in CreateReg() [all …]
|
/external/llvm/include/llvm/MC/MCParser/ |
D | MCAsmParser.h | 28 class SMLoc; variable 56 SMLoc Location, bool Create) = 0; 66 typedef bool (*DirectiveHandler)(MCAsmParserExtension*, StringRef, SMLoc); 123 virtual void Note(SMLoc L, const Twine &Msg, 129 virtual bool Warning(SMLoc L, const Twine &Msg, 136 virtual bool Error(SMLoc L, const Twine &Msg, 170 virtual bool parseExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0; 178 virtual bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) = 0; 186 virtual bool parseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0;
|
D | MCParsedAsmOperand.h | 14 class SMLoc; variable 55 virtual SMLoc getStartLoc() const = 0; 57 virtual SMLoc getEndLoc() const = 0; 69 virtual SMLoc getOffsetOfLoc() const { return SMLoc(); } in getOffsetOfLoc()
|
D | MCAsmLexer.h | 75 SMLoc getLoc() const; 76 SMLoc getEndLoc() const; 124 SMLoc ErrLoc; 138 void SetError(const SMLoc &errLoc, const std::string &err) { in SetError() 157 SMLoc getLoc() const; 168 const SMLoc &getErrLoc() { in getErrLoc()
|
/external/llvm/include/llvm/MC/ |
D | MCTargetAsmParser.h | 23 class SMLoc; variable 60 SMLoc Loc; 65 AsmRewrite(AsmRewriteKind kind, SMLoc loc, unsigned len = 0, unsigned val = 0) 67 AsmRewrite(AsmRewriteKind kind, SMLoc loc, unsigned len, StringRef label) in AsmRewrite() 125 virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, 126 SMLoc &EndLoc) = 0; 145 SMLoc NameLoc, OperandVector &Operands) = 0; 169 virtual bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
|
/external/llvm/utils/FileCheck/ |
D | FileCheck.cpp | 88 SMLoc PatternLoc; 119 SMLoc getLoc() const { return PatternLoc; } in getLoc() 178 PatternLoc = SMLoc::getFromPointer(PatternStr.data()); in ParsePattern() 213 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern() 245 SM.PrintMessage(SMLoc::getFromPointer(PatternStr.data()), in ParsePattern() 259 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error, in ParsePattern() 271 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), in ParsePattern() 281 SM.PrintMessage(SMLoc::getFromPointer(Name.data()+i), in ParsePattern() 289 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), SourceMgr::DK_Error, in ParsePattern() 301 SM.PrintMessage(SMLoc::getFromPointer(Name.data()), in ParsePattern() [all …]
|
/external/llvm/lib/Target/X86/AsmParser/ |
D | X86Operand.h | 30 SMLoc StartLoc, EndLoc; 31 SMLoc OffsetOfLoc; 66 X86Operand(KindTy K, SMLoc Start, SMLoc End) in X86Operand() 73 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc() 75 SMLoc getEndLoc() const override { return EndLoc; } in getEndLoc() 80 SMLoc getOffsetOfLoc() const override { return OffsetOfLoc; } in getOffsetOfLoc() 447 static std::unique_ptr<X86Operand> CreateToken(StringRef Str, SMLoc Loc) { in CreateToken() 448 SMLoc EndLoc = SMLoc::getFromPointer(Loc.getPointer() + Str.size()); in CreateToken() 456 CreateReg(unsigned RegNo, SMLoc StartLoc, SMLoc EndLoc, 457 bool AddressOf = false, SMLoc OffsetOfLoc = SMLoc(), [all …]
|
D | X86AsmParser.cpp | 64 SMLoc consumeToken() { in consumeToken() 66 SMLoc Result = Parser.getTok().getLoc(); in consumeToken() 635 bool Error(SMLoc L, const Twine &Msg, in Error() 643 bool ErrorAndEatStatement(SMLoc L, const Twine &Msg, in ErrorAndEatStatement() 651 std::nullptr_t ErrorOperand(SMLoc Loc, StringRef Msg) { in ErrorOperand() 656 std::unique_ptr<X86Operand> DefaultMemSIOperand(SMLoc Loc); 657 std::unique_ptr<X86Operand> DefaultMemDIOperand(SMLoc Loc); 665 ParseIntelSegmentOverride(unsigned SegReg, SMLoc Start, unsigned Size); 667 ParseIntelMemOperand(int64_t ImmDisp, SMLoc StartLoc, unsigned Size); 668 std::unique_ptr<X86Operand> ParseRoundingModeOp(SMLoc Start, SMLoc End); [all …]
|
/external/llvm/lib/Target/Mips/AsmParser/ |
D | MipsAsmParser.cpp | 123 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, 129 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override; 136 SMLoc NameLoc, OperandVector &Operands) override; 144 StringRef Identifier, SMLoc S); 147 matchAnyRegisterWithoutDollar(OperandVector &Operands, SMLoc S); 176 bool expandInstruction(MCInst &Inst, SMLoc IDLoc, 179 bool expandJalWithRegs(MCInst &Inst, SMLoc IDLoc, 182 bool expandLoadImm(MCInst &Inst, SMLoc IDLoc, 185 bool expandLoadAddressImm(MCInst &Inst, SMLoc IDLoc, 188 bool expandLoadAddressReg(MCInst &Inst, SMLoc IDLoc, [all …]
|
/external/llvm/utils/TableGen/ |
D | CTagsEmitter.cpp | 34 SMLoc Loc; 36 Tag(const std::string &Name, const SMLoc Location) in Tag() 57 static SMLoc locate(const Record *R); 62 SMLoc CTagsEmitter::locate(const Record *R) { in locate() 63 ArrayRef<SMLoc> Locs = R->getLoc(); in locate() 65 SMLoc NullLoc; in locate()
|
/external/llvm/lib/Target/AArch64/AsmParser/ |
D | AArch64AsmParser.cpp | 55 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc() 57 bool parseSysAlias(StringRef Name, SMLoc NameLoc, OperandVector &Operands); 69 void Warning(SMLoc L, const Twine &Msg) { getParser().Warning(L, Msg); } in Warning() 70 bool Error(SMLoc L, const Twine &Msg) { return getParser().Error(L, Msg); } in Error() 71 bool showMatchError(SMLoc Loc, unsigned ErrCode); 73 bool parseDirectiveWord(unsigned Size, SMLoc L); 74 bool parseDirectiveInst(SMLoc L); 76 bool parseDirectiveTLSDescCall(SMLoc L); 78 bool parseDirectiveLOH(StringRef LOH, SMLoc L); 79 bool parseDirectiveLtorg(SMLoc L); [all …]
|
/external/llvm/lib/Target/R600/AsmParser/ |
D | AMDGPUAsmParser.cpp | 48 SMLoc StartLoc, EndLoc; 232 SMLoc getStartLoc() const override { in getStartLoc() 236 SMLoc getEndLoc() const override { in getEndLoc() 242 static std::unique_ptr<AMDGPUOperand> CreateImm(int64_t Val, SMLoc Loc, in CreateImm() 254 static std::unique_ptr<AMDGPUOperand> CreateToken(StringRef Str, SMLoc Loc, in CreateToken() 264 static std::unique_ptr<AMDGPUOperand> CreateReg(unsigned RegNo, SMLoc S, in CreateReg() 265 SMLoc E, in CreateReg() 276 static std::unique_ptr<AMDGPUOperand> CreateExpr(const class MCExpr *Expr, SMLoc S) { in CreateExpr() 327 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override; 329 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, [all …]
|