http://llvm.org/bugs/show_bug.cgi?id=22612

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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 {
public:
  void addError(std::string ErrMsg) { Errors.push_back(std::move(ErrMsg); }
  bool allOk() const { return Errors.empty(); }
  void reset() { Errors.clear(); }
private:
  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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to