Lines Matching defs:Error

89   bool error(const SMDiagnostic &Error, SMRange SourceRange);
176 SMDiagnostic diagFromMIStringDiag(const SMDiagnostic &Error,
181 SMDiagnostic diagFromBlockStringDiag(const SMDiagnostic &Error,
223 bool MIRParserImpl::error(const SMDiagnostic &Error, SMRange SourceRange) {
224 assert(Error.getKind() == SourceMgr::DK_Error && "Expected an error");
225 reportDiagnostic(diagFromMIStringDiag(Error, SourceRange));
267 SMDiagnostic Error;
268 M = parseAssembly(MemoryBufferRef(BSN->getValue(), Filename), Error,
271 reportDiagnostic(diagFromBlockStringDiag(Error, BSN->getSourceRange()));
487 SMDiagnostic Error;
503 if (parseNamedRegisterReference(PFS, Reg, ArgRegPair.Reg.Value, Error))
504 return error(Error, ArgRegPair.Reg.SourceRange);
589 SMDiagnostic Error;
595 if (parseMachineBasicBlockDefinitions(PFS, BlockStr, Error)) {
597 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange));
623 if (parseMachineInstructions(PFS, InsnStr, Error)) {
625 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange));
640 if (TM.parseMachineFunctionInfo(*YamlMF.MachineFuncInfo, PFS, Error,
642 return error(Error, SrcRange);
679 SMDiagnostic Error;
715 VReg.PreferredRegister.Value, Error))
716 return error(Error, VReg.PreferredRegister.SourceRange);
733 if (parseNamedRegisterReference(PFS, Reg, LiveIn.Register.Value, Error))
734 return error(Error, LiveIn.Register.SourceRange);
739 Error))
740 return error(Error, LiveIn.VirtualRegister.SourceRange);
752 if (parseNamedRegisterReference(PFS, Reg, RegSource.Value, Error))
753 return error(Error, RegSource.SourceRange);
768 bool Error = false;
776 Error = true;
783 Error = true;
825 return Error;
896 SMDiagnostic Error;
899 Error))
900 return error(Error, Object.EntryValueRegister.SourceRange);
960 SMDiagnostic Error;
962 if (parseStackObjectReference(PFS, FI, YamlMFI.StackProtector.Value, Error))
963 return error(Error, YamlMFI.StackProtector.SourceRange);
968 SMDiagnostic Error;
970 if (parseStackObjectReference(PFS, FI, YamlMFI.FunctionContext.Value, Error))
971 return error(Error, YamlMFI.FunctionContext.SourceRange);
984 SMDiagnostic Error;
985 if (parseNamedRegisterReference(PFS, Reg, RegisterSource.Value, Error))
986 return error(Error, RegisterSource.SourceRange);
1046 SMDiagnostic Error;
1047 if (llvm::parseMDNode(PFS, Node, Source.Value, Error))
1048 return error(Error, Source.SourceRange);
1057 SMDiagnostic Error;
1064 parseConstantValue(YamlConstant.Value.Value, Error, M));
1066 return error(Error, YamlConstant.Value.SourceRange);
1104 SMDiagnostic Error;
1105 if (llvm::parseMBBReference(PFS, MBB, Source.Value, Error))
1106 return error(Error, Source.SourceRange);
1112 SMDiagnostic Error;
1113 if (llvm::parseMachineMetadata(PFS, Source.Value, Source.SourceRange, Error))
1114 return error(Error, Source.SourceRange);
1164 SMDiagnostic MIRParserImpl::diagFromMIStringDiag(const SMDiagnostic &Error,
1172 Loc = Loc.getFromPointer(Loc.getPointer() + Error.getColumnNo() +
1176 return SM.GetMessage(Loc, Error.getKind(), Error.getMessage(), {},
1177 Error.getFixIts());
1180 SMDiagnostic MIRParserImpl::diagFromBlockStringDiag(const SMDiagnostic &Error,
1187 unsigned Line = LineAndColumn.first + Error.getLineNo() - 1;
1188 unsigned Column = Error.getColumnNo();
1189 StringRef LineStr = Error.getLineContents();
1190 SMLoc Loc = Error.getLoc();
1199 auto Indent = LineStr.find(Error.getLineContents());
1206 return SMDiagnostic(SM, Loc, Filename, Line, Column, Error.getKind(),
1207 Error.getMessage(), LineStr, Error.getRanges(),
1208 Error.getFixIts());
1231 StringRef Filename, SMDiagnostic &Error, LLVMContext &Context,
1235 Error = SMDiagnostic(Filename, SourceMgr::DK_Error,