From 2fd9d7df78fd56e06db7448668f23475d051667c Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Mon, 16 Apr 2018 18:58:14 -0500
Subject: [PATCH] Introduce language version 2018.2 to turn on
 ignore_boostable_into by default

---
 doc/tutorial.rst         | 2 +-
 loopy/kernel/creation.py | 2 ++
 loopy/version.py         | 8 +++++++-
 test/test_statistics.py  | 2 +-
 4 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/doc/tutorial.rst b/doc/tutorial.rst
index af8c8281c..3f2cbf5bf 100644
--- a/doc/tutorial.rst
+++ b/doc/tutorial.rst
@@ -25,7 +25,7 @@ import a few modules and set up a :class:`pyopencl.Context` and a
 
     >>> import loopy as lp
     >>> lp.set_caching_enabled(False)
-    >>> from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1
+    >>> from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2
 
     >>> from warnings import filterwarnings, catch_warnings
     >>> filterwarnings('error', category=lp.LoopyWarning)
diff --git a/loopy/kernel/creation.py b/loopy/kernel/creation.py
index bd21a5f39..cd7c4fb22 100644
--- a/loopy/kernel/creation.py
+++ b/loopy/kernel/creation.py
@@ -2030,6 +2030,8 @@ def make_kernel(domains, instructions, kernel_data=["..."], **kwargs):
 
     if lang_version >= (2018, 1):
         options = options.copy(enforce_variable_access_ordered=True)
+    if lang_version >= (2018, 2):
+        options = options.copy(ignore_boostable_into=True)
 
     if isinstance(silenced_warnings, str):
         silenced_warnings = silenced_warnings.split(";")
diff --git a/loopy/version.py b/loopy/version.py
index 2f29e806e..c731a1b1d 100644
--- a/loopy/version.py
+++ b/loopy/version.py
@@ -56,12 +56,14 @@ DATA_MODEL_VERSION = "%s-islpy%s-%s-v0" % (VERSION_TEXT, _islpy_version, _git_re
 
 
 FALLBACK_LANGUAGE_VERSION = (2017, 2, 1)
-MOST_RECENT_LANGUAGE_VERSION = (2018, 1)
+MOST_RECENT_LANGUAGE_VERSION = (2018, 2)
 
+LOOPY_USE_LANGUAGE_VERSION_2018_2 = (2018, 2)
 LOOPY_USE_LANGUAGE_VERSION_2018_1 = (2018, 1)
 LOOPY_USE_LANGUAGE_VERSION_2017_2_1 = (2017, 2, 1)
 
 LANGUAGE_VERSION_SYMBOLS = [
+        "LOOPY_USE_LANGUAGE_VERSION_2018_2",
         "LOOPY_USE_LANGUAGE_VERSION_2018_1",
         "LOOPY_USE_LANGUAGE_VERSION_2017_2_1",
         ]
@@ -116,6 +118,10 @@ will work hard to avoid backward-incompatible language changes.)
 History of Language Versions
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
+.. data:: LOOPY_USE_LANGUAGE_VERSION_2018_2
+
+    :attr:`loopy.Options.ignore_boostable_into` is turned on by default.
+
 .. data:: LOOPY_USE_LANGUAGE_VERSION_2018_1
 
     :attr:`loopy.Options.enforce_variable_access_ordered`
diff --git a/test/test_statistics.py b/test/test_statistics.py
index e42c43f60..51319bdcf 100644
--- a/test/test_statistics.py
+++ b/test/test_statistics.py
@@ -36,7 +36,7 @@ from loopy.statistics import CountGranularity as CG
 from pymbolic.primitives import Variable
 
 
-from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_1  # noqa
+from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2  # noqa
 
 
 def test_op_counter_basic():
-- 
GitLab