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