Changes

Summary

  1. Revert "[OpenCL] Add support of __opencl_c_pipes feature macro." (details)
  2. Fix scalar unit tests for all, any, maxloc, etc. that caused the ARM build (details)
  3. [OpenCL] opencl-c.h: add CL 3.0 non-generic address space atomics (details)
  4. Take OptimizationLevel class out of Pass Builder (details)
Commit da6626d12624675c46a73e8545fecc572695efeb by anton.zabaznov
Revert "[OpenCL] Add support of __opencl_c_pipes feature macro."

This reverts commit d1e4b25756730576996457ba7324e9bf210e3693.
The file was modifiedclang/lib/Basic/TargetInfo.cpp
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/lib/Basic/OpenCLOptions.cpp
The file was modifiedclang/test/CodeGenOpenCL/address-spaces.cl
The file was modifiedclang/test/SemaOpenCL/storageclass.cl
The file was modifiedclang/test/CodeGenOpenCL/pipe_builtin.cl
The file was modifiedclang/test/SemaOpenCL/invalid-pipes-cl1.2.cl
The file was modifiedclang/lib/Sema/Sema.cpp
The file was modifiedclang/test/CodeGenOpenCL/pipe_types_mangling.cl
The file was modifiedclang/lib/Parse/ParseDecl.cpp
The file was modifiedclang/test/Misc/opencl-c-3.0.incorrect_options.cl
The file was modifiedclang/test/CodeGenOpenCL/address-spaces-mangling.cl
The file was modifiedclang/include/clang/Basic/LangOptions.def
The file was modifiedclang/test/CodeGenOpenCL/pipe_types.cl
The file was modifiedclang/test/SemaOpenCL/invalid-pipes-cl2.0.cl
Commit dfe9895a52cda716867201b321242c136ec60163 by leairmark
Fix scalar unit tests for all, any, maxloc, etc. that caused the ARM build
to fail due to warnings as errors. Note that I could not reproduce the
problem locally, but based on the messages, I think this change will fix
the errors.

Differential Revision: https://reviews.llvm.org/D107120
The file was modifiedflang/unittests/RuntimeGTest/Reduction.cpp
Commit 3c7d2f1b67d123b748beabc91a5ca041b102b065 by airlied
[OpenCL] opencl-c.h: add CL 3.0 non-generic address space atomics

CL 2.0 introduced atomics and generic address space so there were
only one set of APIs for doing atomics, however since CL 3.0
makes generic address space optional, there has to be new sets
of atomic interfaces to handle that cases.

Reviewed By: Anastasia

Differential Revision: https://reviews.llvm.org/D106778
The file was modifiedclang/lib/Headers/opencl-c.h
Commit 7a797b2902993ad9ad9a04dcf46efc64398cd7e3 by mtrofin
Take OptimizationLevel class out of Pass Builder

Pulled out the OptimizationLevel class from PassBuilder in order to be able to access it from within the PassManager and avoid include conflicts.

Reviewed By: mtrofin

Differential Revision: https://reviews.llvm.org/D107025
The file was modifiedllvm/lib/LTO/ThinLTOCodeGenerator.cpp
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
The file was modifiedpolly/include/polly/Canonicalization.h
The file was modifiedllvm/lib/Target/BPF/BPFTargetMachine.cpp
The file was modifiedpolly/lib/Support/RegisterPasses.cpp
The file was addedllvm/include/llvm/Passes/OptimizationLevel.h
The file was modifiedllvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
The file was modifiedllvm/examples/Bye/Bye.cpp
The file was modifiedllvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
The file was modifiedllvm/tools/opt/NewPMDriver.cpp
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
The file was modifiedllvm/lib/LTO/LTOBackend.cpp
The file was modifiedllvm/include/llvm/Passes/PassBuilder.h
The file was modifiedpolly/lib/Transform/Canonicalization.cpp