Skip to content

Commit 400d2fc

Browse files
committed
Add license and documentation.
1 parent b0eb599 commit 400d2fc

File tree

9 files changed

+768
-0
lines changed

9 files changed

+768
-0
lines changed

orc-rt/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ include(GNUInstallDirs)
1818
# Setup CMake Options
1919
#===============================================================================
2020

21+
option(ORC_RT_INCLUDE_DOCS "Build the ORC-RT documentation." ${ORC_RT_INCLUDE_DOCS})
22+
option(ORC_RT_ENABLE_ASSERTIONS "Enable assertions independent of build mode." ON)
23+
option(ORC_RT_ENABLE_PEDANTIC "Compile with pedantic enabled." ON)
24+
option(ORC_RT_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF)
25+
2126
set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to conform to")
2227
set(CMAKE_CXX_STANDARD_REQUIRED YES)
2328
set(CMAKE_CXX_EXTENSIONS NO)
@@ -27,6 +32,10 @@ set(CMAKE_FOLDER "orc-rt")
2732
# Setup Source Code
2833
#===============================================================================
2934

35+
if (ORC_RT_INCLUDE_DOCS)
36+
add_subdirectory(docs)
37+
endif()
38+
3039
add_subdirectory(include)
3140
add_subdirectory(lib)
3241
add_subdirectory(tools)

orc-rt/CREDITS.TXT

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
This file is a partial list of people who have contributed to the LLVM
2+
project. If you have contributed a patch or made some other contribution to
3+
LLVM, please submit a patch to this file to add yourself, and it will be
4+
done!
5+
6+
The list is sorted by surname and formatted to allow easy grepping and
7+
beautification by scripts. The fields are: name (N), email (E), web-address
8+
(W), PGP key ID and fingerprint (P), description (D), snail-mail address
9+
(S), and (I) IRC handle.
10+
11+
N: Lang Hames
12+
13+
D: Initial code

orc-rt/LICENSE.TXT

Lines changed: 311 additions & 0 deletions
Large diffs are not rendered by default.

orc-rt/docs/Building-ORC-RT.rst

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
.. _Building_ORC_RT:
2+
3+
==================
4+
Building ORC-RT
5+
==================
6+
7+
.. contents::
8+
:local:
9+
10+
.. _build instructions:
11+
12+
Getting Started
13+
===============
14+
15+
The basic steps needed to build orc-rt are:
16+
17+
#. Checkout llvm-project:
18+
19+
* ``cd where-you-want-llvm-to-live``
20+
* ``git clone https://github.com/llvm/llvm-project.git``
21+
22+
#. Configure and build orc-rt:
23+
24+
CMake is the only supported configuration system.
25+
26+
Clang is the preferred compiler when building and using orc-rt.
27+
28+
* ``cd where you want to build llvm``
29+
* ``mkdir build``
30+
* ``cd build``
31+
* ``cmake -G <generator> -DLLVM_ENABLE_RUNTIMES=orc-rt [options] <llvm-monorepo>/runtimes``
32+
33+
For more information about configuring orc-rt see :ref:`CMake Options`.
34+
35+
* ``make orc-rt`` --- will build orc-rt.
36+
* ``make check-orc-rt`` --- will run the test suite.
37+
38+
Shared and static libraries for orc-rt should now be present in
39+
llvm/build/lib.
40+
41+
#. **Optional**: Install orc-rt
42+
43+
Remember Use the CMake option ``CMAKE_INSTALL_PREFIX`` to select a safe
44+
place to install orc-rt.
45+
46+
* ``make install-orc-rt`` --- Will install the libraries and the headers
47+
48+
.. _CMake Options:
49+
50+
CMake Options
51+
=============
52+
53+
Here are some of the CMake variables that are used often, along with a
54+
brief explanation and LLVM-specific notes. For full documentation, check the
55+
CMake docs or execute ``cmake --help-variable VARIABLE_NAME``.
56+
57+
**CMAKE_BUILD_TYPE**:STRING
58+
Sets the build type for ``make`` based generators. Possible values are
59+
Release, Debug, RelWithDebInfo and MinSizeRel. On systems like Visual Studio
60+
the user sets the build type with the IDE settings.
61+
62+
**CMAKE_INSTALL_PREFIX**:PATH
63+
Path where LLVM will be installed if "make install" is invoked or the
64+
"INSTALL" target is built.
65+
66+
**CMAKE_CXX_COMPILER**:STRING
67+
The C++ compiler to use when building and testing orc-rt.
68+
69+
.. _orc-rt-specific options:
70+
71+
orc-rt specific options
72+
--------------------------
73+
74+
.. option:: ORC_RT_ENABLE_ASSERTIONS:BOOL
75+
76+
**Default**: ``ON``
77+
78+
Toggle assertions independent of the build mode.
79+
80+
.. option:: ORC_RT_ENABLE_PEDANTIC:BOOL
81+
82+
**Default**: ``ON``
83+
84+
Compile with -Wpedantic.
85+
86+
.. option:: ORC_RT_ENABLE_WERROR:BOOL
87+
88+
**Default**: ``ON``
89+
90+
Compile with -Werror

orc-rt/docs/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
if (LLVM_ENABLE_SPHINX)
2+
include(AddSphinxTarget)
3+
if (SPHINX_FOUND)
4+
if (${SPHINX_OUTPUT_HTML})
5+
add_sphinx_target(html orc-rt)
6+
endif()
7+
endif()
8+
endif()

orc-rt/docs/README.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ORC-RT Documentation
2+
====================
3+
4+
The ORC-RT documentation is written using the Sphinx documentation generator. It is
5+
currently tested with Sphinx 1.1.3.
6+
7+
To build the documents into html configure ORC-RT with the following cmake options:
8+
9+
* -DLLVM_ENABLE_SPHINX=ON
10+
* -DORC_RT_INCLUDE_DOCS=ON
11+
12+
After configuring ORC-RT with these options the make rule `docs-orc-rt-html`
13+
should be available.

0 commit comments

Comments
 (0)