/external/llvm/unittests/Support/ |
D | SourceMgrTest.cpp | 31 SMLoc getLoc(unsigned Offset) { in getLoc() function in __anon97bcb9ee0111::SourceMgrTest 37 return SMRange(getLoc(Offset), getLoc(Offset + Length)); in getRange() 52 printMessage(getLoc(4), SourceMgr::DK_Error, "message", None, None); in TEST_F() 62 printMessage(getLoc(4), SourceMgr::DK_Warning, "message", None, None); in TEST_F() 72 printMessage(getLoc(4), SourceMgr::DK_Note, "message", None, None); in TEST_F() 82 printMessage(getLoc(6), SourceMgr::DK_Error, "message", None, None); in TEST_F() 92 printMessage(getLoc(7), SourceMgr::DK_Error, "message", None, None); in TEST_F() 102 printMessage(getLoc(4), SourceMgr::DK_Error, "message", getRange(4, 3), None); in TEST_F() 112 printMessage(getLoc(4), SourceMgr::DK_Error, "message", getRange(3, 3), None); in TEST_F() 122 printMessage(getLoc(4), SourceMgr::DK_Error, "message", getRange(4, 7), None); in TEST_F() [all …]
|
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | AArch64AsmBackend.cpp | 148 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue() 156 if (Ctx) Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue() 158 Ctx->reportError(Fixup.getLoc(), "fixup not sufficiently aligned"); in adjustFixupValue() 165 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue() 170 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue() 172 Ctx->reportError(Fixup.getLoc(), "fixup must be 2-byte aligned"); in adjustFixupValue() 177 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue() 179 Ctx->reportError(Fixup.getLoc(), "fixup must be 4-byte aligned"); in adjustFixupValue() 184 Ctx->reportError(Fixup.getLoc(), "fixup value out of range"); in adjustFixupValue() 186 Ctx->reportError(Fixup.getLoc(), "fixup must be 8-byte aligned"); in adjustFixupValue() [all …]
|
D | AArch64MachObjectWriter.cpp | 94 Asm.getContext().reportError(Fixup.getLoc(), in getAArch64FixupKindMachOInfo() 175 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 186 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 193 Asm.getContext().reportError(Fixup.getLoc(), "unknown AArch64 fixup kind!"); in recordRelocation() 205 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 237 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 244 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 258 Fixup.getLoc(), in recordRelocation() 265 Fixup.getLoc(), in recordRelocation() 273 Fixup.getLoc(), "unsupported relocation with identical base"); in recordRelocation() [all …]
|
D | AArch64ELFObjectWriter.cpp | 67 Ctx.reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType() 87 Ctx.reportError(Fixup.getLoc(), in getRelocType() 103 Ctx.reportError(Fixup.getLoc(), "Unsupported pc-relative fixup kind"); in getRelocType() 109 Ctx.reportError(Fixup.getLoc(), "1-byte data relocations not supported"); in getRelocType() 135 Ctx.reportError(Fixup.getLoc(), in getRelocType() 150 Ctx.reportError(Fixup.getLoc(), in getRelocType() 165 Ctx.reportError(Fixup.getLoc(), in getRelocType() 180 Ctx.reportError(Fixup.getLoc(), in getRelocType() 201 Ctx.reportError(Fixup.getLoc(), in getRelocType() 208 Ctx.reportError(Fixup.getLoc(), in getRelocType() [all …]
|
/external/llvm/lib/Target/Mips/MCTargetDesc/ |
D | MipsAsmBackend.cpp | 72 Ctx->reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue() 82 Ctx->reportError(Fixup.getLoc(), "out of range PC19 fixup"); in adjustFixupValue() 119 Ctx->reportError(Fixup.getLoc(), "out of range PC7 fixup"); in adjustFixupValue() 129 Ctx->reportError(Fixup.getLoc(), "out of range PC10 fixup"); in adjustFixupValue() 139 Ctx->reportError(Fixup.getLoc(), "out of range PC16 fixup"); in adjustFixupValue() 148 Ctx->reportError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue() 155 Ctx->reportError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue() 161 Ctx->reportError(Fixup.getLoc(), "out of range PC18 fixup"); in adjustFixupValue() 170 Ctx->reportError(Fixup.getLoc(), "out of range PC21 fixup"); in adjustFixupValue() 179 Ctx->reportError(Fixup.getLoc(), "out of range PC26 fixup"); in adjustFixupValue() [all …]
|
/external/clang/lib/Sema/ |
D | SemaDeclAttr.cpp | 185 S.Diag(Attr.getLoc(), Diag) << Attr.getName() << Num; in checkAttributeNumArgsImpl() 228 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in checkUInt32Argument() 232 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) in checkUInt32Argument() 284 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in checkFunctionOrMethodParameterIndex() 292 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds) in checkFunctionOrMethodParameterIndex() 299 S.Diag(Attr.getLoc(), in checkFunctionOrMethodParameterIndex() 418 S.Diag(Attr.getLoc(), diag::warn_thread_attribute_decl_not_pointer) in threadSafetyCheckIsPointer() 546 S.Diag(Attr.getLoc(), diag::warn_thread_attribute_ignored) << in checkAttrArgsAreCapabilityObjs() 575 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_range) in checkAttrArgsAreCapabilityObjs() 588 S.Diag(Attr.getLoc(), diag::warn_thread_attribute_argument_not_lockable) in checkAttrArgsAreCapabilityObjs() [all …]
|
/external/clang/include/clang/Lex/ |
D | PPConditionalDirectiveRecord.h | 39 SourceLocation getLoc() const { return Loc; } in getLoc() function 48 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS.getLoc()); in operator() 51 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS); in operator() 54 return SM.isBeforeInTranslationUnit(LHS, RHS.getLoc()); in operator()
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/AsmParser/ |
D | ARMAsmParser.cpp | 1826 SMLoc SIdx = Parser.getTok().getLoc(); in tryParseRegister() 1830 SMLoc ExprLoc = Parser.getTok().getLoc(); in tryParseRegister() 1839 SMLoc E = Parser.getTok().getLoc(); in tryParseRegister() 1863 SMLoc S = Parser.getTok().getLoc(); in tryParseShiftRegister() 1900 SMLoc ImmLoc = Parser.getTok().getLoc(); in tryParseShiftRegister() 1924 SMLoc L = Parser.getTok().getLoc(); in tryParseShiftRegister() 1930 Error (Parser.getTok().getLoc(), in tryParseShiftRegister() 1939 S, Parser.getTok().getLoc())); in tryParseShiftRegister() 1942 S, Parser.getTok().getLoc())); in tryParseShiftRegister() 1956 SMLoc S = Parser.getTok().getLoc(); in tryParseRegisterWithWriteBack() [all …]
|
/external/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmParser.cpp | 66 SMLoc Result = Parser.getTok().getLoc(); in consumeToken() 874 StartLoc = PercentTok.getLoc(); in ParseRegister() 935 return Error(IntTok.getLoc(), "expected stack index"); in ParseRegister() 945 default: return Error(IntTok.getLoc(), "invalid stack index"); in ParseRegister() 949 return Error(Parser.getTok().getLoc(), "expected ')'"); in ParseRegister() 1288 return Error(Tok.getLoc(), "unknown token in expression"); in ParseIntelExpression() 1299 SMLoc IdentLoc = Tok.getLoc(); in ParseIntelExpression() 1308 return Error(Tok.getLoc(), "Unexpected identifier!"); in ParseIntelExpression() 1325 return Error(Tok.getLoc(), "Unexpected identifier!"); in ParseIntelExpression() 1330 InstInfo->AsmRewrites->emplace_back(AOK_ImmPrefix, Tok.getLoc()); in ParseIntelExpression() [all …]
|
/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86MachObjectWriter.cpp | 158 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation() 167 Fixup.getLoc(), "unsupported pc-relative relocation of difference"); in RecordX86_64Relocation() 183 Fixup.getLoc(), "unsupported relocation with identical base"); in RecordX86_64Relocation() 191 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation() 261 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation() 268 Fixup.getLoc(), "unsupported relocation of undefined symbol '" + in RecordX86_64Relocation() 288 Fixup.getLoc(), "unsupported symbol modifier in relocation"); in RecordX86_64Relocation() 316 Fixup.getLoc(), in RecordX86_64Relocation() 335 Fixup.getLoc(), "TLVP symbol modifier should have been rip-rel"); in RecordX86_64Relocation() 339 Fixup.getLoc(), "unsupported symbol modifier in relocation"); in RecordX86_64Relocation() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/AsmParser/ |
D | X86AsmParser.cpp | 397 StartLoc = TokPercent.getLoc(); in ParseRegister() 402 return Error(Tok.getLoc(), "invalid register name"); in ParseRegister() 420 return Error(Tok.getLoc(), "register %" in ParseRegister() 427 EndLoc = Tok.getLoc(); in ParseRegister() 438 return Error(IntTok.getLoc(), "expected stack index"); in ParseRegister() 448 default: return Error(IntTok.getLoc(), "invalid stack index"); in ParseRegister() 452 return Error(Parser.getTok().getLoc(), "expected ')'"); in ParseRegister() 454 EndLoc = Tok.getLoc(); in ParseRegister() 475 EndLoc = Tok.getLoc(); in ParseRegister() 482 return Error(Tok.getLoc(), "invalid register name"); in ParseRegister() [all …]
|
/external/clang/lib/Lex/ |
D | PPConditionalDirectiveRecord.cpp | 35 if (SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), low->getLoc())) in rangeIntersectsConditionalDirective() 55 if (SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(), in findConditionalDirectiveRegionLoc() 69 if (SourceMgr.isInSystemHeader(DirLoc.getLoc())) in addCondDirectiveLoc() 73 SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(), in addCondDirectiveLoc() 74 DirLoc.getLoc())); in addCondDirectiveLoc()
|
/external/llvm/lib/MC/MCParser/ |
D | AsmParser.cpp | 255 Loc = getTok().getLoc(); in getTokenLoc() 632 SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in enterIncludeFile() 647 SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in processIncbinFile() 774 Error(getTok().getLoc(), "assembler local symbol '" + in Run() 817 const char *Start = getTok().getLoc().getPointer(); in parseStringToEndOfStatement() 822 const char *End = getTok().getLoc().getPointer(); in parseStringToEndOfStatement() 827 const char *Start = getTok().getLoc().getPointer(); in parseStringToComma() 833 const char *End = getTok().getLoc().getPointer(); in parseStringToComma() 874 SMLoc FirstTokenLoc = getLexer().getLoc(); in parsePrimaryExpr() 914 SMLoc AtLoc = getLexer().getLoc(); in parsePrimaryExpr() [all …]
|
D | MCAsmLexer.cpp | 22 SMLoc MCAsmLexer::getLoc() const { in getLoc() function in MCAsmLexer 26 SMLoc AsmToken::getLoc() const { in getLoc() function in AsmToken 35 return SMRange(getLoc(), getEndLoc()); in getLocRange()
|
/external/llvm/lib/Target/AArch64/AsmParser/ |
D | AArch64AsmParser.cpp | 55 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc() function in __anon53ca61710111::AArch64AsmParser 1935 StartLoc = getLoc(); in ParseRegister() 1937 EndLoc = SMLoc::getFromPointer(getLoc().getPointer() - 1); in ParseRegister() 2024 SMLoc S = getLoc(); in tryParseSysCROperand() 2046 AArch64Operand::CreateSysCR(CRNum, S, getLoc(), getContext())); in tryParseSysCROperand() 2054 SMLoc S = getLoc(); in tryParsePrefetch() 2103 SMLoc S = getLoc(); in tryParsePSBHint() 2127 SMLoc S = getLoc(); in tryParseAdrpLabel() 2167 SMLoc E = SMLoc::getFromPointer(getLoc().getPointer() - 1); in tryParseAdrpLabel() 2178 SMLoc S = getLoc(); in tryParseAdrLabel() [all …]
|
/external/swiftshader/third_party/LLVM/lib/MC/MCParser/ |
D | AsmParser.cpp | 419 int NewBuf = SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in EnterIncludeFile() 504 PrintMessage(getLexer().getLoc(), "assembler local symbol '" + in Run() 540 const char *Start = getTok().getLoc().getPointer(); in ParseStringToEndOfStatement() 546 const char *End = getTok().getLoc().getPointer(); in ParseStringToEndOfStatement() 559 EndLoc = Lexer.getLoc(); in ParseParenExpr() 573 EndLoc = Lexer.getLoc(); in ParseBracketExpr() 600 EndLoc = Lexer.getLoc(); in ParsePrimaryExpr() 635 SMLoc Loc = getTok().getLoc(); in ParsePrimaryExpr() 638 EndLoc = Lexer.getLoc(); in ParsePrimaryExpr() 650 EndLoc = Lexer.getLoc(); in ParsePrimaryExpr() [all …]
|
D | COFFAsmParser.cpp | 307 SMLoc startLoc = getLexer().getLoc(); in ParseSEHDirectiveSetFrame() 324 SMLoc startLoc = getLexer().getLoc(); in ParseSEHDirectiveAllocStack() 348 SMLoc startLoc = getLexer().getLoc(); in ParseSEHDirectiveSaveReg() 375 SMLoc startLoc = getLexer().getLoc(); in ParseSEHDirectiveSaveXMM() 395 SMLoc startLoc = getLexer().getLoc(); in ParseSEHDirectivePushFrame() 422 SMLoc startLoc = getLexer().getLoc(); in ParseAtUnwindOrAtExcept() 436 SMLoc startLoc = getLexer().getLoc(); in ParseSEHRegisterNumber()
|
/external/swiftshader/third_party/LLVM/utils/TableGen/ |
D | PseudoLoweringEmitter.cpp | 47 throw TGError(Rec->getLoc(), in addDagOperandMapping() 86 throw TGError(Rec->getLoc(), Rec->getName() + in evaluateExpansion() 90 throw TGError(Rec->getLoc(), "Pseudo result '" + Operator->getName() + in evaluateExpansion() 96 throw TGError(Rec->getLoc(), "Pseudo result '" + Operator->getName() + in evaluateExpansion() 100 throw TGError(Rec->getLoc(), "Pseudo result '" + Operator->getName() + in evaluateExpansion() 133 throw TGError(Rec->getLoc(), in evaluateExpansion()
|
/external/llvm/lib/Target/Mips/AsmParser/ |
D | MipsAsmParser.cpp | 3336 ATReg = getATReg(Inst.getLoc()); in expandAliasImmediate() 3343 if (!loadImmediate(ImmValue, DstReg, Mips::NoRegister, Is32Bit, false, Inst.getLoc(), Out, STI)) { in expandAliasImmediate() 3397 TmpReg = getATReg(Inst.getLoc()); in expandRotation() 3403 TOut.emitRRR(Mips::SUBu, TmpReg, Mips::ZERO, TReg, Inst.getLoc(), STI); in expandRotation() 3404 TOut.emitRRR(Mips::ROTRV, DReg, SReg, TmpReg, Inst.getLoc(), STI); in expandRotation() 3409 TOut.emitRRR(Mips::ROTRV, DReg, SReg, TReg, Inst.getLoc(), STI); in expandRotation() 3431 ATReg = getATReg(Inst.getLoc()); in expandRotation() 3435 TOut.emitRRR(Mips::SUBu, ATReg, Mips::ZERO, TReg, Inst.getLoc(), STI); in expandRotation() 3436 TOut.emitRRR(FirstShift, ATReg, SReg, ATReg, Inst.getLoc(), STI); in expandRotation() 3437 TOut.emitRRR(SecondShift, DReg, SReg, TReg, Inst.getLoc(), STI); in expandRotation() [all …]
|
/external/llvm/lib/Target/Lanai/AsmParser/ |
D | LanaiAsmParser.cpp | 672 SMLoc Start = Parser.getTok().getLoc(); in parseRegister() 673 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseRegister() 698 SMLoc Start = Parser.getTok().getLoc(); in parseIdentifier() 699 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseIdentifier() 720 Error(Lexer.getLoc(), "Expected '('"); in parseIdentifier() 737 Error(Lexer.getLoc(), "Expected ')'"); in parseIdentifier() 743 End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseIdentifier() 756 SMLoc Start = Parser.getTok().getLoc(); in parseImmediate() 757 SMLoc End = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseImmediate() 787 Error(Parser.getTok().getLoc(), "Can't parse ALU operator"); in parseAluOperator() [all …]
|
/external/llvm/lib/Target/Sparc/AsmParser/ |
D | SparcAsmParser.cpp | 596 StartLoc = Tok.getLoc(); in ParseRegister() 628 SMLoc Loc = getLexer().getLoc(); in ParseInstruction() 634 SMLoc Loc = getLexer().getLoc(); in ParseInstruction() 642 Operands.push_back(SparcOperand::CreateToken("+", Parser.getTok().getLoc())); in ParseInstruction() 647 SMLoc Loc = getLexer().getLoc(); in ParseInstruction() 654 SMLoc Loc = getLexer().getLoc(); in ParseInstruction() 668 return parseDirectiveWord(1, DirectiveID.getLoc()); in ParseDirective() 671 return parseDirectiveWord(2, DirectiveID.getLoc()); in ParseDirective() 674 return parseDirectiveWord(4, DirectiveID.getLoc()); in ParseDirective() 677 return parseDirectiveWord(is64Bit() ? 8 : 4, DirectiveID.getLoc()); in ParseDirective() [all …]
|
/external/llvm/lib/Target/ARM/AsmParser/ |
D | ARMAsmParser.cpp | 3022 StartLoc = Tok.getLoc(); in ParseRegister() 3092 SMLoc S = Parser.getTok().getLoc(); in tryParseShiftRegister() 3134 SMLoc ImmLoc = Parser.getTok().getLoc(); in tryParseShiftRegister() 3161 SMLoc L = Parser.getTok().getLoc(); in tryParseShiftRegister() 3169 Error(Parser.getTok().getLoc(), in tryParseShiftRegister() 3200 Operands.push_back(ARMOperand::CreateReg(RegNo, RegTok.getLoc(), in tryParseRegisterWithWriteBack() 3206 ExclaimTok.getLoc())); in tryParseRegisterWithWriteBack() 3215 SMLoc SIdx = Parser.getTok().getLoc(); in tryParseRegisterWithWriteBack() 3226 return Error(Parser.getTok().getLoc(), "']' expected"); in tryParseRegisterWithWriteBack() 3292 SMLoc S = Parser.getTok().getLoc(); in parseITCondCode() [all …]
|
/external/llvm/lib/TableGen/ |
D | TGParser.cpp | 454 Result.RefRange.Start = Lex.getLoc(); in ParseSubClassReference() 466 Result.RefRange.End = Lex.getLoc(); in ParseSubClassReference() 489 Result.RefRange.End = Lex.getLoc(); in ParseSubClassReference() 504 Result.RefRange.Start = Lex.getLoc(); in ParseSubMultiClassReference() 511 Result.RefRange.End = Lex.getLoc(); in ParseSubMultiClassReference() 534 Result.RefRange.End = Lex.getLoc(); in ParseSubMultiClassReference() 610 SMLoc StartLoc = Lex.getLoc(); in ParseOptionalRangeList() 632 SMLoc StartLoc = Lex.getLoc(); in ParseOptionalBitList() 881 SMLoc OpLoc = Lex.getLoc(); in ParseOperation() 1175 SMLoc NameLoc = Lex.getLoc(); in ParseSimpleValue() [all …]
|
/external/llvm/utils/TableGen/ |
D | PseudoLoweringEmitter.cpp | 94 PrintFatalError(Rec->getLoc(), in addDagOperandMapping() 133 PrintFatalError(Rec->getLoc(), Rec->getName() + in evaluateExpansion() 137 PrintFatalError(Rec->getLoc(), "Pseudo result '" + Operator->getName() + in evaluateExpansion() 143 PrintFatalError(Rec->getLoc(), "Pseudo result '" + Operator->getName() + in evaluateExpansion() 147 PrintFatalError(Rec->getLoc(), "Pseudo result '" + Operator->getName() + in evaluateExpansion() 182 PrintFatalError(Rec->getLoc(), in evaluateExpansion()
|
/external/llvm/lib/Target/SystemZ/AsmParser/ |
D | SystemZAsmParser.cpp | 499 Reg.StartLoc = Parser.getTok().getLoc(); in parseRegister() 503 return Error(Parser.getTok().getLoc(), "register expected"); in parseRegister() 532 Reg.EndLoc = Parser.getTok().getLoc(); in parseRegister() 631 return Error(Parser.getTok().getLoc(), "unexpected token in address"); in parseAddress() 642 SMLoc StartLoc = Parser.getTok().getLoc(); in parseAddress() 676 SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseAddress() 728 SMLoc Loc = getLexer().getLoc(); in ParseInstruction() 768 SMLoc StartLoc = Parser.getTok().getLoc(); in parseOperand() 777 SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in parseOperand() 858 SMLoc StartLoc = Parser.getTok().getLoc(); in parsePCRel() [all …]
|