VMIR – Virtual Machine for LLVM Intermediate Representation
github.com
github.com
Was it just for fun? Is it for a school project? Do you want to have some way of running cross platform?
Just curious, I love projects like this, just like to understand what the motivation is.
The reason I started this was to add support for "binary" plugins to my media player/center (http://movian.tv). Movian runs on some platforms which does not allow loading code runtime (Google NaCl is one). I haven't gotten that far yet though. Still fixing stuff and testing what kind of performance I can get out of it.
Also I did it for fun and, as always, one learns a lot along the way.
Edit: I don't see a license. May I kindly suggest WTFPL or something similar?
Here it is:
Copyright (c) Year(s), Company or Person's Name
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
[0] - https://github.com/andoma/vmir/blob/master/src/bitcode.h
[1] - https://llvm.org/svn/llvm-project/llvm/trunk/include/llvm/Bi...
I'm in the camp of "I'm glad if anybody includes my code", and I still submit bug reports/patches to upstream projects with "public domain" licenses, even though I am not required to. It just makes sense, provided your employer recognizes the value it brings.
Eventually I might do some "make dist" thing that just concats it all into one amalgamation file similar to projects like Sqlite and Duktape.