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

            Bug ID: 22458
           Summary: Interpreter chokes on intrinsics with no fallback
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Interpreter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Interpreter chokes on intrinsics such as llvm.sadd.with.overflow.i32 which are
perfectly legal on many platforms and that MCJIT is happy with.

This is because IntrinsicLowering doesn't implement every intrinsic.

There does not seem to be any workaround except to modify the function to avoid
using these intrinsics in the first place. Which of course creates additional
problems as the function could also be compiled with intrinsics…

While support for all intrinsics is tedious to maintain, a transform of an
intrinsic into an external call or an API to provide a custom IntrinsicLowering
or something similar would be welcome.

If the external call solution is favored, we probably need to fix bug #22457
first (as defining a function called "llvm.sadd.with.overflow.i32" is
difficult).

-- 
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