SuccessChanges

Summary

  1. Revert "recommit "[HIP] Add default header and include path"" (details)
  2. [gn build] Port 29203480632 (details)
  3. [mlir][mlir-rocm-runner] Detect HIP version and AMD ISA version. (details)
  4. [ORC] Always use ObjectLinkingLayer/JITLink for MachO on x86-64 and arm64. (details)
Commit 2920348063221a0603ee96909536bc480f43a7ac by thakis
Revert "recommit "[HIP] Add default header and include path""

This reverts commit 1fa43e0b34d9736f62c6c1b6c371a5e39cd1624d.
Still breaks tests on several bots, see https://reviews.llvm.org/D81176
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_isa_version_803.bc
The file was removedclang/lib/Headers/__clang_hip_libdevice_declares.h
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_unsafe_math_on.bc
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_wavefrontsize64_on.bc
The file was modifiedclang/lib/Headers/CMakeLists.txt
The file was modifiedclang/test/Preprocessor/hip-host-cpu-macros.cu
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/opencl.bc
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_finite_only_on.bc
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_isa_version_1010.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/ocml.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/hip.bc
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_finite_only_off.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_isa_version_900.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/opencl.bc
The file was modifiedclang/lib/Driver/ToolChains/MSVC.h
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_wavefrontsize64_off.bc
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_isa_version_900.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_unsafe_math_off.bc
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.h
The file was removedclang/lib/Driver/ToolChains/ROCm.h
The file was modifiedclang/lib/Driver/ToolChains/Linux.h
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Driver/ToolChains/Cuda.cpp
The file was modifiedclang/lib/Driver/ToolChains/Gnu.h
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_isa_version_1011.bc
The file was modifiedclang/test/Driver/rocm-detect.hip
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_unsafe_math_on.bc
The file was modifiedclang/lib/Driver/ToolChains/MSVC.cpp
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_finite_only_off.bc
The file was removedclang/lib/Headers/__clang_hip_math.h
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_correctly_rounded_sqrt_off.bc
The file was modifiedclang/lib/Driver/ToolChains/HIP.cpp
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_wavefrontsize64_off.bc
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.cpp
The file was modifiedclang/lib/Driver/ToolChains/Linux.cpp
The file was modifiedclang/test/Driver/rocm-not-found.cl
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_daz_opt_on.bc
The file was removedclang/lib/Headers/__clang_hip_runtime_wrapper.h
The file was modifiedclang/test/Driver/rocm-detect.cl
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_unsafe_math_off.bc
The file was removedclang/test/Driver/Inputs/rocm/include/hip/hip_runtime.h
The file was removedclang/test/Driver/hip-include-path.hip
The file was modifiedclang/test/Driver/rocm-device-libs.cl
The file was modifiedclang/include/clang/Driver/ToolChain.h
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_daz_opt_on.bc
The file was modifiedclang/lib/Driver/ToolChains/HIP.h
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_isa_version_1011.bc
The file was modifiedclang/test/Driver/hip-device-libs.hip
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/ocml.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_isa_version_1010.bc
The file was modifiedclang/lib/Driver/ToolChains/Gnu.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticDriverKinds.td
The file was modifiedclang/lib/Headers/__clang_cuda_math_forward_declares.h
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_daz_opt_off.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_finite_only_on.bc
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_correctly_rounded_sqrt_off.bc
The file was modifiedclang/lib/Driver/ToolChain.cpp
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_isa_version_1012.bc
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/ockl.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_isa_version_803.bc
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/hip.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_daz_opt_off.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/ockl.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_wavefrontsize64_on.bc
The file was addedclang/test/Driver/Inputs/rocm-device-libs/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc
The file was removedclang/test/Driver/Inputs/rocm/amdgcn/bitcode/oclc_isa_version_1012.bc
Commit 473220c4df7fcb5e5079b2f20f771bb02d0f19d8 by llvmgnsyncbot
[gn build] Port 29203480632
The file was modifiedllvm/utils/gn/secondary/clang/lib/Headers/BUILD.gn
Commit 47073ccd4e78e33ec3d21ac2b2809ea8e193655a by whchung
[mlir][mlir-rocm-runner] Detect HIP version and AMD ISA version.

Summary:
Prior to ROCm / HIP 3.5, HSA code object V2 is the default binary format.
Starting from ROCm 3.5, HSA code object V3 becomes default.

Also invoke `rocm_agent_enumerator` to detect proper AMD ISA version on the
system. Use `gfx900` as the fallback value.

Reviewers: jerryyin yaxunl

Subscribers: mgorny, yaxunl, mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, frgossen, Kayjukh, jurahul, msifontes

Tags: #mlir

Differential Revision: https://reviews.llvm.org/D81309
The file was modifiedmlir/tools/mlir-rocm-runner/mlir-rocm-runner.cpp
The file was modifiedmlir/tools/mlir-rocm-runner/CMakeLists.txt
Commit e429cffd4f228f70c1d9df0e5d77c08590dd9766 by Lang Hames
[ORC] Always use ObjectLinkingLayer/JITLink for MachO on x86-64 and arm64.

JITLink supports all code and relocation models, so there's no reason to
conditionalize using JITLink on the code or relocation model settings.

Clients wanting to use RTDyldObjectLinkingLayer/RuntimeDyld will now
need to use a custom object linking layer creator.
The file was modifiedllvm/lib/ExecutionEngine/Orc/LLJIT.cpp