search for: printmessag

Displaying 12 results from an estimated 12 matches for "printmessag".

Did you mean: printmessage
2020 Feb 04
3
Reporting source errors from MCCodeEmitter::encodeInstruction() ?
...tting instructions (basically because the platform has configurable properties with dependencies between instructions and it was easier to check for their interaction late than try to detect them earlier, e.g. through custom encoder methods and tablegen). Emitting diagnostics through SourceManager::PrintMessage() "works" in the limited sense of communicating the problem to a human, however it doesn't prevent generation of an incorrect output file or change the process exit code. We'd prefer not to resort to report_fatal_error() since that isn't a polite way to diagnose problems in...
2017 Mar 13
2
[RFC] improvements to LLVM diagnostic infrastructure
...SourceMgr to get location info and then passed on to a diagnostics handler for printing (if it exists). This is usually wrapped in Warning() and Error() functions. For example in ARMAsmParser.cpp: Error(ImmLoc, "invalid immediate shift value"); which eventually calls SourceMgr::PrintMessage. This would change to (incrementally throughout the code-base) : Diag(ImmLoc, err_arm_invalid_immediate_shift); and pass through LLVMDiagnosticsEngine to get the diagnostic message and severity (defined in TableGen, similar to Diagnostic*Kinds.td in clang). Initially, LLVMDiagnosticsEngin...
2012 Sep 07
1
[LLVMdev] teaching FileCheck to handle variations in order
...false)); + } + CheckStrings.back().PushPos++; + continue; + } + + if (IsCheckPop) { + NextCheckPopLoc = SMLoc::getFromPointer(CheckPrefixStart); + NextCheckPopPos++; + continue; + } + + if (IsCheckHWM) { + if (NextCheckPopPos) { + SM.PrintMessage(SMLoc::getFromPointer(CheckPrefixStart), + SourceMgr::DK_Error, + "found '"+CheckPrefix+"-HWM:' without previous '"+ + CheckPrefix+ ": line"); + } + NextCheckPopLoc = SMLoc::get...
2012 Sep 07
0
[LLVMdev] teaching FileCheck to handle variations in order
On 9/7/2012 7:20 AM, Matthew Curtis wrote: > > The attached patch implements one possible solution. It introduces a > position stack and a couple of directives: > > * 'CHECK-PUSH:' pushes the current match position onto the stack. > * 'CHECK-POP:' pops the top value off of the stack and uses it to set > the current match position. > > The above
2012 Sep 07
5
[LLVMdev] teaching FileCheck to handle variations in order
...tMatch = Buffer.data(); + std::vector<StringRef> BufferStack; for (unsigned StrNo = 0, e = CheckStrings.size(); StrNo != e; ++StrNo) { const CheckString &CheckStr = CheckStrings[StrNo]; + for (int i = CheckStr.PopPos; i; --i) { + if (BufferStack.empty()) { + SM.PrintMessage(CheckStr.PopLoc, SourceMgr::DK_Error, + "attempting to '"+CheckPrefix+"-POP:' without previous '"+ + CheckPrefix+ "-PUSH:'"); + return 1; + } + Buffer= BufferStack.back(); + BufferStac...
2016 Mar 25
2
Link error on Linux
...o: In function `llvm::raw_ostream::operator<<(char)': /home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined reference to `llvm::raw_ostream::write(unsigned char)' aklo-aklo.o: In function `error(std::string)': /mnt/a2/aklo.cpp:172: undefined reference to `llvm::SourceMgr::PrintMessage(llvm::SMLoc, llvm::SourceMgr::DiagKind, llvm::Twine const&, llvm::ArrayRef<llvm::SMRange>, llvm::ArrayRef<llvm::SMFixIt>, bool) const' aklo-aklo.o: In function `print(long)': /mnt/a2/aklo.cpp:388: undefined reference to `llvm::outs()' /mnt/a2/aklo.cpp:393: undefined ref...
2016 Mar 25
3
Link error on Linux
...r)': > > /home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined reference > to > > `llvm::raw_ostream::write(unsigned char)' > > aklo-aklo.o: In function `error(std::string)': > > /mnt/a2/aklo.cpp:172: undefined reference to > > `llvm::SourceMgr::PrintMessage(llvm::SMLoc, llvm::SourceMgr::DiagKind, > > llvm::Twine const&, llvm::ArrayRef<llvm::SMRange>, > > llvm::ArrayRef<llvm::SMFixIt>, bool) const' > > aklo-aklo.o: In function `print(long)': > > /mnt/a2/aklo.cpp:388: undefined reference to `llvm::outs()&...
2016 Mar 25
0
Link error on Linux
..._ostream::operator<<(char)': > /home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined reference to > `llvm::raw_ostream::write(unsigned char)' > aklo-aklo.o: In function `error(std::string)': > /mnt/a2/aklo.cpp:172: undefined reference to > `llvm::SourceMgr::PrintMessage(llvm::SMLoc, llvm::SourceMgr::DiagKind, > llvm::Twine const&, llvm::ArrayRef<llvm::SMRange>, > llvm::ArrayRef<llvm::SMFixIt>, bool) const' > aklo-aklo.o: In function `print(long)': > /mnt/a2/aklo.cpp:388: undefined reference to `llvm::outs()' > /mnt/a2/ak...
2016 Mar 25
2
Link error on Linux
...home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined >> reference to >> > `llvm::raw_ostream::write(unsigned char)' >> > aklo-aklo.o: In function `error(std::string)': >> > /mnt/a2/aklo.cpp:172: undefined reference to >> > `llvm::SourceMgr::PrintMessage(llvm::SMLoc, llvm::SourceMgr::DiagKind, >> > llvm::Twine const&, llvm::ArrayRef<llvm::SMRange>, >> > llvm::ArrayRef<llvm::SMFixIt>, bool) const' >> > aklo-aklo.o: In function `print(long)': >> > /mnt/a2/aklo.cpp:388: undefined reference t...
2016 Mar 25
0
Link error on Linux
...;(char)': > > /home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined reference to > > `llvm::raw_ostream::write(unsigned char)' > > aklo-aklo.o: In function `error(std::string)': > > /mnt/a2/aklo.cpp:172: undefined reference to > > `llvm::SourceMgr::PrintMessage(llvm::SMLoc, llvm::SourceMgr::DiagKind, > > llvm::Twine const&, llvm::ArrayRef<llvm::SMRange>, > > llvm::ArrayRef<llvm::SMFixIt>, bool) const' > > aklo-aklo.o: In function `print(long)': > > /mnt/a2/aklo.cpp:388: undefined reference to `llvm::outs()&...
2016 Mar 25
0
Link error on Linux
...t; > /home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined reference to >> > `llvm::raw_ostream::write(unsigned char)' >> > aklo-aklo.o: In function `error(std::string)': >> > /mnt/a2/aklo.cpp:172: undefined reference to >> > `llvm::SourceMgr::PrintMessage(llvm::SMLoc, llvm::SourceMgr::DiagKind, >> > llvm::Twine const&, llvm::ArrayRef<llvm::SMRange>, >> > llvm::ArrayRef<llvm::SMFixIt>, bool) const' >> > aklo-aklo.o: In function `print(long)': >> > /mnt/a2/aklo.cpp:388: undefined reference t...
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...rseIdentifier - Parse an identifier or string (as a quoted identifier) + /// and set \arg Res to the identifier contents. + bool ParseIdentifier(StringRef &Res); + MCSymbol *CreateSymbol(StringRef Name); +private: bool ParseStatement(); - - bool TokError(const char *Msg); void PrintMessage(SMLoc Loc, const std::string &Msg, const char *Type) const; @@ -110,15 +121,7 @@ private: bool ParseBinOpRHS(unsigned Precedence, const MCExpr *&Res, SMLoc &EndLoc); bool ParseParenExpr(const MCExpr *&Res, SMLoc &EndLoc); - /// ParseIdentifier - Parse an identifi...