Skip to content
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

[Flang][OpenMP] Fix to variables not inheriting data sharing attributes #74964

Closed
wants to merge 3,765 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
3765 commits
Select commit Hold shift + click to select a range
8959206
Remove an unused API; NFC
AaronBallman Jan 19, 2024
2c0d206
[libc] remove extra -Werror (#78761)
nickdesaulniers Jan 19, 2024
f5e58a0
[lld][ELF] Simplify handleLibcall. NFC (#78659)
sbc100 Jan 19, 2024
4482fd8
Revert "[InstCombine] Try to fold trunc(shuffle(zext)) to just a shuf…
pranavk Jan 19, 2024
9175dd9
[CMake] Detect properly new linker introduced in Xcode 15 (#77806)
edymtt Jan 19, 2024
5954b9d
[InstrProf] Adding utility weights to BalancedPartitioning (#72717)
spupyrev Jan 19, 2024
0388ab3
[Statepoint][NFC] Use uint16_t and add an assert (#78717)
danilaml Jan 19, 2024
58780b8
[libc++][hardening] In production hardening modes, trap rather than a…
var-const Jan 19, 2024
2bfa5ca
[lld][WebAssembly] Reset context object after each link (#78770)
sbc100 Jan 19, 2024
cd05ade
Add a "don't override" mapping for -fvisibility-from-dllstorageclass …
bd1976bris Jan 19, 2024
86eaf60
[X86] Refine X86DAGToDAGISel::isSExtAbsoluteSymbolRef() (#76191)
aeubanks Jan 19, 2024
f9bc1ee
[llvm-objdump] Add support for symbolizing PGOBBAddrMap Info (#76386)
boomanaiden154 Jan 19, 2024
39e024d
[lld][WebAssembly] Use the archive offset with --whole-archive (#78791)
sbc100 Jan 19, 2024
66cea71
[RISCV] Add test case for #78783. NFC
topperc Jan 19, 2024
9396891
[RISCV] Don't look for sext in RISCVCodeGenPrepare::visitAnd.
topperc Jan 19, 2024
593395f
[dsymutil] Fix spurious warnings in MachODebugMapParser (#78794)
JDevlieghere Jan 19, 2024
30aa9fb
Revert "[InstrProf] Adding utility weights to BalancedPartitioning (#…
Jan 19, 2024
b7360fb
[mlir][amdgpu] Shared memory access optimization pass (#75627)
erman-gurses Jan 19, 2024
b86d023
[libc] Redo the install targets (#78795)
petrhosek Jan 19, 2024
c17aa14
[mlir][index] Fold `cmp(x, x)` when `x` isn't a constant (#78812)
StrongerXi Jan 19, 2024
8bef2f2
[lldb-dap] Add a CMake variable for defining a welcome message (#78811)
walter-erquinigo Jan 19, 2024
904cf66
[lldb] Fix build error in lldb-dap.cpp (NFC)
DamonFool Jan 20, 2024
4684507
[lldb][DWARFUnit] Implement PeekDIEName query (#78486)
felipepiovezan Jan 20, 2024
7071a25
[ELF] Rename LazyObject to LazySymbol. NFC
MaskRay Jan 20, 2024
123ab34
[libc++][test] Move format.functions ASCII tests to `libcxx/test/libc…
StephanTLavavej Jan 20, 2024
c71a5bf
[msan] Unpoison indirect outputs for userspace when -msan-handle-asm-…
MaskRay Jan 20, 2024
bcc9b9d
[lld][WebAssembly] Match the ELF linker in transitioning away from ar…
sbc100 Jan 20, 2024
ddad7e3
[mlir][amdgpu] Fix bazel build (#78820)
j2kun Jan 20, 2024
ab0d8fc
Reland "[CodeGen] Support start/stop in CodeGenPassBuilder (#70912)" …
paperchalice Jan 20, 2024
e611a4c
Revert "[mlir][amdgpu] Shared memory access optimization pass" (#78822)
joker-eph Jan 20, 2024
bd3838f
Skip TestThreadLocal.py on darwin temporarily for linker issue
jasonmolenda Jan 20, 2024
a387bce
[MLGO] Upstream the corpus extraction tooling (#72319)
boomanaiden154 Jan 20, 2024
fd49ef1
Removed a late added test-case from the tests for #74629
bd1976bris Jan 20, 2024
99ffe71
[llvm-objdump] Disables running pgo-analysis-map symbolizing on windows.
red1bluelost Jan 20, 2024
3b61f5a
Apply clang-tidy fixes for performance-unnecessary-value-param in Dat…
joker-eph Oct 20, 2023
f19f213
Apply clang-tidy fixes for llvm-else-after-return in DropUnitDims.cpp…
joker-eph Oct 20, 2023
46ce993
Apply clang-tidy fixes for llvm-else-after-return in ElementwiseOpFus…
joker-eph Oct 20, 2023
197a73f
Apply clang-tidy fixes for llvm-include-order in Fusion.cpp (NFC)
joker-eph Oct 20, 2023
b1d4265
Apply clang-tidy fixes for llvm-qualified-auto in Promotion.cpp (NFC)
joker-eph Oct 20, 2023
01c5b5c
[ObjCopy] Use StringRef::consume_front (NFC)
kazutakahirata Jan 20, 2024
fbd00a4
[Analysis] Use llvm::children and llvm::inverse_children (NFC)
kazutakahirata Jan 20, 2024
c0396e1
[AArch64] Use StringRef::contains_insensitive (NFC)
kazutakahirata Jan 20, 2024
b7a66d0
[llvm] Use SmallString::operator std::string (NFC)
kazutakahirata Jan 20, 2024
0223230
[clang][analyzer] Improve modeling of 'fdopen' in StdLibraryFunctions…
benshi001 Jan 20, 2024
b3ea9b3
Reland "[clang] Fix CTAD for aggregates for nested template classes" …
antangelo Jan 20, 2024
ed276df
[libc++][memory] P2868R1: Removing deprecated typedef `std::allocator…
H-G-Hristov Jan 20, 2024
552f554
[libc++][any] LWG3305: `any_cast<void>` (#78215)
H-G-Hristov Jan 20, 2024
dbbeee6
[libc++][span] P2447R4: `std::span` over an initializer list (#78157)
H-G-Hristov Jan 20, 2024
58d5a48
[lld][WebAssembly] Fix regression in function signature checking (#78…
sbc100 Jan 20, 2024
963d7b4
[ELF] Improve --thinlto-index-only and --thinlto-emit-index-files tests
MaskRay Jan 20, 2024
10886a8
[Driver] Use SmallString::operator std::string (NFC)
kazutakahirata Jan 20, 2024
71ca5c5
[CodeGen] Use a range-based for loop with llvm::predecessors (NFC)
kazutakahirata Jan 20, 2024
896cfcc
[IR] Use StringRef::consume_front (NFC)
kazutakahirata Jan 20, 2024
df017dc
[ADT] Use llvm::is_contained (NFC)
kazutakahirata Jan 20, 2024
17a777a
[Analysis] Use llvm::children and llvm::inverse_children (NFC)
kazutakahirata Jan 20, 2024
34feb22
[libc++][spaceship][NFC] Status page update: *libc++* Spaceship Opera…
H-G-Hristov Jan 20, 2024
15b089c
[mlir] Make `printAlias` hooks public (NFC) (#78833)
Jan 20, 2024
3e3d74a
Reapply "[sanitizer] Skip /include/c++/ from summary (#78534)"
vitalybuka Jan 20, 2024
14ca0ac
[fuzzer,test] Remove old debug logging
vitalybuka Jan 20, 2024
4b50014
[ELF] Improve LTO tests
MaskRay Jan 20, 2024
296fbee
[clang-tidy] Fix crash in modernize-loop-convert when int is used as …
PiotrZSL Jan 20, 2024
a7d7da6
[clang-format] Add SkipMacroDefinitionBody option (#78682)
owenca Jan 20, 2024
9eb0f86
[clang] Implement CWG1878 "`operator auto` template" (#78103)
Endilll Jan 20, 2024
6a433d7
[llvm-jitlink] Allow optional stub-kind filter in stub_addr() express…
weliveindetail Jan 20, 2024
1ad1f98
[clang-tidy] Add readability-redundant-casting check (#70595)
PiotrZSL Jan 20, 2024
14d5952
[gn build] Port 1ad1f981a622
llvmgnsyncbot Jan 20, 2024
7a8f5d9
[clang-tidy] Added new check to detect redundant inline keyword (#73069)
felix642 Jan 20, 2024
d70bfeb
[MLIR][Presburger] Implement IntegerRelation::setId (#77872)
iambrj Jan 20, 2024
920bb54
[gn build] Port 7a8f5d97afbf
llvmgnsyncbot Jan 20, 2024
63d7ca9
[AMDGPU] Add GFX12 llvm.amdgcn.s.wait.*cnt intrinsics (#78723)
jayfoad Jan 20, 2024
fd3346d
[clang-tidy] fix modernize-use-auto incorrect fix hints for pointer (…
HerrCai0907 Jan 20, 2024
a8a3711
[AArch64][SME2] Preserve ZT0 state around function calls (#78321)
kmclaughlin-arm Jan 20, 2024
fcb6737
[clang-format] Support of TableGen identifiers beginning with a numbe…
hnakamura5 Jan 20, 2024
d098651
[LLD] [COFF] Preserve directives and export names from LTO objects (#…
mstorsjo Jan 20, 2024
d01145f
Fix typo in AttrDocs.td (__single_inhertiance => __single_inheritance…
rlanday Jan 20, 2024
0f80f5e
[NFC] fix typo in clang/include/clang/Sema/ScopeInfo.h
HerrCai0907 Jan 20, 2024
b9a1e2a
[AArch64] Rename LDAPR<x>pre to LDAPR<x>post (#77340)
nsurbay Jan 20, 2024
818de32
Warning for incorrect use of 'pure' attribute (#78200)
kelbon Jan 20, 2024
ec0ac85
[Clang][Obvious] Correctly disable Windows on linker-wrapper test
jhuber6 Jan 20, 2024
0880742
[NFC] Rename internal fns (#77994)
urnathan Jan 20, 2024
ce8fcad
[libc] Fix float.h header to include the system float.h first and add…
lntue Jan 20, 2024
448b8e6
Module documentation improvement: prebuilt module location can be dir…
stripe2933 Jan 20, 2024
0175a1e
new-prs-labeler: Add `clang-tools-extra` labeling (#78633)
unterumarmung Jan 20, 2024
1cc7cd4
[libc] Fix size_t used without including stddef.h in CPP/limit.h. (#7…
lntue Jan 20, 2024
85a8e5c
[libc++] fix condition_variable_any hangs on stop_request (#77127)
huixie90 Jan 20, 2024
2fc2ee1
[clang-format] Fix poor spacing in `AlignArrayOfStructures: Left` (#7…
XDeme1 Jan 20, 2024
aaa7de1
[libc++][hardening] XFAIL test in fast mode under HWASAN (#78862)
vitalybuka Jan 20, 2024
07b5829
[libc++] FreeBSD CI: Adds `<signal.h>` to `check_assertion.h` (#78863)
H-G-Hristov Jan 20, 2024
46a9135
[lld-macho] Find objects in library search path (#78628)
Un1q32 Jan 20, 2024
49212d1
[Flang] Fix for replacing loop uses in LoopVersioning pass (#77899)
davemgreen Jan 20, 2024
06ca52e
[InlineOrder] Fix InlineOrder erase_if implementation (#78684)
thevinster Jan 20, 2024
84cb8ea
[Sema] Use llvm::is_contained (NFC)
kazutakahirata Jan 20, 2024
8121835
[Sparc] Use StringRef::starts_with_insensitive (NFC)
kazutakahirata Jan 20, 2024
aa530c7
[Passes] Use a range-based for loop with llvm::successors (NFC)
kazutakahirata Jan 20, 2024
8511436
[Frontend] Use SmallString::operator std::string (NFC)
kazutakahirata Jan 20, 2024
11b3b10
[Support] Use llvm::children and llvm::inverse_children (NFC)
kazutakahirata Jan 20, 2024
a464e05
[clang-format] Handle templated elaborated type specifier in function…
XDeme1 Jan 20, 2024
975deb3
[libc] Add missing header ioctl.h on aarch64. (#78865)
lntue Jan 20, 2024
dedc7d4
[mlir] Exclude masked ops in VectorDropLeadUnitDim (#76468)
Jan 21, 2024
2759e47
[clang-repl] We do not need to call new in the object allocation. (#7…
vgvassilev Jan 21, 2024
9b2c25c
[clang] Use SmallString::operator std::string (NFC)
kazutakahirata Jan 21, 2024
24790a7
[Hexagon] Use llvm::children (NFC)
kazutakahirata Jan 21, 2024
1ce5a80
[Mips] Use MachineBasicBlock::pred_size (NFC)
kazutakahirata Jan 21, 2024
f523a55
[Sema] Use llvm::all_of (NFC)
kazutakahirata Jan 21, 2024
bb6564a
[TableGen] Use StringRef::consume_front (NFC)
kazutakahirata Jan 21, 2024
39f1ca5
[MLGO] Remove absl dep from libraries
boomanaiden154 Jan 21, 2024
8e99a63
[Github] Update paths for mlgo PR subscribers
boomanaiden154 Jan 21, 2024
a70d310
[MLGO] Disable mlgo-utils tests on Windows builders
boomanaiden154 Jan 21, 2024
6bb5c98
[libc++] <experimental/simd> Add load constructor for class simd/simd…
joy2myself Jan 21, 2024
3412bc7
[libc++][variant] P2637R3: Member `visit` (`std::variant`) (#76447)
H-G-Hristov Jan 21, 2024
f9614b3
[AArch64] Improve nonlazybind test
MaskRay Jan 21, 2024
aa04d2b
Add workflow to release mlgo utils
boomanaiden154 Jan 21, 2024
61d0989
Revert "Add workflow to release mlgo utils"
boomanaiden154 Jan 21, 2024
f0c920f
[libc++][hardening] XFAIL tests with HWASAN (#78866)
vitalybuka Jan 21, 2024
dc57752
[libc++][hardening] Categorize assertions that produce incorrect resu…
var-const Jan 21, 2024
d023044
[AArch64] Remove non-sensible define nonlazybind test
MaskRay Jan 21, 2024
62bf771
[mlir][IR] Add `notifyBlockRemoved` callback to listener (#78306)
matthias-springer Jan 21, 2024
f9e2e85
[Clang] Use const pointer to eliminate warning with libxml 2.12.0 (#7…
FantasqueX Jan 21, 2024
fbb62d4
[mlir][bufferization] Buffer deallocation: Make op preconditions stri…
matthias-springer Jan 21, 2024
38b5f2e
[libc++][spaceship][NFC] Status page update (#78894)
H-G-Hristov Jan 21, 2024
7d9b5aa
[libc++][format] P2637R3: Member `visit` (`std::basic_format_arg`) (#…
H-G-Hristov Jan 21, 2024
1d6b613
[libc++] Reland CI module improvements.
mordante Jan 21, 2024
0475733
[libc++][modules] Improves std.compat module. (#76330)
mordante Jan 21, 2024
8b47bb6
[libc++] Install modules. (#75741)
mordante Jan 21, 2024
07e6b98
[X86][NFC] Remove unnecessary parameters for MaskedShiftAmountPats/Ma…
KanRobert Jan 21, 2024
ae8d699
[NFC][libc++] tab -> space
mordante Jan 21, 2024
5b7bb56
[libc++] Clang-tidy enable modernize-use-nullptr.
mordante Dec 31, 2023
b0b491d
[clang-tidy] Fix handling of functional cast in google-readability-ca…
PiotrZSL Jan 21, 2024
3683852
[VPlan] Use replaceUsesWithIf in replaceAllUseswith and add comment (…
fhahn Jan 21, 2024
547685d
[clang-tidy][NFC] Enable exceptions in test for google-readability-ca…
PiotrZSL Jan 21, 2024
f73bf45
[libc++] Fix typo in _LIBCPP_REMOVE_TRANSITIVE_INCLUDES (#78639)
bobsayshilol Jan 21, 2024
128d53f
[libc] add missing header dependencies for sched objects (#78741)
SchrodingerZhu Jan 21, 2024
bc82cfb
[AMDGPU] Add an asm directive to track code_object_version (#76267)
epilk Jan 21, 2024
997ffce
[C23] Implement N2490, Remove trigraphs??!
AaronBallman Jan 21, 2024
30d6806
[libc++][doc] Update the release notes for LLVM 18 (#78324)
mordante Jan 21, 2024
5518a9d
[c++20] P1907R1: Support for generalized non-type template arguments …
bolshakov-a Jan 21, 2024
cc3fd19
[clang] Remove `CXXNewInitializationStyle::Implicit` (#78793)
Endilll Jan 21, 2024
86b6dfc
[libc++] Fix Coverity warning about use-after-move (#78780)
ldionne Jan 21, 2024
c71956d
[MLGO] Add tests for scripts (#78878)
boomanaiden154 Jan 21, 2024
120e062
[MLGO] Remove absl dependency from scripts (#78880)
boomanaiden154 Jan 21, 2024
b54e919
[MLGO] Fix make_corpus_script.test
boomanaiden154 Jan 21, 2024
b7355ee
[lldb] Skip ObjC timezone tests on macOS >= 14 (NFC) (#78817)
kastiglione Jan 21, 2024
3a4615c
[ELF] Clarify the first entry of .got.plt NFC
MaskRay Jan 22, 2024
1d9a65b
[clang][analyzer][NFC] Simplify ranges in StdLibraryFunctionsChecker …
benshi001 Jan 22, 2024
890acf8
[docs] Add llvm and clang release notes for the global-var code model…
heiher Jan 22, 2024
2e30e31
[ELF] Claim recognized -z options. NFC
MaskRay Jan 22, 2024
665f913
[ELF] Reimplement unknown -z options using the isClaimed bit
MaskRay Jan 22, 2024
be0fa31
[libc] fix unit tests in fullbuild (#78864)
SchrodingerZhu Jan 22, 2024
04c8558
[libc] Fix issue introduces by #76449
petrhosek Jan 22, 2024
71dbefa
[Clang] Drop workaround for old gcc versions (#78803)
yuxuanchen1997 Jan 22, 2024
d3cd1ce
[X86] Add lowering tests for promoted CMPCCXADD and update CC represe…
XinWang10 Jan 22, 2024
dd6fec5
[X86][APX]Support lowering for APX promoted AMX-TILE instructions (#7…
XinWang10 Jan 22, 2024
c2bef33
[X86][NFC] Auto-generate the function to check predicate for EVEX com…
KanRobert Jan 22, 2024
381f585
[X86] Fix Werror X86GenCompressEVEXTables.inc:1627:2: error: extra ';…
KanRobert Jan 22, 2024
85337df
[X86][Driver] Enable feature ndd for -mapxf (#78901)
KanRobert Jan 22, 2024
03c19e9
[libc++][numeric] P0543R3: Saturation arithmetic (#77967)
H-G-Hristov Jan 22, 2024
5ffe777
[RISCV] Add Zvkb test to riscv-target-features.c. NFC
topperc Jan 22, 2024
25063be
[RISCV] Replace Zvbb with Zvkb in the Zvk* combine tests in riscv-tar…
topperc Jan 22, 2024
8bef13e
[hwasan] Fix a possible null dereference problem (#77737)
yingcong-wu Jan 22, 2024
745883b
[Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT options (…
aaupov Jan 22, 2024
a31a600
[docs] Update StandardCPlusPlusModules.rst with clang18
ChuanqiXu9 Jan 22, 2024
21830c9
[mlir][nvgpu] Fix 'warpgroup.mma.store' index calculation (#78413)
grypp Jan 22, 2024
12c241b
[MLIR][NVVM] Explicit Data Type for Output in `wgmma.mma_async` (#78713)
grypp Jan 22, 2024
aa4547f
[MLIR][NVVM] Update cp.async.bulk Ops to use intrinsics (#78900)
durga4github Jan 22, 2024
5ab2d9c
[RISCV] Arrange RISCVFeatures.td into sections of related extensions.…
topperc Jan 22, 2024
7556626
[CodeGen][MachinePipeliner] Limit register pressure when scheduling (…
kasuga-fj Jan 22, 2024
21730eb
[lld] Use SmallString::operator std::string (NFC)
kazutakahirata Jan 22, 2024
8fddf7f
[llvm] Use MachineBasicBlock::succ_empty (NFC)
kazutakahirata Jan 22, 2024
234da20
[Analysis] Use StringRef::ends_with_insensitive (NFC)
kazutakahirata Jan 22, 2024
a54463a
[clang-tidy] Use llvm::any_of (NFC)
kazutakahirata Jan 22, 2024
9f29050
[CodeGen][MachinePipeliner] Fix -Wpessimizing-move in MachinePipeline…
DamonFool Jan 22, 2024
3b943c0
[Thumb,test] Improve __stack_chk_guard test
MaskRay Jan 22, 2024
a2caa49
[clang][dataflow] Treat comma operator correctly in `getResultObjectL…
martinboehme Jan 22, 2024
21199f9
[OpenMP][OMPIRBuilder] Fix LLVM IR codegen for collapsed device loop …
DominikAdamski Jan 22, 2024
8658d15
Revert "[Clang][Sema] Diagnose function/variable templates that shado…
cor3ntin Jan 22, 2024
262735b
libclc: add missing AMD gfx symlinks (#78884)
zboszor Jan 22, 2024
376f019
[AMDGPU][NFC] Update cache policy descriptions (#78768)
mbrkusanin Jan 22, 2024
f36845d
Enable direct methods and fast alloc calls for libobjc2. (#78030)
davidchisnall Jan 22, 2024
5fb39ef
[LLVM][ADT] Explicitly convert size_t values to SmallVector's size ty…
andrey-golubev Jan 22, 2024
68a5261
[MLIR][Presburger] Implement function to evaluate the number of terms…
Abhinav271828 Jan 22, 2024
0845514
[clang][analyzer] Add function 'fscanf' to StreamChecker. (#78180)
balazske Jan 22, 2024
6c47419
Revert "[Clang][CMake] Support perf, LBR, and Instrument CLANG_BOLT o…
DavidSpickett Jan 22, 2024
11d1310
[clang] Fix assertion failure with deleted overloaded unary operators…
Fznamznon Jan 22, 2024
7b925c3
[lldb] refactor highlighting function for image lookup command (#76112)
junior-jl Jan 22, 2024
11c0dc3
[GitHub][workflows] Run automation script with python3 (#78695)
DavidSpickett Jan 22, 2024
9f7fff7
[mlir][ArmSME] Add arith-to-arm-sme conversion pass (#78197)
c-rhodes Jan 22, 2024
e280c28
[mlir] Add `mlir_arm_runner_utils` library for use in integration tes…
MacDue Jan 22, 2024
ac296b6
[AMDGPU] Drop verify from SIMemoryLegalizer tests (#78697)
Pierre-vh Jan 22, 2024
5cd8d53
[RISCV] Teach RISCVMergeBaseOffset to handle inline asm (#78945)
wangpc-pp Jan 22, 2024
a43c192
[llvm-jitlink] Use SmallVectorImpl when referencing StubInfos (NFC)
nikic Jan 22, 2024
50df08c
[GlobalISel][AArch64] Combine Vector Reduction Add Long (#76241)
chuongg3 Jan 22, 2024
54952e9
Fix an unused variable, NFC.
hokein Jan 22, 2024
cc38cff
[mlir][bazel] Fix BUILD after 9f7fff7f1391ea3bec394d8251b81cea92175cca.
chsigg Jan 22, 2024
c9f5b5c
[MTE] Disable all MTE protection of globals in sections (#78443)
hctim Jan 22, 2024
c4fc563
[JITLink][AArch32] Add GOT builder and implement R_ARM_GOT_PREL reloc…
weliveindetail Jan 22, 2024
6aeb7a7
[RemoveDIs][DebugInfo] Add interface changes for AT analysis (#78460)
SLTozer Jan 22, 2024
ad01447
[libcxx] Fix typo in parallel `for_each_n` test (#78954)
miscco Jan 22, 2024
f45249f
[gn] port 03c19e91e8d8
nico Jan 22, 2024
a590f23
[hwasan] Update dbg.assign intrinsics in HWAsan pass (#78606)
OCHyams Jan 22, 2024
c1729c8
[X86] X86FixupVectorConstants.cpp - pull out rebuildConstant helper f…
RKSimon Jan 19, 2024
1a5eead
[X86] Add printZeroUpperMove constant/shuffle comments helper. NFC.
RKSimon Jan 22, 2024
865e4a1
[coverage] skipping code coverage for 'if constexpr' and 'if consteva…
hanickadot Jan 22, 2024
365aa15
[AArch64] Convert UADDV(add(zext, zext)) into UADDLV(concat). (#78301)
Rin18 Jan 22, 2024
3c94154
[mlir] Fix -Wunused-variable in Barvinok.cpp (NFC)
DamonFool Jan 22, 2024
09bd2cb
[X86] Add printLaneBroadcast constant comments helper. NFC.
RKSimon Jan 22, 2024
6096327
[X86] Add printElementBroadcast constant comments helper. NFC.
RKSimon Jan 22, 2024
df4ba00
[clang-format] Support of TableGen statements in unwrapped line parse…
hnakamura5 Jan 22, 2024
27ce26b
[Sema] Add `-fvisibility-global-new-delete=` option (#75364)
bd1976bris Jan 22, 2024
88d1de5
[clang-format][NFC] Unify token size tests to use ASSERT_EQ
rymiel Jan 22, 2024
4821c90
[clang-repl] Fix PLT offset too large linker error on ARM (#78959)
weliveindetail Jan 22, 2024
fa6025e
[clang-format] Don't confuse initializer equal signs in for loops (#7…
rymiel Jan 22, 2024
ab1b499
[AArch64] Adding tests for shifts
chuongg3 Jan 22, 2024
b689b4f
[LLVM][CMake] Add ffi_static target for the FFI static library (#78779)
jhuber6 Jan 22, 2024
5266c12
Revert "[hwasan] Update dbg.assign intrinsics in HWAsan pass" (#78971)
OCHyams Jan 22, 2024
490a09a
[UnrollAnalyzerTest] Remove dependency to pass managers (#78473)
bjope Jan 22, 2024
8fab16c
[libc++][NFC] Remove trailing whitespace from release notes
ldionne Jan 22, 2024
5a667be
[InstCombine] Try to fold trunc(shuffle(zext)) to just a shuffle (#78…
alexey-bataev Jan 19, 2024
cabe8be
[libc] `FPRep` builders return `FPRep` instead of raw `StorageType` (…
gchatelet Jan 22, 2024
bf7b8da
Revert "[libc] `FPRep` builders return `FPRep` instead of raw `Storag…
gchatelet Jan 22, 2024
4f46905
[libc++] Ensure that std::expected has no tail padding (#69673)
jiixyj Jan 22, 2024
bfef161
[AArch64][GlobalISel] Legalize Shifts for Smaller/Larger Vectors (#78…
chuongg3 Jan 22, 2024
3c246ef
True fixpoint algorithm in RS4GC (#75826)
zduka Jan 22, 2024
1edb43f
[reland][libc] `FPRep` builders return `FPRep` instead of raw `Storag…
gchatelet Jan 22, 2024
70823fe
[libc++][NFC] Fix incorrect formatting of release notes
ldionne Jan 22, 2024
52a8bed
[DebugInfo][RemoveDIs] Adjust AMDGPU passes to work with DPValues (#7…
jmorse Jan 22, 2024
75b0c91
[mlir][nfc] Update comments
banach-space Jan 22, 2024
90af11e
[libc++] Make sure to publish release notes at ReleaseNotes.html
ldionne Jan 22, 2024
55cb52b
[Flang][OpenMP] Restructure recursive lowering in `createBodyOfOp` (#…
kparzysz Jan 22, 2024
ce519b5
[HLSL][SPIR-V] Add support -fspv-target-env opt (#78611)
sudonatalie Jan 22, 2024
ebb853f
[ConstraintElim] Remove unused checkCondition() parameters (NFC)
nikic Jan 22, 2024
ac3ee1b
[Transforms] Fix -Wunused-variable and remove redundant VerifyStates …
DamonFool Jan 22, 2024
3440466
[OpenMP] Fix two usm tests for amdgpus. (#78824)
carlobertolli Jan 22, 2024
ff1cde5
[AArch64] Add vec3 load/store tests with GEPs with const offsets.
fhahn Jan 22, 2024
3de5d8e
[include-cleaner] Add --only-headers flag, opposite of --ignore-heade…
sam-mccall Jan 22, 2024
af1741e
[Flang][OpenMP] Reword comment for clarification, NFC
kparzysz Jan 22, 2024
0d8e333
[OpenACC] Implement 'vector_length' clause parsing.
erichkeane Jan 19, 2024
6ba62f4
[AArch64][SME2] Refine fcvtu/fcvts/scvtf/ucvtf (#77947)
MDevereau Jan 22, 2024
51e91b6
[libc++abi] Implement __cxa_init_primary_exception and use it to opti…
itrofimow Jan 22, 2024
6a80e56
[clang-tidy] Fix macros handling in cppcoreguidelines-prefer-member-i…
PiotrZSL Jan 22, 2024
726d940
AMDGPU/Docs: Add link to MI300 Instruction Set Architecture (#78777)
kzhuravl Jan 22, 2024
69fedaf
[clang][ExtractAPI] Add support C unions in non C++ parsing mode (#77…
daniel-grumberg Jan 22, 2024
d9cb37c
[Headers][X86] Add macro descriptions to ia32intrin.h (#78613)
pogo59 Jan 22, 2024
8c1b7fb
[SelectionDAG][DebugInfo][RemoveDIs] Handle entry value variables in …
jmorse Jan 22, 2024
4e64ed9
[X86] Update X86::getConstantFromPool to take base OperandNo instead …
RKSimon Jan 22, 2024
74ab795
[X86] printZeroUpperMove - add support for constant vectors.
RKSimon Jan 22, 2024
c553212
[clang][ExtractAPI] Ensure typedef to pointer types are preserved (#7…
daniel-grumberg Jan 22, 2024
bfb0932
[JITLink][AArch32] Implement ELF relocation R_ARM_TARGET1
weliveindetail Jan 20, 2024
565470e
[JITLink][AArch32] Implement ELF relocation R_ARM_NONE
weliveindetail Jan 20, 2024
3ab7440
[Flan][OpenMP] Fix to variables not inheriting data sharing attributes
harishch4 Dec 10, 2023
cd2576b
Merge branch 'threadprivate-default-none' of github.com:harishch4/llv…
harishc4 Jan 22, 2024
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
3 changes: 2 additions & 1 deletion flang/lib/Semantics/resolve-directives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,8 @@ void OmpAttributeVisitor::Post(const parser::Name &name) {
if (Symbol * found{currScope().FindSymbol(name.source)}) {
if (symbol != found) {
name.symbol = found; // adjust the symbol within region
} else if (GetContext().defaultDSA == Symbol::Flag::OmpNone) {
} else if (GetContext().defaultDSA == Symbol::Flag::OmpNone &&
!symbol->test(Symbol::Flag::OmpThreadprivate)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would including Threadprivate also into IsObjectWithDSA work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Kiran, Apologies for the late reply, I was on vacation.

The symbol is already being added to objectWithDSA map in OmpAttributeVisitor::Pre(const parser::OpenMPThreadprivate)->ResolveOmpObjectList()->ResolveOmpObject()->AddToContextObjectWithDSA(), yet in OmpAttributeVisitor::Post(const parser::Name) the same symbol when checked in IsObjectWithDSA() is getting false.

context_.Say(name.source,
"The DEFAULT(NONE) clause requires that '%s' must be listed in "
"a data-sharing attribute clause"_err_en_US,
Expand Down
60 changes: 60 additions & 0 deletions flang/test/Lower/OpenMP/threadprivate-default-clause.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
! Simple test for lowering of OpenMP Threadprivate Directive with HLFIR.

!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s

!CHECK-LABEL: func.func @_QPsub1() {
!CHECK: %[[A:.*]] = fir.address_of(@_QFsub1Ea) : !fir.ref<i32>
!CHECK: %[[A_DECL:.*]]:2 = hlfir.declare %[[A]] {uniq_name = "_QFsub1Ea"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>)
!CHECK: %[[A_TP0:.*]] = omp.threadprivate %[[A_DECL]]#1 : !fir.ref<i32> -> !fir.ref<i32>
!CHECK: %[[A_CVT:.*]]:2 = hlfir.declare %[[A_TP0]] {uniq_name = "_QFsub1Ea"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>)
!CHECK: omp.parallel {
!CHECK: %[[A_TP:.*]] = omp.threadprivate %[[A_DECL]]#1 : !fir.ref<i32> -> !fir.ref<i32>
!CHECK: %[[A_TP_DECL:.*]]:2 = hlfir.declare %[[A_TP]] {uniq_name = "_QFsub1Ea"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>)
!CHECK: %[[TID:.*]] = fir.call @omp_get_thread_num() fastmath<contract> : () -> i32
!CHECK: hlfir.assign %[[TID]] to %[[A_TP_DECL]]#0 : i32, !fir.ref<i32>
!CHECK: omp.terminator
!CHECK: }

subroutine sub1()
use omp_lib
integer, save :: a
!$omp threadprivate(a)
!$omp parallel default(none)
a = omp_get_thread_num()
!$omp end parallel
end subroutine

!CHECK-LABEL: func.func @_QPsub2() {
!CHECK: %[[BLK:.*]] = fir.address_of(@blk_) : !fir.ref<!fir.array<4xi8>>
!CHECK: %[[BLK_CVT:.*]] = fir.convert %[[BLK]] : (!fir.ref<!fir.array<4xi8>>) -> !fir.ref<!fir.array<?xi8>>
!CHECK: %c0 = arith.constant 0 : index
!CHECK: %[[A_ADDR:.*]] = fir.coordinate_of %[[BLK_CVT]], %c0 : (!fir.ref<!fir.array<?xi8>>, index) -> !fir.ref<i8>
!CHECK: %[[A_CVT:.*]] = fir.convert %[[A_ADDR]] : (!fir.ref<i8>) -> !fir.ref<i32>
!CHECK: %[[A_DECL:.*]]:2 = hlfir.declare %[[A_CVT]] {uniq_name = "_QFsub2Ea"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>)
!CHECK: %[[A_TP0:.*]] = omp.threadprivate %[[BLK]] : !fir.ref<!fir.array<4xi8>> -> !fir.ref<!fir.array<4xi8>>
!CHECK: %[[A_TP0_CVT:.*]] = fir.convert %[[A_TP0]] : (!fir.ref<!fir.array<4xi8>>) -> !fir.ref<!fir.array<?xi8>>
!CHECK: %c0_0 = arith.constant 0 : index
!CHECK: %[[A_TP0_ADDR:.*]] = fir.coordinate_of %[[A_TP0_CVT]], %c0_0 : (!fir.ref<!fir.array<?xi8>>, index) -> !fir.ref<i8>
!CHECK: %[[A_TP0_ADDR_CVT:.*]] = fir.convert %[[A_TP0_ADDR]] : (!fir.ref<i8>) -> !fir.ref<i32>
!CHECK: %[[A_TP0_DECL:.*]]:2 = hlfir.declare %[[A_TP0_ADDR_CVT]] {uniq_name = "_QFsub2Ea"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>)
!CHECK: omp.parallel {
!CHECK: %[[BLK_TP:.*]] = omp.threadprivate %[[BLK]] : !fir.ref<!fir.array<4xi8>> -> !fir.ref<!fir.array<4xi8>>
!CHECK: %[[BLK_TP_CVT:.*]] = fir.convert %[[BLK_TP]] : (!fir.ref<!fir.array<4xi8>>) -> !fir.ref<!fir.array<?xi8>>
!CHECK: %c0_1 = arith.constant 0 : index
!CHECK: %[[A_TP_ADDR:.*]] = fir.coordinate_of %[[BLK_TP_CVT]], %c0_1 : (!fir.ref<!fir.array<?xi8>>, index) -> !fir.ref<i8>
!CHECK: %[[A_TP_ADDR_CVT:.*]] = fir.convert %[[A_TP_ADDR]] : (!fir.ref<i8>) -> !fir.ref<i32>
!CHECK: %[[A_TP_DECL:.*]]:2 = hlfir.declare %[[A_TP_ADDR_CVT]] {uniq_name = "_QFsub2Ea"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>)
!CHECK: %[[TID:.*]] = fir.call @omp_get_thread_num() fastmath<contract> : () -> i32
!CHECK: hlfir.assign %[[TID]] to %[[A_TP_DECL]]#0 : i32, !fir.ref<i32>
!CHECK: omp.terminator
!CHECK: }

subroutine sub2()
use omp_lib
integer :: a
common/blk/a
!$omp threadprivate(/blk/)
!$omp parallel default(none)
a = omp_get_thread_num()
!$omp end parallel
end subroutine