LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 49906 - ORC does not honor the --entry-function flag
Summary: ORC does not honor the --entry-function flag
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: OrcJIT (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Stefan Gränitz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-09 07:51 PDT by Emilio Cota
Modified: 2021-04-13 11:40 PDT (History)
4 users (show)

See Also:
Fixed By Commit(s):


Attachments
rsqrt lli example with @entry function (5.46 KB, text/plain)
2021-04-09 07:51 PDT, Emilio Cota
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emilio Cota 2021-04-09 07:51:56 PDT
Created attachment 24737 [details]
rsqrt lli example with @entry function

$ bin/lli -jit-kind=mcjit --entry-function=entry --mattr="avx512bw" --dlopen=$(pwd)/lib/libmlir_c_runner_utils.so rsqrt.lli
( 0.125, 0.25, 0.5, 1, 2, 4, 8, 16 )
( 2.82764, 1.99951, 1.41382, 0.999756, 0.706909, 0.499878, 0.353455, 0.249939 )

$ bin/lli -jit-kind=orc --entry-function=entry --mattr="avx512bw" --dlopen=$(pwd)/lib/libmlir_c_runner_utils.so rsqrt.lli
bin/lli: Symbols not found: [ main ]
Comment 1 Emilio Cota 2021-04-12 18:06:42 PDT
Using MCJIT is an effective workaround, e.g. https://reviews.llvm.org/D100344 .

Adding this note as a reminder to ourselves to clean up those invocations once this bug is fixed.
Comment 2 Mehdi Amini 2021-04-13 10:01:53 PDT
+Stefan and Lang for this, I assume it is likely just a missing plumbing between lli and ORC?
Comment 3 Lang Hames 2021-04-13 11:40:06 PDT
Hi Emilio, Mehdi,

Yep -- this was just missing plumbing. It should be fixed in 9b8e7a9d7dc7.

-- Lang.