Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Mono's LLVM support works by attempting to load <code>libmono-llvm.so</code> from the appropriate <code>$libdir</code>, e.g. on OSX <code>/usr/bin/mono</code> will load <code>/Library/Frameworks/Mono.framework/Libraries/libmono-llvm.dylib</code>. See the LLVM loading code in <a href="https://github.com/mono/mono/blob/master/mono/mini/mini-llvm.h" rel="nofollow">mono/mini/mini-llvm.h</a>, specifically <a href="https://github.com/mono/mono/blob/master/mono/mini/mini-llvm.h#L86" rel="nofollow">mono_llvm_load()</a> and <a href="https://github.com/mono/mono/blob/master/mono/mini/mini-llvm.h#L68" rel="nofollow">try_llvm_load()</a>.</p> <p>So it looks like if you name your LLVM backend <code>mono-llvm</code>, it will be used when you launch mono as <code>mono --llvm</code>. That said, <code>mono_llvm_load()</code> appears to require particular exports from the <code>mono-llvm</code> library, such as <code>mono_llvm_init</code> and <code>mono_llvm_cleanup</code>, so I'm sure that some additional work will be needed to your LLVM backend in order to allow Mono to use it, and I'm not sure where to find this out (other than <code>grep</code>ping for "LLVM" in Mono's sources...).</p> <p>This also means that the LLVM backend may not be reusable from a prebuilt mono; that is, you may need to build your own mono in order to use your LLVM backend, as a prebuild mono will be providing a <code>mono-llvm</code> backend that may not be pluggable. (I have no idea how pluggable or not pluggable the LLVM backend is.)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload