[llvm-bugs] [Bug 35993] New: Write a TargetMachine creation API to replace EngineBuilder

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 17 15:22:33 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=35993

            Bug ID: 35993
           Summary: Write a TargetMachine creation API to replace
                    EngineBuilder
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: OrcJIT
          Assignee: unassignedbugs at nondot.org
          Reporter: lhames at gmail.com
                CC: llvm-bugs at lists.llvm.org

ORC layers / components often need access to an llvm::TargetMachine (e.g. the
SimpleComplier class requires one). To date we've been relying on
EngineBuilder::selectTarget from ExecutionEngine, but this has a couple of
drawbacks: the interface and implementation are designed around
ExecutionEngine's assumptions (i.e. you're building an ExecutionEngine
subclass, that subclass might be an interpreter, etc.). The code is also older
and doesn't do any CPU feature detection.

We should design a new interface for building TargetMachines for LLVM JITs. It
should be clean, able to support CPU feature detection, and ideally efficiently
queryable from a remote machine (for remote execution).

-- 
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/20180117/2534865f/attachment.html>


More information about the llvm-bugs mailing list