llvm-project/llvm/examples/Kaleidoscope/Orc/initial
Mehdi Amini 26d481311a Remove access to the DataLayout in the TargetMachine
Summary:
Replace getDataLayout() with a createDataLayout() method to make
explicit that it is intended to create a DataLayout only and not
accessing it for other purpose.

This change is the last of a series of commits dedicated to have a
single DataLayout during compilation by using always the one owned
by the module.

Reviewers: echristo

Subscribers: jholewinski, llvm-commits, rafael, yaron.keren

Differential Revision: http://reviews.llvm.org/D11103

(cherry picked from commit 5609fc56bca971e5a7efeaa6ca4676638eaec5ea)

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 243114
2015-07-24 16:04:22 +00:00
..
CMakeLists.txt [CMake] Kaleidoscope-Orc: Update libdeps. 2015-02-08 11:15:08 +00:00
Makefile [Orc][Kaleidoscope] Fix the orc/kaleidoscope tutorials on linux. 2015-02-20 02:03:30 +00:00
README.txt
toy.cpp Remove access to the DataLayout in the TargetMachine 2015-07-24 16:04:22 +00:00

README.txt

//===----------------------------------------------------------------------===/
//                 Kaleidoscope with Orc - Initial Version
//===----------------------------------------------------------------------===//

This version of Kaleidoscope with Orc demonstrates fully eager compilation. When
a function definition or top-level expression is entered it is immediately
translated (IRGen'd) to LLVM IR and added to the JIT, where it is code-gen'd to
native code and either stored (for function definitions) or executed (for
top-level expressions).

This directory contain a Makefile that allow the code to be built in a
standalone manner, independent of the larger LLVM build infrastructure. To build
the program you will need to have 'clang++' and 'llvm-config' in your path.