Граф коммитов

13 Коммитов

Автор SHA1 Сообщение Дата
Bengu Li 5b7e9548a1 Fix LLVM BUILD path issue in LLILC CMakefile
First, we need to remove CACHE from the line to avoid any previously
wrong path name that polluted the cache and cmake might pick it up
from the cache.

Second, the way to pass LLVM Build directory in cmake command line
should be -DWITH_LLVM:STRING=[path to your llvm build directory] not
-DWITH_LLVM=[path to your llvm build directory].
2015-03-05 15:16:07 -08:00
Pat Gavlin 1d9f4e657e Build on OS X.
- Change libcoreclr probing to use find_library instead of find_path.
- Enable @rpath on OS X and set CMake policy 0042 to NEW.
2015-03-03 14:16:03 -08:00
Pat Gavlin d87123ed14 Two small fixes to {,lib/Jit/}CMakeLists.txt.
- LLVM recently bumped the required version of CMake to 2.8.12.2, which
  contains proper support for private linkage in link_target_library.
  This commit removes the workaround that had previously been in place.
- LLVM probing was slightly off for out-of-tree builds.
2015-02-25 11:33:38 -08:00
Pat Gavlin 26a8e4cc2f Accommodate out-of-tree documentation builds.
- Set LLILC_ENABLE_DOXYGEN if LLVM_ENABLE_DOXYGEN is set
- Find Doxygen and Graphviz at configure time when building out-of-tree
  or when LLILC_ENABLE_DOXYGEN is set and LLVM_ENABLE_DOXYGEN is not
2015-02-23 18:17:14 -08:00
Richard L. Ford 101a14d788 Add build target for running Doxygen
In more detail:
Modified LLILC's CMakeLists.txt to
 1. Add an LLILC_ENABLE_DOXYGEN option (ON by default)
 2. configure a Doxygen configuration file.
 3. Add a custom target, doxygen-llilc, to run doxygen.

In addition a file, Documentation/index.dox, is added that has the main page
 for the LLILC Doxygen output.

To use you need to do the following:
 1. Install Doxygen
 2. Install Graphviz, ensuring that dot is on your path.
 3. In your LLVM source directory, edit the CMakeLists.txt file so that LLVM_ENABLE_DOXYGEN is ON, or alternately when you run cmake give it an option to enable it.
 4. After you configure LLVM you can open the LLVM.sln file, right click on doxygen-llilc, and select "build". You do not need to build LLVM before doing this.
2015-02-23 15:34:48 -08:00
Pat Gavlin b1897392de Fail early if libcoreclr.so cannot be found. 2015-02-20 16:09:34 -08:00
Pat Gavlin 7b476865f6 Remove some debug messasges from CMakeLists.txt. 2015-02-20 13:29:08 -08:00
Pat Gavlin eb1fadee6c Replace LLVM-MSILC and friends with LLILC throughout the codebase. 2015-02-19 20:56:30 -08:00
Pat Gavlin 92177291e1 Small fixes for the Linux build.
- Don't use find_package for LLVM if MSILC_WITH_LLVM is defined
- Probe for libcoreclr.so whether or not we are building from within
  the LLVM tree.
- Move the definition for __stdcall outside of an outer _MSC_VER guard.
2015-02-19 15:43:17 -08:00
Pat Gavlin a805e9de69 Cleanup CMakeLists.txt.
- Remove MSILCJIT_PATH_TO_LLVM_SOURCE
- Rename MSILCJIT_PATH_TO_{LLVM_BUILD,CORECLR} to MSILC_WITH_{LLVM,CORECLR}
- Improve probing for LLVM and CoreCLR
- Switch ad-hoc discovery of certain LLVM components to definitions from
  LLVMConfig.cmake
2015-02-18 11:39:46 -08:00
Pat Gavlin 434f17a8c6 Lower FRem as a call to CORINFO_HELP_{FLT,DBL}REM.
The backend will fail to emit functions containing FRem instructions
on platforms where fmod is not available at runtime; this currently
includes CoreCLR on Windows (by default, at least).

We may be able to defer this lowering by changing the target library
options for the backend, but this likely requires a change to MCJIT.

Fixes #19.
2015-02-17 12:57:58 -08:00
Pat Gavlin f1ed3fa74f Fix errors encoutered when building with LLVM 3.7.
- libcoreclr need to be passed to the linker when linking libmsilcjit
  on Linux in order to avoid undefined symbol errors
- Replace a number of MSVC-specific attributes with their GCC/Clang
  equivalents
- Clean up some type/variable naming conflicts
- Migrate MSILCJit to use unique_ptr to track module ownership.

Don't link against libcoreclr on Windows.
2015-02-15 12:59:27 -08:00
dotnet-bot 63dbfe850d Initial commit 2015-02-12 14:54:02 -08:00