Home
last modified time | relevance | path

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

1234

/external/llvm/lib/MC/MCParser/
DDarwinAsmParser.cpp33 template<bool (DarwinAsmParser::*HandlerMethod)(StringRef, SMLoc)>
44 SMLoc LastVersionMinDirective;
179 LastVersionMinDirective = SMLoc(); in Initialize()
182 bool parseDirectiveDesc(StringRef, SMLoc);
183 bool parseDirectiveIndirectSymbol(StringRef, SMLoc);
184 bool parseDirectiveDumpOrLoad(StringRef, SMLoc);
185 bool parseDirectiveLsym(StringRef, SMLoc);
186 bool parseDirectiveLinkerOption(StringRef, SMLoc);
187 bool parseDirectiveSection(StringRef, SMLoc);
188 bool parseDirectivePushSection(StringRef, SMLoc);
[all …]
DCOFFAsmParser.cpp28 template<bool (COFFAsmParser::*HandlerMethod)(StringRef, SMLoc)>
93 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument
100 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 …]
DELFAsmParser.cpp26 template<bool (ELFAsmParser::*HandlerMethod)(StringRef, SMLoc)>
80 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument
85 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument
90 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument
95 bool ParseSectionDirectiveRoData(StringRef, SMLoc) { in ParseSectionDirectiveRoData() argument
100 bool ParseSectionDirectiveTData(StringRef, SMLoc) { in ParseSectionDirectiveTData() argument
106 bool ParseSectionDirectiveTBSS(StringRef, SMLoc) { in ParseSectionDirectiveTBSS() argument
112 bool ParseSectionDirectiveDataRel(StringRef, SMLoc) { in ParseSectionDirectiveDataRel() argument
117 bool ParseSectionDirectiveDataRelRo(StringRef, SMLoc) { in ParseSectionDirectiveDataRelRo() argument
123 bool ParseSectionDirectiveEhFrame(StringRef, SMLoc) { in ParseSectionDirectiveEhFrame() argument
[all …]
DMCAsmLexer.cpp22 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()
DAsmParser.cpp82 SMLoc InstantiationLoc;
88 SMLoc ExitLoc;
94 MacroInstantiation(SMLoc IL, int EB, SMLoc EL, size_t CondStackDepth);
161 SMLoc CppHashLoc;
167 SMLoc LastQueryIDLoc;
214 void Note(SMLoc L, const Twine &Msg,
216 bool Warning(SMLoc L, const Twine &Msg,
218 bool Error(SMLoc L, const Twine &Msg,
235 bool parseExpression(const MCExpr *&Res, SMLoc &EndLoc) override;
236 bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) override;
[all …]
/external/llvm/include/llvm/Support/
DSMLoc.h23 class SMLoc {
27 SMLoc() : Ptr(nullptr) {} in SMLoc() function
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) { in getFromPointer()
37 SMLoc L; in getFromPointer()
50 SMLoc Start, End;
53 SMRange(SMLoc St, SMLoc En) : Start(St), End(En) { in SMRange()
DSourceMgr.h53 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/
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/tools/llvm-mcmarkup/
Dllvm-mcmarkup.cpp59 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/include/llvm/MC/MCParser/
DMCAsmParser.h28 class SMLoc; variable
56 SMLoc Location, bool Create) = 0;
66 typedef bool (*DirectiveHandler)(MCAsmParserExtension*, StringRef, SMLoc);
125 virtual void Note(SMLoc L, const Twine &Msg,
131 virtual bool Warning(SMLoc L, const Twine &Msg,
138 virtual bool Error(SMLoc L, const Twine &Msg,
172 virtual bool parseExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0;
180 virtual bool parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc) = 0;
188 virtual bool parseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) = 0;
210 SMLoc &EndLoc) = 0;
DMCAsmParserExtension.h33 template<typename T, bool (T::*Handler)(StringRef, SMLoc)>
36 SMLoc DirectiveLoc) { in HandleDirective()
68 bool Warning(SMLoc L, const Twine &Msg) { in Warning()
71 bool Error(SMLoc L, const Twine &Msg) { in Error()
74 void Note(SMLoc L, const Twine &Msg) { in Note()
DMCParsedAsmOperand.h66 virtual SMLoc getStartLoc() const = 0;
68 virtual SMLoc getEndLoc() const = 0;
80 virtual SMLoc getOffsetOfLoc() const { return SMLoc(); } in getOffsetOfLoc()
/external/llvm/lib/TableGen/
DError.cpp26 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, in PrintMessage()
33 SMLoc NullLoc; in PrintMessage()
42 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg) { in PrintWarning()
47 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg); in PrintWarning()
54 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError()
59 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg); in PrintError()
73 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintFatalError()
DTGParser.h38 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);
143 SMLoc DefmPrefixLoc, SMLoc SubClassLoc,
150 SMLoc DefmPrefixLoc);
[all …]
/external/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp69 SMLoc StartLoc, EndLoc;
131 SystemZOperand(OperandKind kind, SMLoc startLoc, SMLoc endLoc) in SystemZOperand()
135 static std::unique_ptr<SystemZOperand> createInvalid(SMLoc StartLoc, in createInvalid()
136 SMLoc EndLoc) { in createInvalid()
139 static std::unique_ptr<SystemZOperand> createToken(StringRef Str, SMLoc Loc) { in createToken()
146 createReg(RegisterKind Kind, unsigned Num, SMLoc StartLoc, SMLoc EndLoc) { in createReg()
153 createAccessReg(unsigned Num, SMLoc StartLoc, SMLoc EndLoc) { in createAccessReg()
159 createImm(const MCExpr *Expr, SMLoc StartLoc, SMLoc EndLoc) { in createImm()
167 SMLoc StartLoc, SMLoc EndLoc) { in createMem()
179 SMLoc StartLoc, SMLoc EndLoc) { in createImmTLS()
[all …]
/external/llvm/utils/FileCheck/
DFileCheck.cpp88 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/
DX86AsmParser.cpp66 SMLoc consumeToken() { in consumeToken()
68 SMLoc Result = Parser.getTok().getLoc(); in consumeToken()
664 bool Error(SMLoc L, const Twine &Msg, in Error()
672 bool ErrorAndEatStatement(SMLoc L, const Twine &Msg, in ErrorAndEatStatement()
680 std::nullptr_t ErrorOperand(SMLoc Loc, StringRef Msg) { in ErrorOperand()
685 std::unique_ptr<X86Operand> DefaultMemSIOperand(SMLoc Loc);
686 std::unique_ptr<X86Operand> DefaultMemDIOperand(SMLoc Loc);
697 ParseIntelSegmentOverride(unsigned SegReg, SMLoc Start, unsigned Size);
699 ParseIntelMemOperand(int64_t ImmDisp, SMLoc StartLoc, unsigned Size);
700 std::unique_ptr<X86Operand> ParseRoundingModeOp(SMLoc Start, SMLoc End);
[all …]
DX86Operand.h33 SMLoc StartLoc, EndLoc;
34 SMLoc OffsetOfLoc;
69 X86Operand(KindTy K, SMLoc Start, SMLoc End) in X86Operand()
76 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
78 SMLoc getEndLoc() const override { return EndLoc; } in getEndLoc()
83 SMLoc getOffsetOfLoc() const override { return OffsetOfLoc; } in getOffsetOfLoc()
466 static std::unique_ptr<X86Operand> CreateToken(StringRef Str, SMLoc Loc) { in CreateToken()
467 SMLoc EndLoc = SMLoc::getFromPointer(Loc.getPointer() + Str.size()); in CreateToken()
475 CreateReg(unsigned RegNo, SMLoc StartLoc, SMLoc EndLoc,
476 bool AddressOf = false, SMLoc OffsetOfLoc = SMLoc(),
[all …]
/external/llvm/include/llvm/MC/
DMCTargetAsmParser.h24 class SMLoc; variable
63 SMLoc Loc;
68 AsmRewrite(AsmRewriteKind kind, SMLoc loc, unsigned len = 0, unsigned val = 0)
70 AsmRewrite(AsmRewriteKind kind, SMLoc loc, unsigned len, StringRef label) in AsmRewrite()
136 virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc,
137 SMLoc &EndLoc) = 0;
156 SMLoc NameLoc, OperandVector &Operands) = 0;
184 virtual bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
DConstantPools.h30 ConstantPoolEntry(MCSymbol *L, const MCExpr *Val, unsigned Sz, SMLoc Loc_) in ConstantPoolEntry()
35 SMLoc Loc;
54 unsigned Size, SMLoc Loc);
85 unsigned Size, SMLoc Loc);
/external/llvm/lib/Target/Sparc/AsmParser/
DSparcAsmParser.cpp49 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
53 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
55 SMLoc NameLoc, OperandVector &Operands) override;
80 bool matchSparcAsmModifiers(const MCExpr *&EVal, SMLoc &EndLoc);
81 bool parseDirectiveWord(unsigned Size, SMLoc L);
87 void expandSET(MCInst &Inst, SMLoc IDLoc,
176 SMLoc StartLoc, EndLoc;
259 SMLoc getStartLoc() const override { in getStartLoc()
263 SMLoc getEndLoc() const override { in getEndLoc()
320 static std::unique_ptr<SparcOperand> CreateToken(StringRef Str, SMLoc S) { in CreateToken()
[all …]
/external/llvm/utils/TableGen/
DCTagsEmitter.cpp32 SMLoc Loc;
34 Tag(const std::string &Name, const SMLoc Location) in Tag()
55 static SMLoc locate(const Record *R);
60 SMLoc CTagsEmitter::locate(const Record *R) { in locate()
61 ArrayRef<SMLoc> Locs = R->getLoc(); in locate()
62 return !Locs.empty() ? Locs.front() : SMLoc(); in locate()
/external/llvm/lib/Target/Mips/AsmParser/
DMipsAsmParser.cpp133 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
139 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
146 SMLoc NameLoc, OperandVector &Operands) override;
153 StringRef Identifier, SMLoc S);
155 SMLoc S);
177 tryExpandInstruction(MCInst &Inst, SMLoc IDLoc,
180 bool expandJalWithRegs(MCInst &Inst, SMLoc IDLoc,
184 bool Is32BitImm, bool IsAddress, SMLoc IDLoc,
188 unsigned SrcReg, bool Is32BitSym, SMLoc IDLoc,
191 bool expandLoadImm(MCInst &Inst, bool Is32BitImm, SMLoc IDLoc,
[all …]
/external/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp55 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/ARM/AsmParser/
DARMAsmParser.cpp62 typedef SmallVector<SMLoc, 4> Locs;
81 void recordFnStart(SMLoc L) { FnStartLocs.push_back(L); } in recordFnStart()
82 void recordCantUnwind(SMLoc L) { CantUnwindLocs.push_back(L); } in recordCantUnwind()
83 void recordPersonality(SMLoc L) { PersonalityLocs.push_back(L); } in recordPersonality()
84 void recordHandlerData(SMLoc L) { HandlerDataLocs.push_back(L); } in recordHandlerData()
85 void recordPersonalityIndex(SMLoc L) { PersonalityIndexLocs.push_back(L); } in recordPersonalityIndex()
180 void Note(SMLoc L, const Twine &Msg, ArrayRef<SMRange> Ranges = None) { in Note()
183 bool Warning(SMLoc L, const Twine &Msg, in Warning()
187 bool Error(SMLoc L, const Twine &Msg, in Error()
206 bool parseLiteralValues(unsigned Size, SMLoc L);
[all …]

1234