SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [OpenMP][Offloading] Fix the issue that omp_get_num_devices returns (details)
  2. [APFloat][unittest] Fix -Wunused-variable after D69773 (details)
  3. [Attr][Doc][NFC] Fix code snippet formatting for attribute documentation (details)
Commit 9148b8b734e7279c86a7a75883efdfdf48e8d148 by a.bataev
[OpenMP][Offloading] Fix the issue that omp_get_num_devices returns
wrong number of devices, by Shiley Tian.
Summary: This patch is to fix issue in the following simple case:
  #include <omp.h>
#include <stdio.h>
  int main(int argc, char *argv[]) {
   int num = omp_get_num_devices();
   printf("%d\n", num);
    return 0;
}
Currently it returns 0 even devices exist. Since this file doesn't
contain any target region, the host entry is empty so further actions
like initialization will not be proceeded, leading to wrong device
number returned by runtime function call.
Reviewers: jdoerfert, ABataev, protze.joachim
Reviewed By: ABataev
Subscribers: protze.joachim
Tags: #openmp
Differential Revision: https://reviews.llvm.org/D72576
The file was addedopenmp/libomptarget/test/api/omp_get_num_devices_with_empty_target.c
The file was modifiedopenmp/libomptarget/src/omptarget.cpp
The file was modifiedopenmp/libomptarget/src/rtl.cpp
Commit a95965d467c2de06625066e310a2c385ebbc40a5 by maskray
[APFloat][unittest] Fix -Wunused-variable after D69773
The file was modifiedllvm/unittests/ADT/APFloatTest.cpp
Commit dd18729b2a7a23b76b8d74fbf4f4bb4efbe8aa97 by alexey.bader
[Attr][Doc][NFC] Fix code snippet formatting for attribute documentation
Reviewers: aaron.ballman, Fznamznon
Subscribers: ebevhan, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D73104
The file was modifiedclang/include/clang/Basic/AttrDocs.td