llvm-mirror/examples/Kaleidoscope
Mehdi Amini 29ebc2d39f Make DataLayout Non-Optional in the Module
Summary:
DataLayout keeps the string used for its creation.

As a side effect it is no longer needed in the Module.
This is "almost" NFC, the string is no longer
canonicalized, you can't rely on two "equals" DataLayout
having the same string returned by getStringRepresentation().

Get rid of DataLayoutPass: the DataLayout is in the Module

The DataLayout is "per-module", let's enforce this by not
duplicating it more than necessary.
One more step toward non-optionality of the DataLayout in the
module.

Make DataLayout Non-Optional in the Module

Module->getDataLayout() will never returns nullptr anymore.

Reviewers: echristo

Subscribers: resistor, llvm-commits, jholewinski

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

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 231270
2015-03-04 18:43:29 +00:00
..
Chapter2 cmake: Add Kaleidoscope target 2015-01-06 23:39:37 +00:00
Chapter3 cmake: Add Kaleidoscope target 2015-01-06 23:39:37 +00:00
Chapter4 Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
Chapter5 Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
Chapter6 Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
Chapter7 Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
Chapter8 Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
MCJIT Removing LLVM_DELETED_FUNCTION, as MSVC 2012 was the last reason for requiring the macro. NFC; LLVM edition. 2015-02-15 22:54:22 +00:00
Orc Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
CMakeLists.txt Add CMake build support for Orc examples (& fix some clang -Werror build 2015-02-08 07:20:04 +00:00
Makefile Add Chapter 8 to the Kaleidoscope tutorial. This chapter adds 2014-12-08 18:00:47 +00:00