[LLVMbugs] [Bug 15026] New: opt should raise an error for unsupported target triples.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 21 14:53:36 PST 2013


             Bug #: 15026
           Summary: opt should raise an error for unsupported target
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: atrick at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

opt currently attempts to load target information for the target triple
specified in the bitcode. If the triple does not match a known target, it
silently uses unknown target information. This can cause subtle changes in
compiler behavior that are difficult to track down.

A better approach would be for opt to enforce that a backend exists for the
specified triple.

Like llc, -mtriple could be used to override the target triple, providing a way
to bypass the error.

For example, prior to r172534, the behavior of this test changed dependning on
whether the host compiler had built the X86 backend. The test failed with a
native ARM-only compiler:

Fixing this behavior requires cleaning up the test cases, see PR15025.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list