Skip to content

Feature/merge upstream 20210929 #96

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

Merged
merged 252 commits into from
Oct 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
49e532a
[X86][Costmodel] Load/store i16 Stride=2 VF=4 interleaving costs
LebedevRI Sep 27, 2021
70c90cc
[X86][Costmodel] Load/store i16 Stride=2 VF=8 interleaving costs
LebedevRI Sep 27, 2021
a5113e9
[X86][Costmodel] Load/store i16 Stride=2 VF=16 interleaving costs
LebedevRI Sep 27, 2021
7424deb
[X86][Costmodel] Load/store i16 Stride=2 VF=32 interleaving costs
LebedevRI Sep 27, 2021
d5629b5
Fix rendezvous for rebase_exec=true case
emrekultursay Sep 27, 2021
e158b56
[mlir][linalg] Make fusion on tensor rewriter friendly (NFC).
Sep 27, 2021
1b242dc
[OpenMP][CMake] Use in-project clang as CUDA->IR compiler for new Dev…
Meinersbur Sep 27, 2021
93b82f4
[lldb] [Host] Refactor XML converting getters
mgorny Sep 24, 2021
b1695c2
[AMDGPU][OpenMP] Add memory pool size check to isValidMemoryPool
pdhaliwal-amd Sep 24, 2021
9da2fa2
[lldb] Move StringConvert inside debugserver
mgorny Sep 25, 2021
e2eb651
[gn build] Port 9da2fa277e81
llvmgnsyncbot Sep 27, 2021
3a998c0
Revert "Recommit "Revert "[CVP] processSwitch: Remove default case wh…
junparser Sep 27, 2021
05b1c7a
[llvm-dwarfdump][docs] Add missing options to the help output and the…
gbreynoo Sep 27, 2021
a588ae4
[LoopFlatten] Precommit new test widen-iv2.ll for D110234.
Sep 22, 2021
38d0908
Removing a default constructor argument; NFC
AaronBallman Sep 27, 2021
ebee606
[AArch64] Fix neon-reverseshuffle test extension. NFC
davemgreen Sep 27, 2021
eba7605
[FuncSpec] Don't specialise (or crash) on poison or constexpr values
Sep 27, 2021
3303154
[lldb] [DynamicRegisterInfo] Add a convenience method to add suppl. r…
mgorny Sep 18, 2021
1455b55
tsan: de-hardcode MemCount const
dvyukov Sep 27, 2021
63bb2d5
[clang] Put original flags on 'Driver args:' crash report line
nico Sep 24, 2021
bf98093
[AMDGPU] Ignore KILLs when forming clauses
Flakebi Jul 16, 2021
b4c1e5c
tsan: fix and test detection of TLS races
dvyukov Sep 27, 2021
b72176b
tsan: add a test for stack init race
dvyukov Sep 27, 2021
94ea366
tsan: fix trace tests on darwin
dvyukov Sep 27, 2021
92db09c
[mlir] AsyncRuntime: use int64_t for ref counting operations
ezhulenev Sep 27, 2021
1f5b60a
Explicitly specify -fintegrated-as to clang/test/Driver/compilation_d…
amy-kwan Sep 27, 2021
025a805
[InstCombine] match variable names and code comments; NFC
rotateright Sep 26, 2021
21429cf
[InstCombine] generalize fold for (trunc (X u>> C1)) u>> C
rotateright Sep 27, 2021
2f95542
[llvm] ConvertOption::accept(), acceptInternal() to std::unique_ptr<>
nico Sep 27, 2021
7789a68
[llvm] Convert OptTable::parseOneArgGrouped() to std::unique_ptr<>
nico Sep 27, 2021
6ffd8e3
[llvm] Convert OptTable::ParseOneArg() to std::unique_ptr<>
nico Sep 27, 2021
730bbc6
[llvm/OptTable] Drop "The" prefix on fields
nico Sep 27, 2021
56049b7
Fix tests defaulting to incorrect triples on AIX
jakeegan Sep 27, 2021
7664508
[llvm/OptTable] Add named param comment for GroupedShortOption
nico Sep 27, 2021
be2a421
[lldb] Fix SocketTest.DomainGetConnectURI on macOS by stripping more …
Teemperor Sep 27, 2021
b4a5543
[OpenMP] Introduce a new worksharing RTL function for distribute
jhuber6 Sep 24, 2021
74d622d
[OpenMP] Add new worksharing definitions into device RTL
jhuber6 Sep 24, 2021
0b1eff1
[clangd] Refactor IncludeStructure: use File (unsigned) for most comp…
kirillbobyrev Sep 27, 2021
b68a62b
[Lanai] Remove redundant declaration getTheLanaiTarget (NFC)
kazutakahirata Sep 27, 2021
3dbf27e
[lldb] A different fix for Domain Socket tests
labath Sep 27, 2021
9075edc
[InstCombine] move shl-only folds out from under commonShiftTransform…
rotateright Sep 27, 2021
1f73f0c
[NFC][AMDGPU] Update cost model tests:
dfukalov Sep 27, 2021
933182e
[RISCV] Improve support for forming widening multiplies when one inpu…
topperc Sep 27, 2021
5357a98
[OpenMP] libomp: Usage of TASK_TIED constant inside kmp_gsupport.cpp
vladaindjic Sep 27, 2021
fbd5821
Implement the conversion from sparse constant to sparse tensors.
bixia1 Sep 25, 2021
59540b2
[InstCombine] Fix an "unused variable" warning
kazutakahirata Sep 27, 2021
2bf06d9
[ELF] Support symbol names with space in linker script expressions
MaskRay Sep 27, 2021
a2a07e8
[RISCV] Fold store of vmv.x.s to a vse with VL=1.
topperc Sep 27, 2021
1c2e5fd
[flang] Enforce constraint: defined ass't in WHERE must be elemental
klausler Sep 15, 2021
6dd5b1e
[MLIR][LLVM] Add error if using incorrect attribute type for specifyi…
wsmoses Sep 27, 2021
c4afb5f
[HIP] Fix linking of asanrt.bc
yxsamliu Sep 23, 2021
682e15f
[PowerPC] Fix td pattern for P10 VSLDBI and VSRDBI
Sep 16, 2021
b2af2ae
[mlir] Mode for explicitly controlling the fusion kind
sumesh13 Sep 25, 2021
e90b512
[AMDGPU] Change ASAN init/fini kernels linkage to external.
pvellien Sep 27, 2021
9eab0da
[flang] Catch branching into FORALL/WHERE constructs
klausler Sep 16, 2021
b2a2c38
Fix bug in readability-uppercase-literal-suffix
carlosgalvezp Sep 27, 2021
e27a6db
Bad SLPVectorization shufflevector replacement, resulting in write to…
vtjnash Jul 22, 2021
d992950
[InstCombine] add tests for opposing shifts separated by trunc; NFC
rotateright Sep 27, 2021
623f93e
[InstCombine] add use check to shl transform
rotateright Sep 27, 2021
ef0f728
Add a missing include to appease the build bots
AaronBallman Sep 27, 2021
ec97a20
[mlir][sparse] preserve zero-initialization for materializing buffers
aartbik Sep 24, 2021
1a761e5
[openmp] Add addrspacecast to getOrCreateIdent
JonChesterfield Sep 27, 2021
80fa43f
Revert "[openmp] Add addrspacecast to getOrCreateIdent"
JonChesterfield Sep 27, 2021
36dc5c0
Revert "[clangd] Refactor IncludeStructure: use File (unsigned) for m…
nico Sep 27, 2021
06e2a06
[mlir][sparse] sampled matrix multiplication fusion test
aartbik Sep 24, 2021
b75ed24
[InstCombine] add tests for shl-of-sub; NFC
rotateright Sep 27, 2021
fdba1dc
[InstCombine] reduce code for shl-of-sub transform; NFC
rotateright Sep 27, 2021
1e48ef2
Implement #pragma clang final extension
llvm-beanz Sep 27, 2021
18cf5b2
Fixing docs build
llvm-beanz Sep 27, 2021
45caac9
[X86][Costmodel] Load/store i16 Stride=4 VF=2 interleaving costs
LebedevRI Sep 27, 2021
df2b42d
[X86][Costmodel] Load/store i16 Stride=4 VF=4 interleaving costs
LebedevRI Sep 27, 2021
5615d6a
[X86][Costmodel] Load/store i16 Stride=4 VF=8 interleaving costs
LebedevRI Sep 27, 2021
ee5a050
[X86][Costmodel] Load/store i16 Stride=4 VF=16 interleaving costs
LebedevRI Sep 27, 2021
2a7a768
[X86][Costmodel] Load/store i16 Stride=4 VF=32 interleaving costs
LebedevRI Sep 27, 2021
d20d0e1
[mlir][linalg] Finer-grained padding control.
Sep 27, 2021
20faf78
[ThinLTO] Add noRecurse and noUnwind thinlink function attribute prop…
modiking Sep 27, 2021
f7e82e4
[NFC][X86] Add test showing that legal `GATHER`'s are expoanded on Zn…
LebedevRI Sep 27, 2021
75f0194
[Driver] Remove confusing *-linux-android detection with non-android …
MaskRay Sep 27, 2021
4f352d4
[NFC] [PSI] explain encoding of PercentileCutoff.
fmayer Sep 14, 2021
ee6228f
[NFC][X86] Add 'gather' optsize/minsize test coverage
LebedevRI Sep 27, 2021
04f5913
[gwp-asan] Initialize AllocatorVersionMagic at runtime
Sep 27, 2021
540ed35
[X86] Add slow/fast pmulld test coverage to vector-mul.ll
RKSimon Sep 27, 2021
16a62d4
[LoopPredication] Add testcase showing BPI computation. NFC
annamthomas Sep 27, 2021
1e628d0
[libc++] Do not enable P1951 before C++23, since it's a breaking change
ldionne Sep 23, 2021
a0a9e3e
Revert "[LoopPredication] Add testcase showing BPI computation. NFC"
annamthomas Sep 27, 2021
738734f
[libomptarget][amdgpu] Report zero devices if plugin construction fai…
JonChesterfield Sep 27, 2021
2bc4d48
[libomptarget][amdgpu] Follow on to D110513, empty kernarg pools are …
JonChesterfield Sep 27, 2021
6cfb4d4
[llvm-readobj] Support dumping of MSP430 ELF attributes
jozeflopen Sep 27, 2021
57cd7b0
[gn build] Port 6cfb4d46bae1
llvmgnsyncbot Sep 27, 2021
b345952
Revert "tsan: add a test for stack init race"
kda Sep 27, 2021
c427727
[CodeMoverUtils] Enhance isSafeToMoveBefore() when control flow equiv…
CongzheUalberta Sep 27, 2021
6fe2e9a
[ORC] Hold shared_ptr<SymbolStringPool> in errors containing SymbolSt…
lhames Sep 27, 2021
283ed7d
Revert "[Polly] Reject reject regions entered by an indirectbr/callbr."
zeroomega Sep 27, 2021
9451d9d
[libc++][NFC] s/enable_if<...>::type/enable_if_t<...> in span
JoeLoser Sep 27, 2021
027c036
[Polly] Reject regions entered by an indirectbr/callbr.
Meinersbur Sep 27, 2021
21a0625
[ORC] Switch from JITTargetAddress to ExecutorAddr for EPC-call APIs.
lhames Sep 27, 2021
593b074
[PowerPC] MMA - Add __builtin_vsx_build_pair and __builtin_mma_build_…
Sep 13, 2021
22f8276
[llvm-jitlink] Add more information about allocation failures.
lhames Sep 28, 2021
61e25d2
clang-format
lhames Sep 28, 2021
5df9112
Reland "[LoopPredication] Add testcase showing BPI computation. NFC"
annamthomas Sep 28, 2021
4f6a6ba
Revert "tsan: fix trace tests on darwin"
Sep 28, 2021
90fb73a
[LoopPred Test] Fix lld-x86_64-win BB failure
annamthomas Sep 28, 2021
ebe9944
[ISel] Legalized arithmetic.fence.f128 for 32-bits target
xiangzh1 Sep 25, 2021
aa061dd
[ORC] Fix the LLJITWithRemoteDebugging example.
lhames Sep 28, 2021
57e8f84
[X86][FP16] Fix a bug when Combine the FADD(A, FMA(B, C, 0)) to FMA(B…
MoringLiu Sep 28, 2021
1bcd6b5
[clangd] Refactor IncludeStructure: use File (unsigned) for most comp…
kirillbobyrev Sep 28, 2021
e507711
Attempt to fix Windows builds after D110386
kirillbobyrev Sep 28, 2021
90babc8
Fix URLs to the prod/staging buildbot master in the doc
joker-eph Sep 27, 2021
b2b1a8b
[LiveIntervals] Improve repair after convertToThreeAddress
jayfoad Sep 22, 2021
20c0280
[LiveIntervals] Repair subreg ranges in processTiedPairs
jayfoad Sep 24, 2021
9fb57c8
[mlir] Add min/max operations to Standard.
pifon2a Sep 28, 2021
7394d3b
Investigate D110386 Windows failures
kirillbobyrev Sep 28, 2021
af63d17
[flang] GET_COMMAND_ARGUMENT(LENGTH) runtime implementation
rovka Sep 3, 2021
df63023
[flang] GET_COMMAND_ARGUMENT(VALUE) runtime implementation
rovka Aug 25, 2021
0446f12
[flang] GET_COMMAND_ARGUMENT(ERRMSG) runtime implementation
rovka Sep 14, 2021
bd2623b
[fir] Update fir.insert_on_range op
vdonaldson Sep 28, 2021
62eeacc
[DebugInfo] Emit DW_TAG_namelist and DW_TAG_namelist_item
bhuvanendrakumarn Aug 23, 2021
764d9aa
Recommit "[SCEV] Look through single value PHIs." (take 2)
fhahn Sep 28, 2021
5b5ef2e
[fir] Add fir.save_result op
schweitzpgi Sep 28, 2021
d1c6e54
Investigate D110386 failures even further
kirillbobyrev Sep 28, 2021
845b93e
[LiveIntervals] Fix another asan debug build failure
jayfoad Sep 28, 2021
23a5090
[clang-format][docs] mark new clang-format configuration options base…
mydeveloperday Sep 28, 2021
4f01a02
Fix documentation typos; NFC
bakinovsky-m Sep 28, 2021
864b206
[AArch64] Split bitmask immediate of bitwise AND operation
jaykang10 Sep 22, 2021
5aa4c74
[gn build] Port 864b206796ae
llvmgnsyncbot Sep 28, 2021
3d6f49a
Simplify handling of builtin with inline redefinition
Sep 16, 2021
e7a5347
Revert "[clangd] Refactor IncludeStructure: use File (unsigned) for m…
kirillbobyrev Sep 28, 2021
1aa7b83
[Docs][NFC] Add doxygen comment for AtomicExpandPass in passes.h
xgupta Sep 28, 2021
e2f6290
[VectorCombine] Discard ScalarizationResult state in early exit.
fhahn Sep 28, 2021
c0687e1
Add support for `NOLINTBEGIN` ... `NOLINTEND` comments
salman-javed-nz Sep 28, 2021
7128a54
[Test] Add more tests with cycled phis
xortator Sep 28, 2021
6359a4c
Revert "[flang] GET_COMMAND_ARGUMENT(VALUE) runtime implementation"
rovka Sep 28, 2021
156cb4c
[lldb] Remove non-stop mode code
labath Sep 27, 2021
9413ead
[lldb/test] Add ability to specify environment when spawning processes
labath Sep 27, 2021
5b125a4
[CMake] Add detection for the mold linker in AddLLVM.cmake.
fcambus Sep 28, 2021
f85d8a5
Revert "[AArch64] Split bitmask immediate of bitwise AND operation"
jaykang10 Sep 28, 2021
a91145f
Revert "[Test] Add more tests with cycled phis"
xortator Sep 28, 2021
37089ba
Reland "[flang] GET_COMMAND_ARGUMENT runtime implementation"
rovka Sep 28, 2021
00be84f
Recommit "[Test] Add more tests with cycled phis"
xortator Sep 28, 2021
7866dbb
[lldb/test] Remove a check from TestLoadAfterAttach
labath Sep 28, 2021
45e75d9
Update the message for template-template param keyword for C++17
Sep 27, 2021
8bacfb9
[SLP]No need to schedule/check parent for extract{element/value} inst…
alexey-bataev Aug 25, 2021
86bf234
[IR] Change the default value of InstertElement to poison (1/4)
hyeongyukim Sep 26, 2021
1f5ea14
[Analysis] Add FIXME:s related to size_t type checks
bjope Sep 27, 2021
460efc1
[Analysis] Be defensive when matching size_t in lib call signatures
bjope Sep 27, 2021
72d991c
[InstCombine] add/move tests for icmp with gep operand(s); NFC
rotateright Sep 28, 2021
9324cc2
Change __builtin_sycl_unique_stable_name to just use an Itanium mangling
Sep 22, 2021
2c53215
[ARM] Skip debug info in recomputeVPTBlockMask
davemgreen Sep 28, 2021
1a1aed8
[InstCombine] add tests for icmp-gep; NFC
rotateright Sep 28, 2021
1f8bead
[InstCombine] reduce code for swapped predicate; NFC
rotateright Sep 28, 2021
bd37991
Refine the constraint for isInlineBuiltinDeclaration
Sep 28, 2021
0ea7750
[LoopFlatten] Updating Phi nodes after IV widening
Sep 28, 2021
f701505
[SLP]Improve vectorization of phi nodes by trying wider vectors.
alexey-bataev Aug 25, 2021
73a196a
Recommit "[AArch64] Split bitmask immediate of bitwise AND operation"
jaykang10 Sep 28, 2021
1cd3ae0
Fix missing return from 9324cc2ca951fe5fe11c85470cb08e699c59499c
Sep 28, 2021
fdd8c10
[ARM] Delay reverting WLS in arm-block-placement
davemgreen Sep 28, 2021
86cd236
[lldb] [DynamicRegisterInfo] Refactor SetRegisterInfo()
mgorny Sep 28, 2021
f3932ae
tsan: fix cur_thread alignment
dvyukov Sep 28, 2021
993ada0
[lldb] [unittests] Fix building the FreeBSD arm64 Register Context test
zxombie Sep 17, 2021
b38c04a
[fir][NFC] Rename operand of EmboxOp
clementval Sep 28, 2021
ade5023
tsan: fix tls_race3 test on darwin
dvyukov Sep 28, 2021
ccc83ac
tsan: print a meaningful frame for stack races
dvyukov Sep 27, 2021
c93da7d
Revert "[CMake] Enable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR by default …
LebedevRI Sep 28, 2021
9e4f1f9
[SystemZ] Remove redundant declaration SystemZMnemonicSpellCheck (NFC)
kazutakahirata Sep 28, 2021
70391b3
[PowerPC] FP compare and test XL compat builtins.
Sep 8, 2021
091c16f
[llvm-profgen] On-demand symbolization
wlei-llvm Sep 25, 2021
ce40843
[llvm-profgen][CSSPGO] On-demand function size computation for preinl…
wlei-llvm Sep 25, 2021
aa93c55
[X86][Costmodel] Load/store i16 Stride=6 VF=2 interleaving costs
LebedevRI Sep 28, 2021
b3011bc
[X86][Costmodel] Load/store i16 Stride=6 VF=4 interleaving costs
LebedevRI Sep 28, 2021
24e42f7
[X86][Costmodel] Load/store i16 Stride=6 VF=8 interleaving costs
LebedevRI Sep 28, 2021
b6b7860
[X86][Costmodel] Load/store i16 Stride=6 VF=16 interleaving costs
LebedevRI Sep 28, 2021
a7d084a
[libc++] [compare] Rip out more vestiges of *_equality. NFCI.
Quuxplusone Sep 27, 2021
ee3109b
[update_llc_test_checks] Baseline test for D100027
arichardson Sep 28, 2021
547e5e4
[update_llc_test_checks.py] Fix MIPS ASM regex for functions with EH
arichardson Sep 28, 2021
3c51b9e
Fix incorrect GEP bitwidth in areNonOverlapSameBaseLoadAndStore()
arichardson Sep 28, 2021
a281770
[UpdateTestChecks][NFC] Drop a python2 workaround
arichardson Sep 24, 2021
d5631d4
Drop REQUIRES: arm-registered-target from an IR-only test
arichardson Sep 22, 2021
90179f2
[NFC] Add a comment to member-function-pointer-calls.cpp
arichardson Sep 22, 2021
a181819
[NFC][clang] Add a CHECK lines to tests checking offsetof-like expres…
arichardson Sep 22, 2021
fc00510
[InstCombine][ConstantFold] Baseline tests for ptrtoint(gep null, x)
arichardson Sep 28, 2021
9049a1c
[ConstantFolding] Fold ptrtoint(gep i8 null, x) -> x
arichardson Sep 28, 2021
ebb3dc0
[InstCombine] Fold ptrtoint(gep i8 null, x) -> x
arichardson Sep 28, 2021
74a47e5
[llvm-objdump] Fix -R display and support ET_EXEC
MaskRay Sep 28, 2021
27a972a
Diagnose -Wunused-value based on CFG reachability
Jun 24, 2021
bddc04b
[CostModel][X86] Add SSE2/AVX1/AVX512BW test coverage for i16 interle…
RKSimon Sep 28, 2021
56e681a
[TargetLibraryInfo] Pick new/delete calls by target
pogo59 Sep 24, 2021
1b998a5
Add salvageDebugInfo support for truncating/extending ptr/int convers…
adrian-prantl Sep 24, 2021
9637b04
Improve the effectiveness of ADCE's debug info salvaging
adrian-prantl Sep 25, 2021
f6954bf
Improve the effectiveness of BDCE's debug info salvaging
adrian-prantl Sep 27, 2021
43c543a
[libc][NFC] Make strchr and strrchr more consistent
michaelrj-google Sep 27, 2021
9e7fdcb
[MCJIT] Mark test-global-ctors as UNSUPPORTED on Darwin, rather than …
lhames Sep 26, 2021
ab5e6e7
[llvm-jitlink] Add a -slab-page-size option to override process page …
lhames Sep 28, 2021
85f612e
DebugInfo: Use sugared function type when emitting function declarati…
dwblaikie Sep 28, 2021
be61093
[MSP430][Clang] Remove support for -mmcu=msp430
jozeflopen Sep 28, 2021
113fa82
[Polly] Check the properties of accesses to operands of a matrix-matrix
gareevroman Sep 25, 2021
5c3c716
[libc] Add FE_DFL_ENV and handle it in fesetenv.
Sep 28, 2021
bfa5025
[NFC][sanitizer] Clang-format some code
vitalybuka Sep 28, 2021
fd582ee
[CUDA] Move CUDA SDK include path further down the include search path.
Artem-B Sep 27, 2021
0d76d48
Revert "Simplify handling of builtin with inline redefinition"
kda Sep 28, 2021
c6edf26
[docs ]Fix indentation
ahatanaka Sep 13, 2021
09c575e
[InstCombine] add/move tests for shl with binop; NFC
rotateright Sep 28, 2021
9b944c1
Revert "Add support for `NOLINTBEGIN` ... `NOLINTEND` comments"
AaronBallman Sep 28, 2021
b9f547e
[llvm][profile] Add padding after binary IDs
PiJoules Sep 28, 2021
c3717b6
Simplify handling of builtin with inline redefinition
Sep 16, 2021
a03cf33
[llvm-profgen] Strip context to support non-CS profile generation for…
wlei-llvm Sep 24, 2021
03ce084
Add profile count. Regenerate check lines. NFC
annamthomas Sep 28, 2021
abbbc48
Revert "Improve the effectiveness of BDCE's debug info salvaging"
nikic Sep 28, 2021
1ecb1bc
Fix memcpy-nobuiltin.c test case
Sep 28, 2021
d486c5b
[libc++] Clarify the name of Lit features related to standard library…
ldionne Sep 28, 2021
abab0db
[llvm-jitlink] Add -slab-page-size to tests that need it.
lhames Sep 28, 2021
b12e4c1
[mlir] Fix bug in FoldSubview with rank reducing subview
ThomasRaoux Sep 28, 2021
595c418
[LTO] Avoid repeated Triple construction. NFC
MaskRay Sep 28, 2021
6c1a58f
[InstCombine] add multi-use tests for shl folds; NFC
rotateright Sep 28, 2021
98fde34
[InstCombine] reduce redundant code for shl-binop folds
rotateright Sep 28, 2021
8379fc4
[libc] Add implementations of the C standard condition variable funct…
Aug 25, 2021
2943071
[clang] Rework dontcall attributes
aeubanks Sep 23, 2021
952f030
[test] Pin some RUN lines in optimization-remark.c to new PM
aeubanks Sep 28, 2021
86df5a2
[libc++] Simplify std::ranges::subrange
ldionne Sep 23, 2021
7ab14b8
[mlir] Unroll-and-jam loops with iter_args.
ayzhuang Sep 28, 2021
b69a2c8
Revert "[test] Pin some RUN lines in optimization-remark.c to new PM"
aeubanks Sep 28, 2021
7833d20
Revert "[clang] Rework dontcall attributes"
aeubanks Sep 28, 2021
55dfab3
Rename target block size to min task size for clarity.
Sep 28, 2021
bdde959
Remove unnecessary async group creates and awaits.
Sep 28, 2021
38c42d4
Flang OpenMP Report Plugin
stuellis Sep 28, 2021
f9b3c18
[CodeGen] Fix wrapping personality symbol on ARM
smeenai Sep 28, 2021
4f38f06
[mlir][tosa] Add i32 to supported quantized type
rsuderman Sep 28, 2021
aa53785
Reland [clang] Rework dontcall attributes
aeubanks Sep 23, 2021
204d301
[mlir][Python] Fix lifetime of ExecutionEngine runtime functions.
silvasean Sep 28, 2021
7c1128f
[NFC][sanitizer] Return StackDepotStats by value
vitalybuka Sep 28, 2021
a36227c
fixes bug #51926 where dangling comma caused overrun
feg208 Sep 25, 2021
5cf0606
[clang] Let PPCallbacks::PragmaWarning() pass specifier as enum inste…
nico Sep 28, 2021
b62d72f
[libc] Add support for 128 bit ints in limits.h
michaelrj-google Sep 28, 2021
15a24e1
[GlobalISel] Combine mulo x, 2 -> addo x, x
Sep 28, 2021
2d56fbf
[test] Specify triple in backend-attribute-error-warning.cpp
aeubanks Sep 28, 2021
d87bdc2
Clean up large copies of binaries copied into temp directories in tests
teresajohnson Sep 22, 2021
241c7b1
[AArch64][GlobalISel] Run overlapping_and after legalization
Sep 28, 2021
fc734da
[JITLink][MachO][arm64] Add support for splitting compact-unwind sect…
lhames Sep 29, 2021
25c3032
[AIX] Change the linkage of profiling counter/data to be private
Sep 28, 2021
7255ce3
[SelectionDAG] Fix incorrect condition for shift amount truncation
nextsilicon-itay-bookstein Sep 27, 2021
c07f709
Revert "Recommit "[AArch64] Split bitmask immediate of bitwise AND op…
Sterling-Augustine Sep 29, 2021
fd9a5b9
[gn build] Port c07f7099690e
llvmgnsyncbot Sep 29, 2021
c0735cb
[AMDGPU] Do not internalize ASan device library functions.
hsmahesha Sep 29, 2021
1e48951
[AIX] Enable PGO without LTO
Sep 29, 2021
1f2f1a4
[JITLink][MachO][x86-64] Add support for splitting compact-unwind sec…
lhames Sep 29, 2021
1380eae
[ORC-RT] Add target dependencies to ORC-RT regression tests.
lhames Sep 29, 2021
ac2daac
[ORC][examples] Port LLJITWithRemoteDebugging to SimpleRemoteEPC
weliveindetail Sep 27, 2021
60527ce
[fir][NFC] Rename operand of ArrayCoorOp
schweitzpgi Sep 29, 2021
4da744a
[OpenCL] Fix as_type3 invalid store creation
svenvh Sep 29, 2021
791d7e3
Merge commit '4da744a20ff58c9b3d8df0e2eb9e8b69d9e5cc3d' into feature/…
kaz7 Oct 15, 2021
fa80fb9
[AMDGPU] Require AMDGPU target for ASAN instrumentation tests
DavidSpickett Sep 29, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ void ExpandModularHeadersPPCallbacks::PragmaOpenCLExtension(
parseToLocation(NameLoc);
}
void ExpandModularHeadersPPCallbacks::PragmaWarning(SourceLocation Loc,
StringRef, ArrayRef<int>) {
PragmaWarningSpecifier,
ArrayRef<int>) {
parseToLocation(Loc);
}
void ExpandModularHeadersPPCallbacks::PragmaWarningPush(SourceLocation Loc,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ class ExpandModularHeadersPPCallbacks : public PPCallbacks {
SrcMgr::CharacteristicKind) override;
void PragmaOpenCLExtension(SourceLocation NameLoc, const IdentifierInfo *,
SourceLocation StateLoc, unsigned) override;
void PragmaWarning(SourceLocation Loc, StringRef, ArrayRef<int>) override;
void PragmaWarning(SourceLocation Loc, PragmaWarningSpecifier,
ArrayRef<int>) override;
void PragmaWarningPush(SourceLocation Loc, int) override;
void PragmaWarningPop(SourceLocation Loc) override;
void PragmaAssumeNonNullBegin(SourceLocation Loc) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h"
#include <cctype>

using namespace clang::ast_matchers;

Expand Down Expand Up @@ -134,6 +135,11 @@ shouldReplaceLiteralSuffix(const Expr &Literal,
CharSourceRange::getTokenRange(*Range), SM, LO, &Invalid);
assert(!Invalid && "Failed to retrieve the source text.");

// Make sure the first character is actually a digit, instead of
// something else, like a non-type template parameter.
if (!std::isdigit(static_cast<unsigned char>(LiteralSourceText.front())))
return llvm::None;

size_t Skip = 0;

// Do we need to ignore something before actually looking for the suffix?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ Example:
};

struct Derived : Base {
virtual funk();
virtual void funk();
// warning: 'Derived::funk' has a similar name and the same signature as virtual method 'Base::func'; did you mean to override it?
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ performance-type-promotion-in-math-fn
Finds calls to C math library functions (from ``math.h`` or, in C++, ``cmath``)
with implicit ``float`` to ``double`` promotions.

For example, warns on ``::sin(0.f)``, because this funciton's parameter is a
For example, warns on ``::sin(0.f)``, because this function's parameter is a
double. You probably meant to call ``std::sin(0.f)`` (in C++), or ``sinf(0.f)``
(in C).

Expand Down
10 changes: 8 additions & 2 deletions clang-tools-extra/pp-trace/PPCallbacksTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ static const char *const PragmaMessageKindStrings[] = {
"PMK_Message", "PMK_Warning", "PMK_Error"
};

// PragmaWarningSpecifier strings.
static const char *const PragmaWarningSpecifierStrings[] = {
"PWS_Default", "PWS_Disable", "PWS_Error", "PWS_Once", "PWS_Suppress",
"PWS_Level1", "PWS_Level2", "PWS_Level3", "PWS_Level4",
};

// ConditionValueKind strings.
static const char *const ConditionValueKindStrings[] = {
"CVK_NotEvaluated", "CVK_False", "CVK_True"
Expand Down Expand Up @@ -267,11 +273,11 @@ void PPCallbacksTracker::PragmaOpenCLExtension(SourceLocation NameLoc,

// Callback invoked when a #pragma warning directive is read.
void PPCallbacksTracker::PragmaWarning(SourceLocation Loc,
llvm::StringRef WarningSpec,
PragmaWarningSpecifier WarningSpec,
llvm::ArrayRef<int> Ids) {
beginCallback("PragmaWarning");
appendArgument("Loc", Loc);
appendArgument("WarningSpec", WarningSpec);
appendArgument("WarningSpec", WarningSpec, PragmaWarningSpecifierStrings);

std::string Str;
llvm::raw_string_ostream SS(Str);
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/pp-trace/PPCallbacksTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class PPCallbacksTracker : public PPCallbacks {
diag::Severity mapping, llvm::StringRef Str) override;
void PragmaOpenCLExtension(SourceLocation NameLoc, const IdentifierInfo *Name,
SourceLocation StateLoc, unsigned State) override;
void PragmaWarning(SourceLocation Loc, llvm::StringRef WarningSpec,
void PragmaWarning(SourceLocation Loc, PragmaWarningSpecifier WarningSpec,
llvm::ArrayRef<int> Ids) override;
void PragmaWarningPush(SourceLocation Loc, int Level) override;
void PragmaWarningPop(SourceLocation Loc) override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,29 @@ void c() { l &a(); }
void d();
void d() { c<b>(); }
} // namespace

// Check that non-type template parameters do not cause any diags.
// https://bugs.llvm.org/show_bug.cgi?id=51790
template <int capacity>
struct Vector {
static constexpr int kCapacity = capacity;
};

template <int capacity>
constexpr int Vector<capacity>::kCapacity;
// CHECK-MESSAGES-NOT: :[[@LINE-1]]:22: warning: integer literal has suffix 'ity', which is not uppercase

template <int foo1u>
struct Foo {
static constexpr int kFoo = foo1u;
};

template <int foo1u>
constexpr int Foo<foo1u>::kFoo;
// CHECK-MESSAGES-NOT: :[[@LINE-1]]:19: warning: integer literal has suffix 'u', which is not uppercase

// The template needs to be instantiated for diagnostics to show up
void test_non_type_template_parameter() {
int x = Vector<10>::kCapacity;
int f = Foo<10>::kFoo;
}
6 changes: 3 additions & 3 deletions clang-tools-extra/test/pp-trace/pp-trace-pragma-ms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@
// CHECK-NEXT: Introducer: PIK_HashPragma
// CHECK-NEXT: - Callback: PragmaWarning
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-pragma-ms.cpp:17:9"
// CHECK-NEXT: WarningSpec: disable
// CHECK-NEXT: WarningSpec: PWS_Disable
// CHECK-NEXT: Ids: [1, 2, 3]
// CHECK-NEXT: - Callback: PragmaWarning
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-pragma-ms.cpp:17:9"
// CHECK-NEXT: WarningSpec: error
// CHECK-NEXT: WarningSpec: PWS_Error
// CHECK-NEXT: Ids: [4, 5, 6]
// CHECK-NEXT: - Callback: PragmaWarning
// CHECK-NEXT: Loc: "{{.*}}{{[/\\]}}pp-trace-pragma-ms.cpp:17:9"
// CHECK-NEXT: WarningSpec: suppress
// CHECK-NEXT: WarningSpec: PWS_Suppress
// CHECK-NEXT: Ids: [7, 8, 9]
// CHECK-NEXT: - Callback: EndOfMainFile
// CHECK-NEXT: ...
2 changes: 1 addition & 1 deletion clang/docs/Block-ABI-Apple.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ the following form:
int reserved;
R (*invoke)(struct Block_literal_1 *, P...);
struct Block_descriptor_1 {
unsigned long int reserved; // NULL
unsigned long int reserved; // NULL
unsigned long int size; // sizeof(struct Block_literal_1)
// optional helper functions
void (*copy_helper)(void *dst, void *src); // IFF (1<<25)
Expand Down
Loading