SuccessChanges

Summary

  1. Fixed the build failure of yaml2obj in XCOFFEmitter.cpp: (details)
  2. [AMDGPU][Libomptarget] Rework logic for locating kernarg pools (details)
Commit bcb20aa7701d3e2d6deef24ce26c25ed7d2dbc6b by esme.yi
Fixed the build failure of yaml2obj in XCOFFEmitter.cpp:
  error: ambiguous overload for 'operator=='
  (operand types are 'llvm::yaml::Hex16' and 'llvm::XCOFF::MagicNumber')
     Is64Bit = Obj.Header.Magic == XCOFF::XCOFF64;
The file was modifiedllvm/lib/ObjectYAML/XCOFFEmitter.cpp
Commit f5f329a37175c3a30e9d8b20b95fced96b9dde8c by Pushpinder.Singh
[AMDGPU][Libomptarget] Rework logic for locating kernarg pools

Previous logic was to always use the first kernarg pool found to allocate
kernel args. This patch changes this to use only the kernarg pool which
has non-zero size. This logic is also reworked to not use any globals.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D103600
The file was modifiedopenmp/libomptarget/plugins/amdgpu/src/rtl.cpp
The file was modifiedopenmp/libomptarget/plugins/amdgpu/impl/system.cpp
The file was modifiedopenmp/libomptarget/plugins/amdgpu/impl/internal.h