Home
last modified time | relevance | path

Searched refs:getLoc (Results 1 – 25 of 65) sorted by relevance

123

/external/clang/lib/Sema/
DSemaDeclAttr.cpp200 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << Num; in checkAttributeNumArgs()
219 S.Diag(Attr.getLoc(), diag::err_typecheck_ext_vector_not_typedef); in handleExtVectorTypeAttr()
231 id.setIdentifier(Attr.getParameterName(), Attr.getLoc()); in handleExtVectorTypeAttr()
248 QualType T = S.BuildExtVectorType(curType, sizeExpr, Attr.getLoc()); in handleExtVectorTypeAttr()
264 TD->addAttr(::new (S.Context) PackedAttr(Attr.getLoc(), S.Context)); in handlePackedAttr()
270 S.Diag(Attr.getLoc(), diag::warn_attribute_ignored_for_field_of_type) in handlePackedAttr()
273 FD->addAttr(::new (S.Context) PackedAttr(Attr.getLoc(), S.Context)); in handlePackedAttr()
275 S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); in handlePackedAttr()
280 TD->addAttr(::new (S.Context) MsStructAttr(Attr.getLoc(), S.Context)); in handleMsStructAttr()
282 S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); in handleMsStructAttr()
[all …]
DTargetAttributesSema.cpp33 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 1; in HandleMSP430InterruptAttr()
42 S.Diag(Attr.getLoc(), diag::err_attribute_argument_not_int) in HandleMSP430InterruptAttr()
49 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds) in HandleMSP430InterruptAttr()
55 d->addAttr(::new (S.Context) MSP430InterruptAttr(Attr.getLoc(), S.Context, Num)); in HandleMSP430InterruptAttr()
56 d->addAttr(::new (S.Context) UsedAttr(Attr.getLoc(), S.Context)); in HandleMSP430InterruptAttr()
78 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 1; in HandleMBlazeInterruptHandlerAttr()
84 d->addAttr(::new (S.Context) MBlazeInterruptHandlerAttr(Attr.getLoc(), in HandleMBlazeInterruptHandlerAttr()
86 d->addAttr(::new (S.Context) UsedAttr(Attr.getLoc(), S.Context)); in HandleMBlazeInterruptHandlerAttr()
93 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 1; in HandleMBlazeSaveVolatilesAttr()
99 d->addAttr(::new (S.Context) MBlazeSaveVolatilesAttr(Attr.getLoc(), in HandleMBlazeSaveVolatilesAttr()
[all …]
DSemaType.cpp75 SourceLocation loc = attr.getLoc(); in diagnoseBadTypeAttribute()
2672 TL.setAttrNameLoc(attrs->getLoc()); in fillAttributedTypeLoc()
3070 S.Diag(Attr.getLoc(), diag::err_attribute_address_multiple_qualifiers); in HandleAddressSpaceTypeAttribute()
3077 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 1; in HandleAddressSpaceTypeAttribute()
3085 S.Diag(Attr.getLoc(), diag::err_attribute_address_space_not_int) in HandleAddressSpaceTypeAttribute()
3094 S.Diag(Attr.getLoc(), diag::err_attribute_address_space_negative) in HandleAddressSpaceTypeAttribute()
3104 S.Diag(Attr.getLoc(), diag::err_attribute_address_space_too_high) in HandleAddressSpaceTypeAttribute()
3127 S.Diag(attr.getLoc(), diag::err_attr_objc_ownership_redundant) in handleObjCOwnershipTypeAttr()
3133 S.Diag(attr.getLoc(), diag::err_attribute_argument_n_not_string) in handleObjCOwnershipTypeAttr()
3149 S.Diag(attr.getLoc(), diag::warn_attribute_type_not_supported) in handleObjCOwnershipTypeAttr()
[all …]
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp1093 SMLoc S = Parser.getTok().getLoc(); in TryParseShiftRegister()
1130 SMLoc ImmLoc = Parser.getTok().getLoc(); in TryParseShiftRegister()
1154 SMLoc L = Parser.getTok().getLoc(); in TryParseShiftRegister()
1160 Error (Parser.getTok().getLoc(), in TryParseShiftRegister()
1168 S, Parser.getTok().getLoc())); in TryParseShiftRegister()
1182 SMLoc S = Parser.getTok().getLoc(); in TryParseRegisterWithWriteBack()
1187 Operands.push_back(ARMOperand::CreateReg(RegNo, S, Parser.getTok().getLoc())); in TryParseRegisterWithWriteBack()
1192 ExclaimTok.getLoc())); in TryParseRegisterWithWriteBack()
1247 SMLoc S = Parser.getTok().getLoc(); in tryParseCoprocNumOperand()
1265 SMLoc S = Parser.getTok().getLoc(); in tryParseCoprocRegOperand()
[all …]
/external/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp378 StartLoc = TokPercent.getLoc(); in ParseRegister()
383 return Error(Tok.getLoc(), "invalid register name"); in ParseRegister()
397 return Error(Tok.getLoc(), "riz register in 64-bit mode only"); in ParseRegister()
402 EndLoc = Tok.getLoc(); in ParseRegister()
413 return Error(IntTok.getLoc(), "expected stack index"); in ParseRegister()
423 default: return Error(IntTok.getLoc(), "invalid stack index"); in ParseRegister()
427 return Error(Parser.getTok().getLoc(), "expected ')'"); in ParseRegister()
429 EndLoc = Tok.getLoc(); in ParseRegister()
450 EndLoc = Tok.getLoc(); in ParseRegister()
457 return Error(Tok.getLoc(), "invalid register name"); in ParseRegister()
[all …]
/external/llvm/utils/TableGen/
DPseudoLoweringEmitter.cpp47 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()
DCodeGenRegisters.cpp57 throw TGError(TheDef->getLoc(), "Register " + getName() + in getSubRegs()
64 throw TGError(TheDef->getLoc(), "SubRegIndex " + Indices[i]->getName() + in getSubRegs()
98 throw TGError(TheDef->getLoc(), "Invalid dag '" + in getSubRegs()
103 throw TGError(TheDef->getLoc(), "Invalid SubClassIndex in " + in getSubRegs()
112 throw TGError(TheDef->getLoc(), "Invalid SubClassIndex in " + in getSubRegs()
117 throw TGError(TheDef->getLoc(), "Composite " + Pat->getAsString() + in getSubRegs()
168 throw TGError(Def->getLoc(), "SubRegIndices and SubRegs size mismatch"); in expand()
170 throw TGError(Def->getLoc(), "Tuples must have at least 2 sub-registers"); in expand()
206 Record *NewReg = new Record(Name, Def->getLoc(), Def->getRecords()); in expand()
292 throw TGError(R->getLoc(), " AltOrder register " + Reg->getName() + in CodeGenRegisterClass()
[all …]
DCodeGenInstruction.cpp479 throw TGError(R->getLoc(), "result of inst alias should be an instruction"); in CodeGenInstAlias()
495 throw TGError(R->getLoc(), "result value $" + Result->getArgName(i) + in CodeGenInstAlias()
510 throw TGError(R->getLoc(), "not enough arguments for instruction!"); in CodeGenInstAlias()
516 R->getLoc(), T, ResOp)) { in CodeGenInstAlias()
529 throw TGError(R->getLoc(), "not enough arguments for instruction!"); in CodeGenInstAlias()
532 R->getLoc(), T, ResOp)) { in CodeGenInstAlias()
537 throw TGError(R->getLoc(), "result argument #" + utostr(AliasOpNo) + in CodeGenInstAlias()
544 throw TGError(R->getLoc(), "result argument #" + utostr(AliasOpNo) + in CodeGenInstAlias()
550 throw TGError(R->getLoc(), "too many operands for instruction!"); in CodeGenInstAlias()
DTGParser.cpp383 Result.RefLoc = Lex.getLoc(); in ParseSubClassReference()
428 Result.RefLoc = Lex.getLoc(); in ParseSubMultiClassReference()
532 SMLoc StartLoc = Lex.getLoc(); in ParseOptionalRangeList()
554 SMLoc StartLoc = Lex.getLoc(); in ParseOptionalBitList()
639 SMLoc Loc = Lex.getLoc(); in ParseIDValue()
803 SMLoc OpLoc = Lex.getLoc(); in ParseOperation()
1068 SMLoc NameLoc = Lex.getLoc(); in ParseSimpleValue()
1116 SMLoc BraceLoc = Lex.getLoc(); in ParseSimpleValue()
1313 SMLoc CurlyLoc = Lex.getLoc(); in ParseValue()
1335 SMLoc SquareLoc = Lex.getLoc(); in ParseValue()
[all …]
DAsmMatcherEmitter.cpp742 throw TGError(TheDef->getLoc(), in TokenizeAsmString()
752 throw TGError(TheDef->getLoc(), "instruction with empty asm string"); in Validate()
757 throw TGError(TheDef->getLoc(), in Validate()
765 throw TGError(TheDef->getLoc(), in Validate()
779 throw TGError(TheDef->getLoc(), in Validate()
787 throw TGError(TheDef->getLoc(), in Validate()
825 throw TGError(TheDef->getLoc(), Err); in getSingletonRegisterForAsmOperand()
891 throw TGError(Rec->getLoc(), "RegisterOperand `" + Rec->getName() + in getOperandClass()
895 throw TGError(Rec->getLoc(), "register class has no class info!"); in getOperandClass()
902 throw TGError(Rec->getLoc(), "register class has no class info!"); in getOperandClass()
[all …]
DTGLexer.cpp35 SMLoc TGLexer::getLoc() const { in getLoc() function in TGLexer
254 PrintError(getLoc(), "Expected filename after include"); in LexInclude()
266 PrintError(getLoc(), "Could not find include file '" + Filename + "'"); in LexInclude()
DError.cpp36 PrintError(Error.getLoc(), Error.getMessage()); in PrintError()
/external/llvm/lib/MC/MCParser/
DAsmParser.cpp405 int NewBuf = SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile); in EnterIncludeFile()
490 PrintMessage(getLexer().getLoc(), "assembler local symbol '" + in Run()
526 const char *Start = getTok().getLoc().getPointer(); in ParseStringToEndOfStatement()
532 const char *End = getTok().getLoc().getPointer(); in ParseStringToEndOfStatement()
545 EndLoc = Lexer.getLoc(); in ParseParenExpr()
559 EndLoc = Lexer.getLoc(); in ParseBracketExpr()
586 EndLoc = Lexer.getLoc(); in ParsePrimaryExpr()
621 SMLoc Loc = getTok().getLoc(); in ParsePrimaryExpr()
624 EndLoc = Lexer.getLoc(); in ParsePrimaryExpr()
636 EndLoc = Lexer.getLoc(); in ParsePrimaryExpr()
[all …]
DCOFFAsmParser.cpp273 SMLoc startLoc = getLexer().getLoc(); in ParseSEHDirectiveSetFrame()
290 SMLoc startLoc = getLexer().getLoc(); in ParseSEHDirectiveAllocStack()
314 SMLoc startLoc = getLexer().getLoc(); in ParseSEHDirectiveSaveReg()
341 SMLoc startLoc = getLexer().getLoc(); in ParseSEHDirectiveSaveXMM()
361 SMLoc startLoc = getLexer().getLoc(); in ParseSEHDirectivePushFrame()
388 SMLoc startLoc = getLexer().getLoc(); in ParseAtUnwindOrAtExcept()
402 SMLoc startLoc = getLexer().getLoc(); in ParseSEHRegisterNumber()
DMCAsmLexer.cpp21 SMLoc MCAsmLexer::getLoc() const { in getLoc() function in MCAsmLexer
25 SMLoc AsmToken::getLoc() const { in getLoc() function in AsmToken
DDarwinAsmParser.cpp410 SMLoc Loc = getLexer().getLoc(); in ParseDirectiveSection()
523 SMLoc IDLoc = getLexer().getLoc(); in ParseDirectiveTBSS()
536 SMLoc SizeLoc = getLexer().getLoc(); in ParseDirectiveTBSS()
544 Pow2AlignmentLoc = getLexer().getLoc(); in ParseDirectiveTBSS()
606 SMLoc IDLoc = getLexer().getLoc(); in ParseDirectiveZerofill()
619 SMLoc SizeLoc = getLexer().getLoc(); in ParseDirectiveZerofill()
627 Pow2AlignmentLoc = getLexer().getLoc(); in ParseDirectiveZerofill()
DELFAsmParser.cpp175 SMLoc FirstLoc = getLexer().getLoc(); in ParseSectionName()
188 SMLoc PrevLoc = getLexer().getLoc(); in ParseSectionName()
206 if (PrevLoc.getPointer() + CurSize != getTok().getLoc().getPointer()) in ParseSectionName()
419 TypeLoc = getLexer().getLoc(); in ParseDirectiveType()
DMCAsmParser.cpp37 Error(getLexer().getLoc(), Msg); in TokError()
/external/llvm/lib/Target/MBlaze/AsmParser/
DMBlazeAsmParser.cpp396 SMLoc S = Parser.getTok().getLoc(); in ParseRegister()
397 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in ParseRegister()
423 SMLoc S = Parser.getTok().getLoc(); in ParseFsl()
424 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in ParseFsl()
440 SMLoc S = Parser.getTok().getLoc(); in ParseImmediate()
441 SMLoc E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1); in ParseImmediate()
476 Error(Parser.getTok().getLoc(), "unknown operand"); in ParseOperand()
528 return ParseDirectiveWord(2, DirectiveID.getLoc()); in ParseDirective()
/external/llvm/lib/AsmParser/
DLLParser.h139 return Error(Lex.getLoc(), Msg); in TokError()
160 *Loc = Lex.getLoc();
169 Loc = Lex.getLoc(); in ParseUInt32()
218 Loc = Lex.getLoc();
281 Loc = Lex.getLoc(); in ParseValue()
290 Loc = Lex.getLoc(); in ParseTypeAndValue()
DLLLexer.h56 LocTy getLoc() const { return SMLoc::getFromPointer(TokStart); } in getLoc() function
66 bool Error(const Twine &Msg) const { return Error(getLoc(), Msg); } in Error()
DLLParser.cpp296 LocTy TypeLoc = Lex.getLoc(); in ParseUnnamedType()
327 LocTy NameLoc = Lex.getLoc(); in ParseNamedType()
395 LocTy NameLoc = Lex.getLoc(); in ParseUnnamedGlobal()
400 return Error(Lex.getLoc(), "variable expected to be numbered '%" + in ParseUnnamedGlobal()
424 LocTy NameLoc = Lex.getLoc(); in ParseNamedGlobal()
476 ForwardRefMDNodes[MID] = std::make_pair(FwdNode, Lex.getLoc()); in ParseMDNodeID()
571 LocTy LinkageLoc = Lex.getLoc(); in ParseAlias()
586 LocTy AliaseeLoc = Lex.getLoc(); in ParseAlias()
881 LocTy AttrLoc = Lex.getLoc(); in ParseOptionalAttrs()
1073 SMLoc Loc = Lex.getLoc(); in ParseInstructionMetadata()
[all …]
/external/clang/lib/CodeGen/
DCodeGenAction.cpp177 LSM.getMemoryBuffer(LSM.FindBufferContainingLoc(D.getLoc())); in ConvertBackendLocation()
186 unsigned Offset = D.getLoc().getPointer() - LBuf->getBufferStart(); in ConvertBackendLocation()
208 if (D.getLoc() != SMLoc()) in InlineAsmDiagHandler2()
218 if (D.getLoc().isValid()) in InlineAsmDiagHandler2()
/external/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h74 SMLoc getLoc() const;
153 SMLoc getLoc() const;
/external/llvm/lib/MC/MCDisassembler/
DEDToken.cpp107 const char *wsPointer = asmTokens.begin()->getLoc().getPointer(); in tokenize()
112 SMLoc tokenLoc = tokenIterator->getLoc(); in tokenize()

123