Mesa (master): clover/llvm: add 3.0 versioning.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 6 07:48:04 UTC 2020


Module: Mesa
Branch: master
Commit: 7230f39c1a2e37ff20a560ba4b9872aa8e3cd456
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7230f39c1a2e37ff20a560ba4b9872aa8e3cd456

Author: Dave Airlie <airlied at redhat.com>
Date:   Fri Nov  6 14:00:05 2020 +1000

clover/llvm: add 3.0 versioning.

Just adds the 3.0 versioning to the compiler interface.

Reviewed-by: Francisco Jerez <currojerez at riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7468>

---

 src/gallium/frontends/clover/llvm/invocation.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/frontends/clover/llvm/invocation.cpp b/src/gallium/frontends/clover/llvm/invocation.cpp
index 2516de016a8..779b28dc9b3 100644
--- a/src/gallium/frontends/clover/llvm/invocation.cpp
+++ b/src/gallium/frontends/clover/llvm/invocation.cpp
@@ -83,6 +83,7 @@ namespace {
       { "2.0", 200},
       { "2.1", 210},
       { "2.2", 220},
+      { "3.0", 300},
    };
 
     struct clc_version_lang_std {
@@ -95,6 +96,9 @@ namespace {
        { 110, clang::LangStandard::lang_opencl11},
        { 120, clang::LangStandard::lang_opencl12},
        { 200, clang::LangStandard::lang_opencl20},
+#if LLVM_VERSION_MAJOR >= 12
+       { 300, clang::LangStandard::lang_opencl30},
+#endif
     };
 
    void



More information about the mesa-commit mailing list