Permalink
Browse files

Merge pull request #590 from ThePortlandGroup/nv_stage

Pull 2018-09-13T12-17 Recent NVIDIA Changes
  • Loading branch information...
sscalpone committed Sep 13, 2018
2 parents 932f7a3 + 70adb4f commit 936fcb9c9da1e23c15cffd48421e00d0ce6ad6b6
Showing with 795 additions and 391 deletions.
  1. +1 −2 runtime/flang/iishft.c
  2. +1 −3 runtime/flang/ileadz.c
  3. +1 −3 runtime/flang/ileadzi.c
  4. +2 −2 runtime/flang/ipopcnt.c
  5. +1 −3 runtime/flang/ipopcnti.c
  6. +1 −3 runtime/flang/ipoppar.c
  7. +1 −3 runtime/flang/ipoppari.c
  8. +4 −4 runtime/flang/kabs.c
  9. +5 −5 runtime/flang/kidim.c
  10. +5 −5 runtime/flang/kisign.c
  11. +5 −5 runtime/flang/kleadz.c
  12. +7 −4 runtime/flang/kmax.c
  13. +7 −4 runtime/flang/kmin.c
  14. +4 −4 runtime/flang/kpopcnt.c
  15. +5 −5 runtime/flang/kpoppar.c
  16. +5 −7 runtime/flangrti/kidnnt.c
  17. +5 −5 runtime/flangrti/knint.c
  18. +5 −7 runtime/libpgmath/lib/common/kidnnt.c
  19. +5 −5 runtime/libpgmath/lib/generic/knint.c
  20. +12 −0 tools/flang1/flang1exe/astout.c
  21. +7 −0 tools/flang1/flang1exe/kwddf.h
  22. +12 −7 tools/flang1/flang1exe/pointsto.c
  23. +27 −2 tools/flang1/flang1exe/pstride.c
  24. +105 −6 tools/flang1/flang1exe/scan.c
  25. +55 −1 tools/flang1/flang1exe/semsmp.c
  26. +2 −2 tools/flang1/flang1exe/version.c
  27. +2 −2 tools/flang1/flang1exe/version.h
  28. +2 −0 tools/flang1/utils/prstab/gram.tki
  29. +11 −2 tools/flang1/utils/prstab/gram.txt
  30. +4 −4 tools/flang2/flang2exe/cgmain.cpp
  31. +2 −0 tools/flang2/flang2exe/exp_ftn.cpp
  32. +1 −1 tools/flang2/flang2exe/expand.cpp
  33. +20 −12 tools/flang2/flang2exe/expsmp.cpp
  34. +2 −1 tools/flang2/flang2exe/ili-rewrite.cpp
  35. +15 −35 tools/flang2/flang2exe/ili.h
  36. +95 −85 tools/flang2/flang2exe/iliutil.cpp
  37. +9 −0 tools/flang2/flang2exe/ilmutil.cpp
  38. +2 −2 tools/flang2/flang2exe/llopt.cpp
  39. +1 −1 tools/flang2/flang2exe/main.cpp
  40. +25 −33 tools/flang2/flang2exe/outliner.cpp
  41. +9 −7 tools/flang2/flang2exe/outliner.h
  42. +13 −11 tools/flang2/flang2exe/symtab.cpp
  43. +77 −0 tools/flang2/flang2exe/upper.cpp
  44. +7 −0 tools/flang2/flang2exe/upper.h
  45. +4 −4 tools/flang2/flang2exe/version.cpp
  46. +10 −12 tools/flang2/flang2exe/version.h
  47. +6 −0 tools/flang2/flang2exe/x86_64-Linux/ll_abi.cpp
  48. +23 −0 tools/flang2/utils/ilitp/aarch64/ilitp.n
  49. +23 −0 tools/flang2/utils/ilitp/ppc64le/ilitp.n
  50. +87 −64 tools/flang2/utils/ilitp/x86_64/ilitp.n
  51. +4 −4 tools/flang2/utils/symtab/symtab.in.h
  52. +41 −8 tools/shared/atomic_common.h
  53. +7 −6 tools/shared/ccffinfo.c
  54. +3 −0 tools/shared/pragma.h
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
*
*/
#include "mthdecls.h"
/** \brief IISHFT intrinsic */
int
ftn_i_iishft(int i, int j)
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,8 +15,6 @@
*
*/
#include "mthdecls.h"
int
__mth_i_ileadz(int i)
{
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,8 +15,6 @@
*
*/
#include "mthdecls.h"
int
__mth_i_ileadzi(int i, int size)
{
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
int
__mth_i_ipopcnt(int i)
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,8 +15,6 @@
*
*/
#include "mthdecls.h"
int
__mth_i_ipopcnti(int i, int size)
{
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,8 +15,6 @@
*
*/
#include "mthdecls.h"
int
__mth_i_ipoppar(int ii)
{
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,8 +15,6 @@
*
*/
#include "mthdecls.h"
int
__mth_i_ipoppari(int ii, int size)
{
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,10 +15,10 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
ftn_i_kabs(_LONGLONG_T i0)
int64_t
ftn_i_kabs(int64_t i0)
{
if (i0 >= 0)
return i0;
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,12 +15,12 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
ftn_i_kidim(_LONGLONG_T i, long long j)
int64_t
ftn_i_kidim(int64_t i, int64_t j)
{
_LONGLONG_T h;
int64_t h;
h = i - j;
return h > 0 ? h : 0;
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,12 +15,12 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
ftn_i_kisign(_LONGLONG_T i, long long j)
int64_t
ftn_i_kisign(int64_t i, int64_t j)
{
_LONGLONG_T absi;
int64_t absi;
absi = i >= 0 ? i : -i;
if (j >= 0)
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,12 +15,12 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
__mth_i_kleadz(_LONGLONG_T i)
int64_t
__mth_i_kleadz(int64_t i)
{
_ULONGLONG_T ui; /* unsigned representation of 'i' */
uint64_t ui; /* unsigned representation of 'i' */
int nz; /* number of leading zero bits in 'i' */
int k;
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,7 +15,10 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
ftn_i_kmax(_LONGLONG_T i, long long j) { return i >= j ? i : j; }
int64_t
ftn_i_kmax(int64_t i, int64_t j)
{
return i >= j ? i : j;
}
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,7 +15,10 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
ftn_i_kmin(_LONGLONG_T i, long long j) { return i <= j ? i : j; }
int64_t
ftn_i_kmin(int64_t i, int64_t j)
{
return i <= j ? i : j;
}
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,10 +15,10 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
__mth_i_kpopcnt(_LONGLONG_T i)
int64_t
__mth_i_kpopcnt(int64_t i)
{
unsigned ui, uj;
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,12 +15,12 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
__mth_i_kpoppar(_LONGLONG_T ll)
int64_t
__mth_i_kpoppar(int64_t ll)
{
_LONGLONG_T ii;
int64_t ii;
ii = ll ^ ll >> 32;
ii ^= ii >> 16;
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,15 +15,13 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
int64_t
__mth_i_kidnnt(double d)
{
if (d > 0)
return ((d < 4503599627370496.0) ? (_LONGLONG_T)(d + 0.5)
: (_LONGLONG_T)(d));
return ((d < 4503599627370496.0) ? (int64_t)(d + 0.5) : (int64_t)(d));
else
return ((d > -4503599627370496.0) ? (_LONGLONG_T)(d - 0.5)
: (_LONGLONG_T)(d));
return ((d > -4503599627370496.0) ? (int64_t)(d - 0.5) : (int64_t)(d));
}
View
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,13 +15,13 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
int64_t
__mth_i_knint(float d)
{
if (d > 0)
return ((d < 8388608.f) ? (_LONGLONG_T)(d + 0.5f) : (_LONGLONG_T)(d));
return ((d < 8388608.f) ? (int64_t)(d + 0.5f) : (int64_t)(d));
else
return ((d > -8388608.f) ? (_LONGLONG_T)(d - 0.5f) : (_LONGLONG_T)(d));
return ((d > -8388608.f) ? (int64_t)(d - 0.5f) : (int64_t)(d));
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,15 +15,13 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
int64_t
__mth_i_kidnnt(double d)
{
if (d > 0)
return ((d < 4503599627370496.0) ? (_LONGLONG_T)(d + 0.5)
: (_LONGLONG_T)(d));
return ((d < 4503599627370496.0) ? (int64_t)(d + 0.5) : (int64_t)(d));
else
return ((d > -4503599627370496.0) ? (_LONGLONG_T)(d - 0.5)
: (_LONGLONG_T)(d));
return ((d > -4503599627370496.0) ? (int64_t)(d - 0.5) : (int64_t)(d));
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,13 +15,13 @@
*
*/
#include "mthdecls.h"
#include <stdint.h>
_LONGLONG_T
int64_t
__mth_i_knint(float d)
{
if (d > 0)
return ((d < 8388608.f) ? (_LONGLONG_T)(d + 0.5f) : (_LONGLONG_T)(d));
return ((d < 8388608.f) ? (int64_t)(d + 0.5f) : (int64_t)(d));
else
return ((d > -8388608.f) ? (_LONGLONG_T)(d - 0.5f) : (_LONGLONG_T)(d));
return ((d > -8388608.f) ? (int64_t)(d - 0.5f) : (int64_t)(d));
}
Oops, something went wrong.

0 comments on commit 936fcb9

Please sign in to comment.