Skip to content

Merge/hpce/develop #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 520 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
520 commits
Select commit Hold shift + click to select a range
18b1e76
Add a short main page to doxygen docu
manorom Apr 2, 2019
a709aa0
Add a test case to show internal issue #28 (handling of variable leng…
timcramer Apr 3, 2019
cb30003
Merge branch 'aurora_offloading_prototype' of git.rwth-aachen.de:NEC-…
timcramer Apr 3, 2019
cd1f600
Added array tests
Apr 5, 2019
2acd695
moved array tests
Apr 5, 2019
cd7652c
Added Array tests
Apr 5, 2019
98cd31c
VLA test
Apr 8, 2019
ab8096e
VLA tests 3d
Apr 8, 2019
48cfebe
Adjust Array tests
Apr 11, 2019
a45e083
Fix Filecheck config in CMakeLists.txt
manorom Apr 8, 2019
72f553a
Add generated argument for all dimensions of VLAs
manorom Apr 15, 2019
bc30e45
Fix typos and tests
manorom Apr 15, 2019
2116d67
Only handle dimensions of VLA which are variable
manorom Apr 15, 2019
d888436
Fix printf in test cases
manorom Apr 15, 2019
8fae6ac
Addresses memory addressing problem in vlas
manorom Apr 18, 2019
bd992b0
Address memory addressing problems in vla (2)
manorom Apr 18, 2019
48f831a
Fix array test cases
manorom Apr 18, 2019
219260b
Merge branch 'aurora_offloading_prototype' into sotoc-vla-arguments
manorom Apr 18, 2019
bcb9973
Merge branch 'sotoc-vla-arguments' into 'aurora_offloading_prototype'
manorom Apr 18, 2019
483c414
Fix test cases from merge
manorom Apr 24, 2019
a952ea3
Filter out variables which should not be params
manorom Apr 26, 2019
206c128
Merge branch 'sotoc-issue-33' into 'aurora_offloading_prototype'
manorom Apr 26, 2019
a6f22c3
One of the problems in internal issue #32 (static linking of target b…
timcramer May 14, 2019
2b6b8cc
Assume that we have 8 aurora devices present.
manorom May 15, 2019
4cc741f
Add testcases for nd arrays and multiple devices
manorom May 15, 2019
8499c7d
Added override for omp_is_initial_device()
May 15, 2019
914ae1a
Merge branch 'aurora_offloading_prototype' of https://git.rwth-aachen…
May 15, 2019
c281a3a
Fix test cases and use a macro for omp_is_initial_device instead of a…
timcramer May 17, 2019
8f5620f
Fix bug in static linking (missing object files)
manorom May 21, 2019
79ff8de
added tests from OMPVV
May 22, 2019
02151f6
Add CPATH to lit config in order to workaround internal issue #43.
timcramer May 27, 2019
72e660a
Merge branch 'master' into aurora_offloading_prototype
May 27, 2019
6ea23c6
Merge branch 'master' into aurora_offloading_prototype
May 27, 2019
2b1648e
Merge branch 'master' into aurora_offloading_prototype
May 27, 2019
ad11dbf
Fix static linking: elf_version is required and object files were not…
timcramer Jun 4, 2019
40071cc
Beautify test case a bit.
timcramer Jun 4, 2019
cf619e8
Add some slice test cases
manorom Jun 4, 2019
b0d9c56
Slice test cases
manorom Jun 4, 2019
10eb0fc
Fix typo and definition in wrapper tool
manorom Jun 4, 2019
9509aec
Add some missing headers.
timcramer Jun 4, 2019
7bbe37b
Merge branch 'aurora_offloading_prototype' of git.rwth-aachen.de:NEC-…
timcramer Jun 4, 2019
68eec5b
Fix issue with sotoc not finding some types
manorom Jun 4, 2019
6ce2133
test for num_threads array
Jun 5, 2019
efc377a
Disable hanging tests (see issue #44)
manorom Jun 5, 2019
cd32de3
Disable hanging tests (see issue #44)
manorom Jun 5, 2019
a6cbfb0
Merge branch 'sotoc-issue-39' into 'aurora_offloading_prototype'
timcramer Jun 5, 2019
bd13b45
prelim filter for Xopenmp-target
Jun 17, 2019
c01559b
Fix issue 44: Adjust mapped arrays
manorom Jun 17, 2019
344737e
Re-instate run-tests for mapped slices
manorom Jun 17, 2019
43c01c3
clang-format everything
manorom Jun 17, 2019
72f2103
Merge branch 'sotoc-issue-44' into 'aurora_offloading_prototype'
manorom Jun 18, 2019
0145a0d
Remove 'static' from global vars.
manorom Jun 19, 2019
59e7294
Merge branch 'sotoc-remove-static-vars' into 'aurora_offloading_proto…
manorom Jun 19, 2019
8fe3ff9
add Vars used in clauses
Jun 24, 2019
e921428
Move code testing whether pragma is replaceable
manorom Jun 26, 2019
e9a17ff
modified function
Jun 26, 2019
a6d4b7e
claim X args
Jul 3, 2019
0af5ead
Add nec specific pragma to omp simd
manorom Jul 3, 2019
a3903bf
Fix issue of wrong function name for target regions
manorom Jul 3, 2019
8d79131
Add regression test for mis-named region function
manorom Jul 8, 2019
de62872
Add a reproducer for internal issue #48.
timcramer Jul 9, 2019
12c9f00
split sotoc and target compiler args
Jul 10, 2019
a9a2a4a
fix int. issue 27
Jul 31, 2019
5bb7bfe
Fix generated double declaration of private vars
manorom Jul 31, 2019
35ff4a6
Merge branch 'sotoc-region-func-name' into 'aurora_offloading_prototype'
manorom Aug 5, 2019
ec92fc5
Ensure that private variables are passed by value
manorom Aug 7, 2019
4912b4c
Fix test case multiple_regions2.c for NCC
manorom Aug 7, 2019
58b757f
fix int. issue 50
Aug 7, 2019
3ad342a
Merge branch 'sotoc-issue-48-private-scopes' into 'aurora_offloading_…
manorom Aug 7, 2019
5ba341f
Update simd test cases to check for vectorization
manorom Aug 9, 2019
a600028
Merge branch 'sotoc-replace-simd' into 'aurora_offloading_prototype'
manorom Aug 9, 2019
da67096
Set number of threads in test to 1 and cleanup
manorom Aug 1, 2019
9cd3936
Set number of threads in test suite to 1
manorom Aug 1, 2019
8a0c907
Remove 'device(0)' clause from test cases
manorom Aug 1, 2019
828bc28
Use the FileCheck built with LLVM
manorom Aug 14, 2019
9b9542d
Merge branch 'sotoc-test-suite-cleanup' into 'aurora_offloading_proto…
manorom Aug 14, 2019
2359d02
Merge branch 'master' into aurora_offloading_prototype
Sep 5, 2019
3a79b75
Merge branch 'master' into aurora_offloading_prototype
Sep 5, 2019
948d569
Merge branch 'master' into aurora_offloading_prototype
Sep 5, 2019
dd654b0
after merge fixes
Sep 13, 2019
caaf6c9
Fix environment issue for sotoc tests.
timcramer Sep 16, 2019
47498a7
CMake now searches last two common versions of ncc
manorom Sep 23, 2019
fff5b1c
Use project's llvm-lit instead of system wide one
manorom Sep 23, 2019
f017947
exclude device vars and thread_limit clause
Oct 7, 2019
73c3e0b
Merge branch 'master' into aurora_offloading_prototype
Oct 7, 2019
cc826a9
Merge branch 'master' into aurora_offloading_prototype
Oct 7, 2019
8aebc99
Merge branch 'master' into aurora_offloading_prototype
Oct 7, 2019
672b09b
Q&mD fix for depend clauses
Oct 24, 2019
9736e49
Fix output of parallel_target_regions.c test case
manorom Oct 26, 2019
a26c55e
Add interface of new variable handling API
manorom Sep 25, 2019
7a988f6
Add new Variable handling API
manorom Oct 1, 2019
d521046
Implement new variable handling
manorom Oct 17, 2019
7175958
Handle parameters of OMP clauses correctly
manorom Oct 26, 2019
c4cc30a
Remove obsolete code
manorom Oct 26, 2019
e9aba95
Silence init reorder warnings
manorom Oct 28, 2019
e760445
Align linker code generation with new VEOS
manorom Oct 28, 2019
b0d9820
Merge branch 'new-symtable-generation' into 'aurora_offloading_protot…
manorom Oct 29, 2019
9456673
Merge branch 'sotoc-new-variable-handling' into 'aurora_offloading_pr…
manorom Oct 29, 2019
94bf097
Remove unused variables (post merge fixes)
manorom Oct 29, 2019
a3d8f99
Add test cases for static linking
manorom Nov 10, 2019
66dc3c1
fix for omp_target_alloc
Nov 13, 2019
85a4ef8
address internal issue #49
Nov 13, 2019
75ecad3
Add libveosinfo to be linked to the aurora plugin
manorom Nov 8, 2019
3524eca
Dynamically detect number of VE devices + cleanup
manorom Nov 8, 2019
1485a9c
More cleanup
manorom Nov 8, 2019
5196348
Comment ouf veo_proc_destroy calls
manorom Nov 17, 2019
ddb2b2a
Merge branch 'multi-device-support' into 'aurora_offloading_prototype'
manorom Nov 17, 2019
27f40b1
float handling
Nov 20, 2019
ef4f108
added comment
Nov 20, 2019
f4f69e1
fix int. issue #55
Nov 26, 2019
bb9076d
Add error message for invalid target args
timcramer Nov 27, 2019
79ec6ff
Merge branch 'aurora_offloading_prototype' of git.rwth-aachen.de:NEC-…
timcramer Nov 27, 2019
8499092
Enable multiple binaries to be loaded (+ cleanup)
manorom Dec 2, 2019
057c69f
Bump max supported VEO versiont to 7
manorom Dec 2, 2019
62ef8f8
Merge branch 'multiple-binaries-support' into 'aurora_offloading_prot…
manorom Dec 2, 2019
c06c129
protofix issue 56
Dec 18, 2019
9ec867b
Add test case for rudimentary library support
manorom Jan 6, 2020
8785c0c
Merge branches 'clang/local/monorepo/aurora_offloading_prototype', 'l…
manorom Jan 10, 2020
8b37a86
Merge branch 'master' into aurora-offloading-prototype
manorom Jan 11, 2020
82095b5
fix 56 maybe
Jan 17, 2020
ec287af
Do not use static variable to count pragma args
manorom Jan 27, 2020
28f6d10
Remove libveoshim from the NEC SX-Aurora plugin
manorom Jan 26, 2020
35c29c8
Remove libveoshim references from CMakeLists.txt
manorom Jan 26, 2020
8d08ebe
Fix comment for device init. + remove old code
manorom Jan 26, 2020
db4eff2
clang-format nec-aurora plugin for libomptarget
manorom Jan 27, 2020
1be16bf
Fix whitespace/formatting for CMakeLists.txt
manorom Jan 27, 2020
9c2ad0f
Remove dummy entry in target table
manorom Feb 10, 2020
ec5b934
Use consistent return values
manorom Feb 10, 2020
5ff4a01
Use the correct target triple in plugin
manorom Feb 10, 2020
096fd42
Remove old comment
manorom Feb 17, 2020
9a3c240
Align triple and machine name in plugin to NEC
manorom Feb 17, 2020
a347472
Rename plugin nec-aurora -> ve
manorom Feb 19, 2020
685fc08
Use C++ casts consitently in plugin
manorom Feb 19, 2020
bddc9de
Remove deprecated comment
manorom Feb 19, 2020
c5bc7ff
Fix formatting in LibomptargetGetDependencies.cmake
manorom Feb 19, 2020
5676157
Fix name of VE plugin for plugin selection
manorom Feb 19, 2020
3246acc
Merge branch 'master' into aurora-offloading-prototype
manorom Feb 25, 2020
099a1b5
Merge branch 'plugin-cleanup' into 'aurora-offloading-prototype'
manorom Feb 25, 2020
90b2b06
[sotoc] missing includes
Apr 1, 2020
24521d8
[clang] -fopenmp-nec-compiler = clang | rvclang | ncc ; added --nec-t…
Apr 3, 2020
2d5a217
Make three possible compilers configurable
manorom May 4, 2020
79e21bd
Use ncc as backend compiler for sotoc test suite
manorom May 4, 2020
529673c
Make "-fopenmp-nec-compiler" accept full paths
manorom May 25, 2020
5739bf1
Merge branch 'master' into aurora-offloading-prototype
manorom May 26, 2020
a6dd076
[ompt][sotoc] added NECAURORA_DEFAULT_TARGET_OPTION cmake flag
simoll Jun 4, 2020
9c568b4
Add test case for declare target function in lib
manorom Oct 6, 2020
21de42f
Fix multiple_devices1 test case
manorom Oct 6, 2020
fcb5dba
Enable static linking with AVEO and update paths
manorom Nov 1, 2020
4c1670f
Merge branch 'aveo-static' into 'aurora-offloading-prototype'
manorom Nov 1, 2020
0b93f2e
Fix initialization reorder warning in Visitors.h
manorom Nov 5, 2020
e2786e9
Add new interface for shapes of target vars
manorom Nov 5, 2020
eced0a7
Use new target var shape interface for code gen
manorom Nov 5, 2020
65e3456
Add comments and remove old code
manorom Nov 10, 2020
d0d85d8
Add handling of ParenTypes for target args
manorom Nov 18, 2020
697a6ae
Merge branch 'target-var-shapes' into 'aurora-offloading-prototype'
manorom Nov 18, 2020
1375037
Resolves #68
manorom Nov 24, 2020
ffa2c92
Merge branch 'master' into aurora-offloading-prototype
manorom Dec 1, 2020
ccf5ebd
Fix argument filtering in Aurora Driver Toolchain
manorom Dec 16, 2020
095afbb
Ensure correct header inclusion with omp.h
manorom Feb 3, 2021
c902a4a
Add test case for header inclusion order w/ omp.h
manorom Feb 3, 2021
f9b55f8
Merge remote-tracking branch 'upstream/main' into aurora-offloading-p…
manorom Mar 11, 2021
542d021
[VE] Split v512.32 loads with < 8 alignment
Mar 15, 2021
1aed7e4
[VP][Attrib] Allow align attribute on iN types
Mar 15, 2021
f8a2e9f
[VP][isel] emit AssertAlign for the vector length (EVL) param
Mar 15, 2021
c530e24
[VE] Use VL alignment to save on a shift
Mar 15, 2021
31d5788
WIP: Consider alignment for AVL
Mar 15, 2021
10d8154
[VE] Exploit known-even VLs for packed ops
Mar 16, 2021
7ee53f6
[VE] Fixed -mno-vepacked flag (removes -packed attrib)
Mar 17, 2021
44ecdaa
Merge remote-tracking branch 'origin/develop' into hpce/develop
Mar 18, 2021
1ad0e72
[attrib] Allow 'align 1' in Verifier tests (fixup)
Mar 18, 2021
683f410
Revert "Revert "[clang][ve] expect libc++ headers installed at top-le…
Mar 22, 2021
2e59d0c
[VE][vvp] VRSQRT contraction
Mar 31, 2021
dd128dd
[VE] Do not interleave (workaround LV<>TTI interplay bug)
Apr 13, 2021
b6d7d76
[VE][packed] Fixed lsv/lvs with constant Idx lowering
Apr 14, 2021
f6c3284
[VE] Disable LV on VE
Apr 26, 2021
cdbe698
[VP] VPBuilder::createSelect
Apr 28, 2021
9f613d2
[ve] packed vp_select, vselect isel
Apr 29, 2021
5abea3f
[ve] fix element extraction in reductions
Apr 29, 2021
356dc56
[VE][ompt] Use 've-linux' as normalized toolchain name
Apr 30, 2021
af1eaad
[VE] Fix Arch,Runtimepath, ..
May 10, 2021
7912f6f
Merge remote-tracking branch 'rwth/aurora-offloading-prototype' into …
May 10, 2021
84956a0
[omp] drop parallel loop md (even if there is no clause)
May 12, 2021
3c5a2c7
[sotoc] Default to /opt/nec/ve/bin/ncc if ncc wasn't found on the bui…
May 12, 2021
5d1662c
[omp] drop parallel loop md (even if there is no clause)
May 12, 2021
406bbf5
Merge branch 'feature/sotoc_merge' into hpce/develop
May 17, 2021
1e7b8ba
[sotoc][nfc] Fix abort on nullptr
May 18, 2021
ba9b3f2
[ve] disable ve-unroll-vector by default
May 18, 2021
9cd5652
possible pointer fix
May 28, 2021
4b95457
Merge remote-tracking branch 'rwth/pointer-type' into hpce/develop
May 31, 2021
4ceb336
remove rv submodule
Jun 11, 2021
782eafc
[omp] Declare visible target globals when device arch != target arch
Jun 21, 2021
6de0b45
[VE] Support __kmp_invoke_microtask with many arguments
kaz7 Aug 1, 2021
5a0696d
[VE] Support __kmp_invoke_microtask with many arguments
kaz7 Aug 1, 2021
f7f8ce5
Merge branch 'hpce/stable' of https://github.com/sx-aurora-dev/llvm-p…
efocht Sep 1, 2021
d57bf37
[clang] Add gcc-toolset-10 support (RHEL/CentOS 8)
Aug 30, 2021
abb1868
fix lit suite
Jul 9, 2021
e00fbc4
Add debug function and master test
Jul 13, 2021
9b8c085
fix thread limit
Aug 27, 2021
9c85ca0
Potential fix for nested pointers
Aug 11, 2021
5e0491f
Fix issue in newer code
Aug 11, 2021
b875f16
Refactor mapped variable type declaration
Aug 16, 2021
57fc2f4
Finished refactor of mapped variable type declarations
Aug 25, 2021
196fa18
remove search for new name
Aug 27, 2021
8f8be95
Lots of tiny format improvements
Aug 26, 2021
b7a9727
Nested pointer tests
Aug 26, 2021
d773a9e
Implicit first dimension test
Aug 26, 2021
c9062be
Fix for nested pointers bug
Sep 2, 2021
4eb56d8
Remove new pointer tests (for now)
Sep 3, 2021
bce0421
Add three-dimensional version of implicit first dimension test
Sep 3, 2021
40b12f0
Fix merge cosmetics.
efocht Sep 5, 2021
a877737
Merge pull request #84 from sx-aurora-dev/hpce/sotoc-stable
efocht Sep 6, 2021
13229b8
[caches] use DYLIB option for LLVM
Jul 22, 2021
40d620e
[clang] Add gcc-toolset-10 support (CentOS 8)
Jul 23, 2021
c4e4624
[caches] Don't build RVPLUG (incompatible with llvm dylib)
Jul 23, 2021
e883d96
Add RV as a component in llvm/lib - requires RV 'rvintree' version
Sep 24, 2021
ccc2f1c
Add RV submodule in component position
Sep 30, 2021
8bd6b59
[omp] Support omp declare simd on VE
Oct 4, 2021
ae61c9e
[rv] check-rv support
Oct 6, 2021
245a762
[rv] conditional preaheader fix
Oct 12, 2021
229036b
[rv] Explicitly disable rv in default pipeline tests
Oct 12, 2021
b05fc25
[test] never expect llvm lv to run on ve
Oct 13, 2021
50168b2
[test] Removed on tag too many
Oct 13, 2021
1ecf6cf
[test] Generalized align_load tests (allocas abi aligned)
Oct 13, 2021
23ca4ce
[test] Generalized align_store tests (allocas abi aligned)
Oct 13, 2021
3556014
[test] loadrri, load is unaligned
Oct 13, 2021
3b5c3a5
[test] Updated more tests for unaligned load/store
Oct 13, 2021
2e9da63
[test] force old pm for expansion test (workaround)
Oct 13, 2021
6e12ad6
[test] removed invalid RUN line
Oct 13, 2021
48197b7
[rv] update
Oct 13, 2021
b5674de
[clang][ve] Directly translate -mve-* clang flags to VE target features.
Oct 14, 2021
5471c47
[VE] Revert to 'develop' C++ include paths and remove cmake caches
Oct 15, 2021
6b63b6c
[clang] Add llvmvevars.sh script
Oct 22, 2021
f7eaa7d
[rv] update
Oct 27, 2021
a8e8285
[testing] Skip denormal tests for VE (target-supports-denormals feature)
Oct 28, 2021
e7578ce
[VE] Add MADV_DONTNEED
kaz7 Aug 12, 2021
9146025
[compiler-rt][ve] Don't test denorms on VE
Nov 1, 2021
d965d08
[rv] update
Nov 10, 2021
4300296
[VE] Silence incompatible compiler-rt tests
Nov 9, 2021
acf2392
[rv] update, fix offloading lit bug
Nov 15, 2021
4f0cad1
[llvm-ve-vars] fix script path (when sourced), fixed CPATH
Nov 22, 2021
629d3be
[sotoc] Fix sotoc DYLIB builds
Nov 25, 2021
ab3141f
[VE] Use LEGALAVL nodes to annotate pack-legal VL values
Dec 16, 2021
29d1d34
[VE] fixup LEGALAVL
Jan 14, 2022
fa0acca
[VE] Fix VVP->VSC isel (inverted addr/data operands)
Jan 21, 2022
798696b
[Clang][VE] Enable fast fpop fusion in C/C++
Jan 27, 2022
247fed2
Merge remote-tracking branch 'necgh/develop' into merge/develop-20220128
Feb 3, 2022
7242158
[rv] Add RV with PassBuilder
Feb 25, 2022
3986590
[rv] update (Julia tail loop fix)
Mar 2, 2022
b39b050
Merge remote-tracking branch 'necgh/hpce/develop' into merge/hpce/dev…
Mar 8, 2022
7dadb0f
Revert "[omp] drop parallel loop md (even if there is no clause)"
Mar 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .gitmodules
Empty file.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ This is an example work-flow and configuration to get and build the LLVM source:

* ``cd llvm-project``

* ``cmake -S llvm -B build -G <generator> [options]``

Some common build system generators are:

* ``Ninja`` --- for generating [Ninja](https://ninja-build.org)
Expand Down
2 changes: 2 additions & 0 deletions clang/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
cscope.files
cscope.out
/tags
/TAGS
.ftpconfig

#==============================================================================#
# Directories to ignore (do not add trailing '/'s, they skip symlinks).
Expand Down
122 changes: 0 additions & 122 deletions clang/cmake/caches/VectorEngine-Stage-1.cmake

This file was deleted.

124 changes: 0 additions & 124 deletions clang/cmake/caches/VectorEngine-Stage-2.cmake

This file was deleted.

47 changes: 47 additions & 0 deletions clang/cmake/modules/FindNECAURORA_LIBELF.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#
#//===----------------------------------------------------------------------===//
#//
#// The LLVM Compiler Infrastructure
#//
#// This file is dual licensed under the MIT and the University of Illinois Open
#// Source Licenses. See LICENSE.txt for details.
#//
#//===----------------------------------------------------------------------===//
#

find_path (
NECAURORA_LIBELF_INCLUDE_DIR
NAMES
libelf.h
PATHS
/usr/include
/usr/local/include
/opt/local/include
/sw/include
ENV CPATH
PATH_SUFFIXES
libelf)

find_library (
NECAURORA_LIBELF_LIBRARIES
NAMES
elf
PATHS
/usr/lib
/usr/local/lib
/opt/local/lib
/sw/lib
ENV LIBRARY_PATH
ENV LD_LIBRARY_PATH)

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
NECAURORA_LIBELF
DEFAULT_MSG
NECAURORA_LIBELF_LIBRARIES
NECAURORA_LIBELF_INCLUDE_DIR)

mark_as_advanced(
NECAURORA_LIBELF_INCLUDE_DIR
NECAURORA_LIBELF_LIBRARIES)

4 changes: 3 additions & 1 deletion clang/include/clang/AST/DeclBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class Module;
class NamedDecl;
class ObjCContainerDecl;
class ObjCMethodDecl;
class PrinterHelper;
struct PrintingPolicy;
class RecordDecl;
class SourceManager;
Expand Down Expand Up @@ -1171,7 +1172,8 @@ class alignas(8) Decl {
void print(raw_ostream &Out, unsigned Indentation = 0,
bool PrintInstantiation = false) const;
void print(raw_ostream &Out, const PrintingPolicy &Policy,
unsigned Indentation = 0, bool PrintInstantiation = false) const;
unsigned Indentation = 0, bool PrintInstantiation = false,
PrinterHelper *StmtHelper=nullptr) const;
static void printGroup(Decl** Begin, unsigned NumDecls,
raw_ostream &Out, const PrintingPolicy &Policy,
unsigned Indentation = 0);
Expand Down
2 changes: 2 additions & 0 deletions clang/include/clang/Driver/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -2457,6 +2457,8 @@ def fopenmp_cuda_force_full_runtime : Flag<["-"], "fopenmp-cuda-force-full-runti
Flags<[CC1Option, NoArgumentUnused, HelpHidden]>;
def fno_openmp_cuda_force_full_runtime : Flag<["-"], "fno-openmp-cuda-force-full-runtime">, Group<f_Group>,
Flags<[NoArgumentUnused, HelpHidden]>;
def fopenmp_nec_compiler_EQ : Joined<["-"], "fopenmp-nec-compiler=">, Group<f_Group>,
Flags<[CC1Option, NoArgumentUnused]>, HelpText<"Offloading compiler for NEC SX-Aurora ('clang' [default],'rvclang' or 'ncc')">;
def fopenmp_cuda_number_of_sm_EQ : Joined<["-"], "fopenmp-cuda-number-of-sm=">, Group<f_Group>,
Flags<[CC1Option, NoArgumentUnused, HelpHidden]>;
def fopenmp_cuda_blocks_per_sm_EQ : Joined<["-"], "fopenmp-cuda-blocks-per-sm=">, Group<f_Group>,
Expand Down
10 changes: 10 additions & 0 deletions clang/lib/AST/Decl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,16 @@ LinkageComputer::getLVForNamespaceScopeDecl(const NamedDecl *D,
if (!isExternallyVisible(LV.getLinkage()))
return LinkageInfo(LV.getLinkage(), DefaultVisibility, false);

// FIXME: This is a workaround to have visible globals in `#pragma omp declare target` on VE.
bool VisibleTargetGlobals =
Context.getAuxTargetInfo() &&
(Context.getTargetInfo().getTriple().getArch() !=
Context.getAuxTargetInfo()->getTriple().getArch());

// Mark the symbols as hidden when compiling for the device.
if (!VisibleTargetGlobals && Context.getLangOpts().OpenMP && Context.getLangOpts().OpenMPIsDevice)
LV.mergeVisibility(HiddenVisibility, /*newExplicit=*/false);

return LV;
}

Expand Down
Loading