[LLVMbugs] [Bug 22612] New: Add Orc Error Handling

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 16 18:28:53 PST 2015


            Bug ID: 22612
           Summary: Add Orc Error Handling
           Product: libraries
           Version: trunk
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: OrcJIT
          Assignee: unassignedbugs at nondot.org
          Reporter: lhames at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

There's currently no way for Orc to report errors to the user.

We sould add a JITErrorLog class and make sure a reference to it is available
in each layer. Straw man implementation:

class JITErrorLog {
  void addError(std::string ErrMsg) { Errors.push_back(std::move(ErrMsg); }
  bool allOk() const { return Errors.empty(); }
  void reset() { Errors.clear(); }
  std::vector<std::string> Errors;

More information can be added as required.

Possible gotchas: We want Orc to run multi-threaded day, but we don't want
cross-talk between threads. Syncronisation and extra support will be required
to ensure that errors are reported and responded to on the appropriate thread.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150217/afad2d78/attachment.html>

More information about the llvm-bugs mailing list