Skip to content

LLVM and SPIRV-LLVM-Translator pulldown (WW46-47) #4993

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 1,892 commits into from
Nov 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1892 commits
Select commit Hold shift + click to select a range
2037ec7
[X86][Costmodel] `*ext v64i1 to v32i16` can appear after legalization…
LebedevRI Nov 17, 2021
496ccb5
[NFC][X86][Costmodel] Improve test coverage for i32->i64 vector *ext
LebedevRI Nov 17, 2021
c74f2e5
[InstCombine] Use SpecificBinaryOp_match in two more places
rampitec Nov 16, 2021
13744e3
[libc][benchmark] add memmove to size distribution, also update other…
gchatelet Nov 17, 2021
1ed5a90
[fir] Add conversion patterns for slice, shape, shapeshift and shift ops
clementval Nov 17, 2021
3264e95
[CodeGen] Update LiveIntervals in TargetInstrInfo::convertToThreeAddress
jayfoad Nov 9, 2021
4be705d
[RISCV] Add extra -early-live-intervals test coverage
jayfoad Oct 8, 2021
ca18fcc
[IR] Change CreateStepVector to work with element types smaller than i8
david-arm Nov 12, 2021
efbe9ae
Revert "[runtimes] Fix building initial libunwind+libcxxabi+libcxx wi…
mstorsjo Nov 17, 2021
9574da8
[lldb/test] TestRegisterVariables test fix
Nov 17, 2021
e8b55cf
[SCEV] Apply loop guards when computing max BTC for arbitrary steps.
fhahn Nov 17, 2021
e38ef2f
[fir] Add fir.box_tdesc conversion
clementval Nov 17, 2021
7b39ae5
[Thumb2] Regenerate test impacted by e8b55cf7b70a695d158d.
fhahn Nov 17, 2021
1dc0e47
[DebugInfo][NFC] Force some tests to not use instruction-referencing
jmorse Nov 17, 2021
670dd40
[Analysis] Fix getNumberOfParts to return 0 when the answer is unknown
david-arm Nov 11, 2021
964536c
[fir] !fir.tdesc type conversion
clementval Nov 17, 2021
5fedbd5
[DAG] SimplifyDemandedVectorElts - zero_extend_vector_inreg(and(x,c))…
RKSimon Nov 17, 2021
aeedbd3
[AMDGPU] Generate test checks for mad_64_32.ll
jayfoad Nov 16, 2021
8d77555
[Analysis] Ensure getTypeLegalizationCost returns a simple VT for Typ…
david-arm Nov 12, 2021
3874277
Improve docs & test for #pragma clang attribute's any clause; NFC
AaronBallman Nov 17, 2021
db6bc2a
[AMDGPU][GlobalISel] Fold G_FNEG above when users cannot fold mods
mbrkusanin Nov 17, 2021
f2d402e
[NFC][AMDGPU][GlobalISel] Fix some legalizer tests
mbrkusanin Nov 17, 2021
2b49484
Add a clang-transformer tutorial
ymand Nov 15, 2021
a7c57c4
tsan: don't consider debug calls as calls
dvyukov Nov 17, 2021
033b94a
lsan: remove pthread_detach/join interceptors
dvyukov Nov 15, 2021
d1f72f0
memprof: don't use thread user_id
dvyukov Nov 15, 2021
bdabf3c
asan: don't use thread user_id
dvyukov Nov 15, 2021
4ea066a
[clangd] Fix assertion crashes on unmatched NOLINTBEGIN comments.
hokein Nov 16, 2021
ec4a2c9
[NFC][clangd] cleanup llvm-else-after-return findings
ChristianKuehnel Nov 15, 2021
8924ba3
[NFC][clang] Inclusive terms: replace uses of blacklist in clang/test/
ZarkoT Nov 17, 2021
35ff3a0
[analyzer][NFC] Make the API of CallDescription safer slightly
Nov 17, 2021
ddf2d62
[mlir][Vector] First step for 0D vector type
michalt Nov 17, 2021
392da64
[libc] Fix documentation typo
gchatelet Nov 17, 2021
5ee5acf
[libc] Fix missing restricts
gchatelet Nov 17, 2021
649d953
[libc] Use more consistent if defined syntax
gchatelet Nov 17, 2021
76313f8
[NFC][gn build] Inclusive language: replace master with main in sync_…
Nov 15, 2021
ea23cc7
[libc++abi] Don't re-define _LIBCPP_HAS_NO_THREADS in single-threaded…
ldionne Nov 17, 2021
c0f87e8
[libc++] Remove _LIBCPP_HAS_NO_SPACESHIP_OPERATOR
ldionne Nov 15, 2021
9b2b549
[OpenMP] Silence build warnings when built with MinGW
mstorsjo Nov 17, 2021
f1c159c
[Format, Sema] Use range-based for loops with llvm::reverse (NFC)
kazutakahirata Nov 17, 2021
2e7f12d
[SLP][NFC]Add a test for multiple alternate nodes with cost estimation,
alexey-bataev Nov 17, 2021
e3e25b5
[NewPM] Add option to prevent rerunning function pipeline on function…
aeubanks Nov 16, 2021
e1ef140
[gn build] Add missed comma
aeubanks Nov 17, 2021
394d6fc
[flang] Check ArrayRef base for contiguity in IsSimplyContiguousHelper
jeanPerier Nov 17, 2021
f07ddbc
[lldb] build failure for LLDB_PYTHON_EXE_RELATIVE_PATH on greendragon
lawrence-danna-apple Nov 17, 2021
5273773
[JITLink] Allow duplicate symbol names for locals
benlangmuir Nov 17, 2021
1e9fa0b
Fix the side effect of outlined function when the register is implici…
dianqk Nov 17, 2021
78d6009
[flang] Deal with negative character lengths in semantics
klausler Nov 15, 2021
693b020
[llvm-objdump/mac] Add support for new load commands
keith Nov 12, 2021
e76e572
[clangd] Dont include file version in task name
kadircet Nov 8, 2021
103cc91
[x86/asm] Make variants work when converting at&t inline asm input to…
nico Nov 15, 2021
0274be2
[RISCV] Lower vector CTLZ_ZERO_UNDEF/CTTZ_ZERO_UNDEF by converting to…
topperc Nov 17, 2021
bf834b2
[x86/asm] Let EmitMSInlineAsmStr() handle variants too
nico Nov 15, 2021
3e957e5
[libc++] Refactor tests for trivially copyable atomics
ldionne Nov 17, 2021
68311f2
[llvm-objcopy][MachO] Add llvm-strip support for newer load commands
keith Nov 12, 2021
ae98182
[clang] Make -masm=intel affect inline asm style
nico Nov 11, 2021
1718fe4
[llvm-objcopy] Fix some comment typos
nico Nov 17, 2021
6d3db28
[InstCombine] Generalize complex OR patterns to AND
rampitec Nov 9, 2021
69f35f8
[OpenMP] Add version macro support for 5.1 and 5.2
mikerice1969 Nov 17, 2021
e76032c
[X86] LowerRotate - improve vXi8 rotate-by-scalar lowering with direc…
RKSimon Nov 17, 2021
3020608
Fix MSVC signed/unsigned mismatch warning. NFC.
RKSimon Nov 17, 2021
47d0c83
[libc] fix strtof/d/ld NaN parsing
michaelrj-google Nov 12, 2021
b1ad813
[clang] Address review comments on https://reviews.llvm.org/D113707
nico Nov 17, 2021
1b468f1
[lldb] Port PlatformWindows, PlatformOpenBSD and PlatformRemoteGDBSer…
labath Nov 15, 2021
a11d27f
[clang] Try to fix test after ae98182cf7341181e
nico Nov 17, 2021
5f99f77
[X86] splitVector - only extract lower half subvector from splats
RKSimon Nov 17, 2021
4c32e3d
[SystemZ] [Sanitizer] Bugfixes in internal_clone().
JonPsson Nov 10, 2021
b861c36
Fix -Wparentheses warnings. NFC.
darkbuck Nov 17, 2021
ad69402
[SCEVAA] Avoid forming malformed pointer diff expressions
preames Nov 17, 2021
c46becf
[OpenMP][libomp][NFC] Remove non-ASCII apostrophe in comment
jpeyton52 Nov 17, 2021
36873fb
[clang] Try to fix test more after ae98182cf7341181e
nico Nov 17, 2021
3623163
[clang] Fix typo in 36873fb768dbe
nico Nov 17, 2021
ccd729f
[NFC] Update comments to refer to unique_ptr instead of raw pointers.
ymand Nov 17, 2021
9574166
[libc++][NFC] Re-indent and re-order includes in uses_alloc_types.h
ldionne Nov 17, 2021
6327071
[lldb] remove usage of distutils, fix python path on debian/ubuntu
lawrence-danna-apple Nov 17, 2021
a0afb9d
[OpenMP][libomp] Allow users to specify KMP_HW_SUBSET in any order
jpeyton52 Oct 18, 2021
eb8650a
[runtimes][NFC] Remove filenames at the top of the license notice
ldionne Nov 17, 2021
e852cc0
[clang-format][NFC] Add a default value to parseBlock()
owenca Nov 17, 2021
bca003d
[mlir] Fix wrong variable name in Linalg OpDSL
ftynse Nov 16, 2021
7a8c794
[clang] Allocate 2 bits to store the constexpr specifier kind when se…
HighCommander4 Oct 18, 2021
0d0c46a
[mlir] Improve documentation of shape dialect
jpienaar Nov 17, 2021
9cc489a
[lld-macho][nfc] Factor-out NFC changes from main __eh_frame diff
gkmhub Nov 15, 2021
1dd7971
[OpenMP][libomp] Add support for offline CPUs in Linux
jpeyton52 Oct 21, 2021
286094a
[OpenMP][libomp] Improve Windows Processor Group handling within topo…
jpeyton52 Oct 21, 2021
edc6c0e
[mlir] Refactor AbstractOperation and OperationName
River707 Nov 17, 2021
a733b18
[OpenMP][libomp] Enable HWLOC topology detection of multiple CPU kinds
jpeyton52 Oct 21, 2021
a340a49
Add Android test case for -Wpartial-availability. Also update Android…
jfgoog Nov 17, 2021
044e7e0
[mlir][tosa] Fixed shape inference for tosa.transpose_conv2d
rsuderman Nov 17, 2021
a82ee2b
[sanitizer] Add a few of type_traits tools
vitalybuka Nov 17, 2021
951b107
[NFC] Refactor symbol table parsing.
clayborg Nov 16, 2021
d78fdf1
[LegalizeTypes] Further limit expansion of CTTZ during type promotion.
topperc Nov 17, 2021
1f7827e
[MLIR][Docs] Fix link syntax in Rationale.md
jryans Nov 17, 2021
22e66a9
Revert "[sanitizer] Add a few of type_traits tools"
vitalybuka Nov 17, 2021
1a84d1c
[compiler-rt][asan] Re-add `self`
PiJoules Nov 17, 2021
5a6dac6
LiteralSupport: Don't assert() on invalid input
DaanDeMeyer Nov 16, 2021
adfbb54
[lld-macho] Add warn flags to enable/disable warnings on -install_name
thevinster Nov 10, 2021
d6b7576
[flang] Fix INQUIRE(PAD=) and (POSITION=) for predefined units
klausler Nov 16, 2021
6d28dff
[AMDGPU] Update GFX10 memory model to account for MALL
perlfu Nov 17, 2021
c1becf4
[flang] Add a semantics test for co_sum
Nov 17, 2021
eb9dc0c
[X86] add 3 missing intrinsics: _mm_(mask/maskz)_cvtpbh_ps
FreddyLeaf Nov 18, 2021
0623f52
Autogen a test for ease of update
preames Nov 18, 2021
c4dba47
[X86][AMX] Don't emit tilerelease for old AMX instrisic.
LuoYuanke Nov 17, 2021
6e41a06
[mlir][tosa] Revert add-0 canonicalization for floating-point
rsuderman Nov 18, 2021
af9f3c6
[Coroutine] Warn deprecated 'std::experimental::coro' uses
ChuanqiXu9 Nov 18, 2021
02eca53
[sanitizer] Add a few of type_traits tools
vitalybuka Nov 17, 2021
92eaad2
Revert "Revert "Make it possible for lldb to launch a remote binary w…
jimingham Nov 17, 2021
a68ccda
Revert "[NFC] Refactor symbol table parsing."
clayborg Nov 18, 2021
1ce77b5
[mlir][sparse] refine lexicographic insertion to any tensor
aartbik Nov 16, 2021
254f931
[NFC][sanitizer] Fix veradic-macro warning in RAW_CHECK
vitalybuka Nov 18, 2021
062ef8f
[Driver][Android] Remove unneeded isNoExecStackDefault
MaskRay Nov 18, 2021
4a9523c
PR52537: When performing a no-op TreeTransform of a rewritten binary
zygoloid Nov 18, 2021
5b8bbbe
[NFC][llvm] Inclusive language: reword and remove uses of sanity in l…
ZarkoT Nov 18, 2021
54adc16
[NFC][sanitizer] Add unchanged DenseMap
vitalybuka Nov 16, 2021
234a830
[NFC][sanitizer] Clang format copied code
vitalybuka Nov 16, 2021
7612cfd
[NFC][sanitizer] Fix headers of DenseMap
vitalybuka Nov 16, 2021
c26dbc4
[sanitizer] Fix DenseMap for compiler-rt
vitalybuka Nov 18, 2021
24d1673
[llvm-tblgen][RISCV] Make llvm-tblgen RISCVCompressInstEmitter to be …
zixuan-wu Nov 18, 2021
59c8477
[NFC][llvm] Inclusive language: remove uses of sanity in llvm/lib/Exe…
ZarkoT Nov 18, 2021
de34a94
[X86] Add -mskip-rax-setup support to align with GCC
phoebewang Nov 18, 2021
9722191
[gn build] Port 24d1673c8b9b
llvmgnsyncbot Nov 18, 2021
7411560
[clang] Use range-based for loops with llvm::reverse (NFC)
kazutakahirata Nov 18, 2021
49682f1
[SPIR-V] Add translator tool
Nov 17, 2021
111d8f7
tsan: remove quadratic behavior in pthread_join
dvyukov Nov 17, 2021
d61840c
[gn build] Port 49682f14bf3f
llvmgnsyncbot Nov 18, 2021
92832e4
[libc++] Enable <atomic> when threads are disabled
ldionne Nov 17, 2021
c723569
[gn build] Port 92832e4889ae
llvmgnsyncbot Nov 18, 2021
a9fba2b
[X86][ABI] Do not return float/double from x87 registers when x87 is …
phoebewang Nov 18, 2021
6113ea8
[X86][Driver] Add X86 target option to avoid fail to other targets. NFC
phoebewang Nov 18, 2021
4a8734d
[libc++] [test] Add "robust_re_difference_type.compile.pass.cpp" for …
Quuxplusone Nov 15, 2021
0c7890c
[mlir] Convert NamedAttribute to be a class
River707 Nov 18, 2021
26e9042
[mlir][linalg][bufferize][NFC] Decouple ComprehensiveBufferize from t…
matthias-springer Nov 18, 2021
ebf8d74
[mlir][linalg][bufferize] Fix bufferize bug where non-tensor ops are …
matthias-springer Nov 18, 2021
b105626
Fix Windows build after commit 49682f1.
dyung Nov 18, 2021
54c9984
[mlir][Python] Fix generation of accessors for Optional
michalt Nov 18, 2021
e81d73e
[fir] Add fir.constc conversion
rovka Nov 16, 2021
9bda9a3
[PowerPC] fix typos in comments, NFC
Nov 18, 2021
7aa2ce0
[NFC][clangd] fix clang-tidy finding on isa_and_nonnull
ChristianKuehnel Nov 15, 2021
dd6281c
[SCEV] Add additional guard tests with swapped condition ops.
fhahn Nov 18, 2021
da9f2ba
[SCEV] Reorder operands checks in collectConditions.
fhahn Nov 18, 2021
9cef7c1
[CodeGen][SVE] Add missing isel patterns for vector_reverse
david-arm Nov 17, 2021
af6ee58
[fir] Add fir.embox conversion
clementval Nov 18, 2021
8a4fcfc
Remove non-affecting module maps from PCM files.
Nov 18, 2021
9fe6b9e
[TargetLowering][RISCV] Fixed a scalable vector issue when lowering […
Nov 18, 2021
09f3986
[docs] Remove mention of retired smooshlab IRC bot.
fhahn Nov 18, 2021
1235ca3
[docs] Update outdated mentions of lab.llvm.org:8011.
fhahn Nov 18, 2021
c772a9b
[clang][modules] NFC: Fix typo in test name
jansvoboda11 Nov 18, 2021
8e47b83
[AArch64][ARM] Enablement of Cortex-A710 Support
mub-at-arm Oct 14, 2021
17ec9d1
[clang][deps] Don't emit `-fmodule-map-file=`
jansvoboda11 Nov 18, 2021
7b67908
[clang][lex] NFC: Remove unused HeaderFileInfo member
jansvoboda11 Nov 18, 2021
197576c
[clang][lex] Refactor check for the first file include
jansvoboda11 Nov 18, 2021
e1acbda
[AArch64][RISCV] Fix expected smulo/umulo test output
frasercrmck Nov 18, 2021
00200db
[LV] Add test case for PR52024.
fhahn Nov 18, 2021
cc505c0
[Flang] Notify conversion failure for Proc ops, types
kiranchandramohan Nov 18, 2021
3a56f56
[lldb] Convert internal platform usages GetSupportedArchitectures
labath Nov 17, 2021
0800109
[fir] Add tests for mlir::ComplexType conversion
rovka Nov 15, 2021
3950e1b
[clang] Remove CLANG_ROUND_TRIP_CC1_ARGS and always roundtrip in +ass…
nico Nov 17, 2021
4c56f73
[lldb] (Partially) enable formatting of utf strings before the progra…
labath Nov 3, 2021
dead1c1
[LV] Add basic check lines to test added in 00200dbda31674e59.
fhahn Nov 18, 2021
22d332a
[flang][codegen] Add `fir.end` conversion placeholder
banach-space Nov 5, 2021
b2ad420
[flang][nfc] Remove trailing whitespaces from tests
banach-space Nov 18, 2021
55a7931
[clang][clangd] Improve signature help for variadic functions.
gislan Oct 6, 2021
11982ee
[libunwind][AIX] Mark signal_frame.pass.cpp UNSUPPORTED on AIX
Nov 18, 2021
7d11c5d
Coro: Remove coro_end and coro_suspend_retcon in private unprocessed…
aschwaighofer Nov 16, 2021
26f5643
[Clang][SVE] Properly enable/disable dependant SVE target features ba…
brads55 Nov 12, 2021
1ce516d
[libc++] Minor fixups in the new introsort code.
Quuxplusone Nov 18, 2021
18ba57a
[AMDGPU] Regenerate test checks in splitkit-getsubrangeformask.ll
jayfoad Nov 18, 2021
bab3981
[libunwind] Add an interface for dynamic .eh_frame registration
housel Oct 14, 2021
a3f2be1
[mlir][doc] Rename doc to match previous name
jpienaar Nov 18, 2021
fb1a06a
[MLIR][GPU] Add target arguments to SerializeToHsaco
krzysz00 Nov 17, 2021
e6c66ef
[flang][CodeGen] Transform `fir.field_index` to a sequence of LLVM MLIR
banach-space Nov 16, 2021
ff64b29
[LoopVectorize] Check the number of uses of an FAdd before classifyin…
kmclaughlin-arm Nov 16, 2021
08c0a45
Unbreak test after D111899
adrian-prantl Nov 18, 2021
45e102a
[Clang][SVE] Fix windows test breakage in 26f56438e3dab44cea4c8f16d4c…
brads55 Nov 18, 2021
a1f9bd3
[Flang] Add a factory class for creating Complex Ops
kiranchandramohan Nov 18, 2021
100df68
[SCEV] Add test coverage for invertible functions of IVs
preames Nov 18, 2021
3821d2a
[X86] LowerRotate - pull out repeated is ISD::ROTL check. NFC.
RKSimon Nov 18, 2021
1dc1c94
[mlir][doc] Avoid name overlap that confuses copy_docs.sh (NFC)
jpienaar Nov 18, 2021
1e954a1
[flang] Fix off-by-one results from folding MAXEXPONENT and MINEXPONENT
klausler Nov 15, 2021
180625f
Add a breadcrumb comment to make debugging a user error when using ./…
preames Nov 18, 2021
7796d81
[flang] Skip `Fortran STOP:` before message when NO_STOP_MESSAGE is set
jeanPerier Nov 18, 2021
7ca14f6
[llvm] Use range-based for loops (NFC)
kazutakahirata Nov 18, 2021
526dfe3
[mlir][Linalg] Do not return failure when all tile sizes are zero.
Nov 18, 2021
7a14244
[NFC][clang] Inclusive language: replace masterPort with mainPort
Nov 9, 2021
ea12c2c
[SCEV] Move mustprogress based no-self-wrap logic so it applies to al…
preames Nov 18, 2021
f112791
[lldb] Deobfuscate python-swigsafecast.swig
labath Nov 18, 2021
95af9d8
[NFC][lldb] Inclusive language: remove instances of master from comme…
Nov 17, 2021
5cf23ec
fix syntax error
adrian-prantl Nov 18, 2021
a150428
[NFC][mlir] Inclusive language: Replace an instance of master in docs
Nov 17, 2021
0a8a590
[mlir] Fully qualify default generated type/attribute printer and parser
zero9178 Nov 18, 2021
f129556
[DSE] Move removePartiallyOverlappedStores() into DSEState (NFC)
nikic Nov 18, 2021
46c2699
[DSE] Remove getLocForWrite() (NFCI)
nikic Nov 18, 2021
049f6c2
[libc++] Resolve missing table_size symbol
Nov 18, 2021
27ea671
[SystemZ][z/OS] Fix filesystem testing
Nov 18, 2021
d26beb0
[mlir][Linalg] Add method to check if LinalgTransformationFilter has …
Nov 18, 2021
1a5666a
[SCEV] Defer loop property checks from ea12c2cb as late as possible
preames Nov 18, 2021
f27ff7f
[docs] Add Loop Optimization WG to the online sync-up page
bmahjour Nov 18, 2021
721bb73
make testcase more robust
adrian-prantl Nov 18, 2021
dc1c271
[libc++] Cast to the right `difference_type` in various algorithms
FabianWolff Nov 18, 2021
3cbc4c4
llvm-dwarfdump: Rebuild type names in dwo type units
dwblaikie Nov 18, 2021
3b7b4a8
[MLIR][NFC] Simplex::markRowRedundant: assert that row is not already…
Superty Nov 18, 2021
7c5ecc8
[mlir][vector] Insert/extract element can accept index
Mogball Nov 18, 2021
cbb8b20
Revert "Increase gdbremote timeout."
adrian-prantl Nov 18, 2021
0c4464a
[lldb] Fix formatted log statement
keith Nov 18, 2021
3b463c4
[libc++][NFC] Assign some Ranges tasks to varconst.
var-const Nov 18, 2021
e3a7f0e
[AArch64][PAC] Select llvm.ptrauth.sign/sign.generic to PAC*.
ahmedbougacha Sep 27, 2021
24cc79b
[AMDGPU] Regenerate postra-bundle-memops.mir checks. NFC.
rampitec Nov 18, 2021
40c6565
[PowerPC] Remove the redundant terminator instruction when optimizing…
VictorHuangIBM Nov 18, 2021
d9f56fe
Remove unused variable.
jimingham Nov 18, 2021
f2b5d81
[SampleFDO] Add pass name strings for the passes (NFC)
xur-llvm Nov 19, 2021
f8e6154
[AMDGPU] Fix SIPostRABundler crash on null register used by dbg value
rampitec Nov 18, 2021
734abba
[SCEV] Defer all work from ea12c2cb as late as possible
preames Nov 19, 2021
2782cb8
libfuzzer: All building libfuzzer for ARM32
m-gupta Oct 19, 2021
b0ea7ef
[msan] Clang-format the test
vitalybuka Nov 15, 2021
0425ea4
[NFC][OpaquePtr][Evaluator] Remove call to PointerType::getElementType
zsrkmyn Nov 18, 2021
85914b7
[clang] fix regression deducing pack expansion arguments introduced b…
mizvekov Nov 19, 2021
930ccf0
[NFC][sanitizer] Rename persistent_allocator to stack_store
vitalybuka Nov 15, 2021
b6169e2
[nfc][dfsan] Remove obsolete comment
vitalybuka Nov 15, 2021
368a3b5
[NFC][sanitizer] Rename PersistentAllocator to StackStore
vitalybuka Nov 15, 2021
6bf71be
[NFC][sanitizer] Move inline implementation of StackStore into cpp
vitalybuka Nov 15, 2021
bb50e97
[NFC][sanitizer] Change StackStore API to use StackTrace
vitalybuka Nov 15, 2021
8210948
[NFC][sanitizer] constexpr StackStore::StackStore()
vitalybuka Nov 18, 2021
d591a46
[NFC][sanitizer] Fix naming in StackStore
vitalybuka Nov 19, 2021
3557f49
[AARCH64] Teach AArch64FrameLowering::getFrameIndexReferencePreferSP …
Oct 5, 2021
870dfa6
[libc++][doc] Mark project for [cmp.concept] done
mumbleskates Nov 19, 2021
8fb3f84
BPF: Workaround InstCombine trunc+icmp => mask+icmp Optimization
yonghong-song Nov 19, 2021
78d6918
[mlir] Expose region utils functions
clementval Nov 19, 2021
85e03cb
[clang-tidy] fix debug-only test failure
Nov 19, 2021
ca37955
[flang] Fix printing of constc and parsing of #fir.real
rovka Nov 17, 2021
6259016
[clang-tidy] Fix false positive in readability-identifier-naming chec…
FabianWolff Nov 19, 2021
8c18719
[ELF] Expand LMA region if output section alignment introduces padding
konstantinschwarz Nov 18, 2021
f3753ad
[ASTImporter][NFC] Dump decl name at assertion violation
Nov 19, 2021
b8207db
[fir] Add fir.no_reassoc conversion
clementval Nov 19, 2021
bf55b9f
[analyzer][docs] Ellaborate the docs of cplusplus.StringChecker
Nov 19, 2021
812e64e
[DAG] MatchRotate - support rotate-by-constant of illegal types
Nov 19, 2021
47eb3f1
[ELF] Ensure output section is not discarded in addStartEndSymbols()
nga888 Nov 17, 2021
0f652d8
[X86] LowerRotate - recognise hidden ROTR patterns for better vXi8 co…
Nov 19, 2021
cf7ffc8
Merge commit '8ab6fd587578a9d73408e535a5e9c6800a7e401b' into llvmspir…
vmaksimo Nov 19, 2021
c609592
Merge remote-tracking branch 'otcshare_llvm/sycl-web' into llvmspirv_…
vmaksimo Nov 19, 2021
58edda6
Merge commit '0f652d8f527f3743771c8ad70f47d1019cb7ca1a' into llvmspir…
vmaksimo Nov 19, 2021
9a6b431
Check if BASE_LLVM_VERSION is defined by user
mnaczk Nov 2, 2021
83f7672
Fix SPIR-V Friendly IR generation for OpEnqueueKernel
aratajew Oct 28, 2021
6de860d
Tidy up .gitignore
svenvh Nov 1, 2021
9f3820a
Remove builtin prototypes from tests
svenvh Nov 12, 2021
108e0a1
Support DW_OP_LLVM_arg DWARF operation
vmaksimo Nov 18, 2021
953d768
Enable transVCMetadata flow for all functions
DmitryBushev Nov 16, 2021
d007ebb
Rename OpConstFunctionPointerINTEL to OpConstantFunctionPointerINTEL
MrSidims Nov 18, 2021
f8ee28c
Revert "[Driver] Update diagnostic usage to use new logic syntax after..
vmaksimo Nov 8, 2021
3e35c44
Fix SemaSYCL/wrapped-accessor.cpp after c9e46219f3
vmaksimo Nov 19, 2021
61e2db1
Fix LoopUnroll/2011-08-09-PhiUpdate.ll test
clin111 Nov 23, 2021
3c3ca19
Merge remote-tracking branch 'intel_llvm/sycl' into llvmspirv_pulldow…
vmaksimo Nov 23, 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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "clang/Tooling/DiagnosticsYaml.h"
#include "clang/Tooling/ReplacementsYaml.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Optional.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
Expand Down Expand Up @@ -152,9 +153,13 @@ groupReplacements(const TUReplacements &TUs, const TUDiagnostics &TUDs,
DiagReplacements;

auto AddToGroup = [&](const tooling::Replacement &R,
const tooling::TranslationUnitDiagnostics *SourceTU) {
const tooling::TranslationUnitDiagnostics *SourceTU,
const llvm::Optional<std::string> BuildDir) {
// Use the file manager to deduplicate paths. FileEntries are
// automatically canonicalized.
auto PrevWorkingDir = SM.getFileManager().getFileSystemOpts().WorkingDir;
if (BuildDir)
SM.getFileManager().getFileSystemOpts().WorkingDir = std::move(*BuildDir);
if (auto Entry = SM.getFileManager().getFile(R.getFilePath())) {
if (SourceTU) {
auto &Replaces = DiagReplacements[*Entry];
Expand All @@ -170,18 +175,19 @@ groupReplacements(const TUReplacements &TUs, const TUDiagnostics &TUDs,
errs() << "Described file '" << R.getFilePath()
<< "' doesn't exist. Ignoring...\n";
}
SM.getFileManager().getFileSystemOpts().WorkingDir = PrevWorkingDir;
};

for (const auto &TU : TUs)
for (const tooling::Replacement &R : TU.Replacements)
AddToGroup(R, nullptr);
AddToGroup(R, nullptr, {});

for (const auto &TU : TUDs)
for (const auto &D : TU.Diagnostics)
if (const auto *ChoosenFix = tooling::selectFirstFix(D)) {
for (const auto &Fix : *ChoosenFix)
for (const tooling::Replacement &R : Fix.second)
AddToGroup(R, &TU);
AddToGroup(R, &TU, D.BuildDirectory);
}

// Sort replacements per file to keep consistent behavior when
Expand Down
4 changes: 2 additions & 2 deletions clang-tools-extra/clang-tidy/ClangTidy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ static CheckersList getAnalyzerCheckersAndPackages(ClangTidyContext &Context,
#endif // CLANG_TIDY_ENABLE_STATIC_ANALYZER

std::unique_ptr<clang::ASTConsumer>
ClangTidyASTConsumerFactory::CreateASTConsumer(
ClangTidyASTConsumerFactory::createASTConsumer(
clang::CompilerInstance &Compiler, StringRef File) {
// FIXME: Move this to a separate method, so that CreateASTConsumer doesn't
// modify Compiler.
Expand Down Expand Up @@ -573,7 +573,7 @@ runClangTidy(clang::tidy::ClangTidyContext &Context,
Action(ClangTidyASTConsumerFactory *Factory) : Factory(Factory) {}
std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler,
StringRef File) override {
return Factory->CreateASTConsumer(Compiler, File);
return Factory->createASTConsumer(Compiler, File);
}

private:
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/ClangTidy.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ClangTidyASTConsumerFactory {

/// Returns an ASTConsumer that runs the specified clang-tidy checks.
std::unique_ptr<clang::ASTConsumer>
CreateASTConsumer(clang::CompilerInstance &Compiler, StringRef File);
createASTConsumer(clang::CompilerInstance &Compiler, StringRef File);

/// Get the list of enabled checks.
std::vector<std::string> getCheckNames();
Expand Down
20 changes: 5 additions & 15 deletions clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ClangTidyDiagnosticRenderer : public DiagnosticRenderer {
? tooling::DiagnosticMessage(Message, Loc.getManager(), Loc)
: tooling::DiagnosticMessage(Message);

// Make sure that if a TokenRange is receieved from the check it is unfurled
// Make sure that if a TokenRange is received from the check it is unfurled
// into a real CharRange for the diagnostic printer later.
// Whatever we store here gets decoupled from the current SourceManager, so
// we **have to** know the exact position and length of the highlight.
Expand Down Expand Up @@ -376,10 +376,10 @@ static ClangTidyError createNolintError(const ClangTidyContext &Context,
Context.getCurrentBuildDirectory(), false);
StringRef Message =
IsNolintBegin
? "unmatched 'NOLINTBEGIN' comment without a subsequent 'NOLINTEND' "
"comment"
: "unmatched 'NOLINTEND' comment without a previous 'NOLINTBEGIN' "
"comment";
? ("unmatched 'NOLINTBEGIN' comment without a subsequent 'NOLINT"
"END' comment")
: ("unmatched 'NOLINTEND' comment without a previous 'NOLINT"
"BEGIN' comment");
Error.Message = tooling::DiagnosticMessage(Message, SM, Loc);
return Error;
}
Expand Down Expand Up @@ -517,16 +517,6 @@ static bool lineIsMarkedWithNOLINTinMacro(
namespace clang {
namespace tidy {

bool shouldSuppressDiagnostic(DiagnosticsEngine::Level DiagLevel,
const Diagnostic &Info, ClangTidyContext &Context,
bool AllowIO) {
SmallVector<ClangTidyError, 1> Unused;
bool ShouldSuppress =
shouldSuppressDiagnostic(DiagLevel, Info, Context, Unused, AllowIO);
assert(Unused.empty());
return ShouldSuppress;
}

bool shouldSuppressDiagnostic(
DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info,
ClangTidyContext &Context,
Expand Down
25 changes: 8 additions & 17 deletions clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class CompilerInstance;
class SourceManager;
namespace ast_matchers {
class MatchFinder;
}
} // namespace ast_matchers
namespace tooling {
class CompilationDatabase;
}
} // namespace tooling

namespace tidy {

Expand All @@ -45,18 +45,13 @@ struct ClangTidyError : tooling::Diagnostic {
std::vector<std::string> EnabledDiagnosticAliases;
};

/// Contains displayed and ignored diagnostic counters for a ClangTidy
/// run.
/// Contains displayed and ignored diagnostic counters for a ClangTidy run.
struct ClangTidyStats {
ClangTidyStats()
: ErrorsDisplayed(0), ErrorsIgnoredCheckFilter(0), ErrorsIgnoredNOLINT(0),
ErrorsIgnoredNonUserCode(0), ErrorsIgnoredLineFilter(0) {}

unsigned ErrorsDisplayed;
unsigned ErrorsIgnoredCheckFilter;
unsigned ErrorsIgnoredNOLINT;
unsigned ErrorsIgnoredNonUserCode;
unsigned ErrorsIgnoredLineFilter;
unsigned ErrorsDisplayed = 0;
unsigned ErrorsIgnoredCheckFilter = 0;
unsigned ErrorsIgnoredNOLINT = 0;
unsigned ErrorsIgnoredNonUserCode = 0;
unsigned ErrorsIgnoredLineFilter = 0;

unsigned errorsIgnored() const {
return ErrorsIgnoredNOLINT + ErrorsIgnoredCheckFilter +
Expand Down Expand Up @@ -228,10 +223,6 @@ class ClangTidyContext {
/// for example, the use of a "NOLINTBEGIN" comment that is not followed by a
/// "NOLINTEND" comment - a diagnostic regarding the improper use is returned
/// via the output argument `SuppressionErrors`.
bool shouldSuppressDiagnostic(DiagnosticsEngine::Level DiagLevel,
const Diagnostic &Info, ClangTidyContext &Context,
bool AllowIO = true);

bool shouldSuppressDiagnostic(
DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info,
ClangTidyContext &Context,
Expand Down
6 changes: 3 additions & 3 deletions clang-tools-extra/clang-tidy/ClangTidyOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct ClangTidyOptions {

std::string Value;
/// Priority stores relative precedence of the value loaded from config
/// files to disambigute local vs global value from different levels.
/// files to disambiguate local vs global value from different levels.
unsigned Priority;
};
typedef std::pair<std::string, std::string> StringPair;
Expand All @@ -129,8 +129,8 @@ struct ClangTidyOptions {
/// and using a FileOptionsProvider, it will take a configuration file in the
/// parent directory (if any exists) and apply this config file on top of the
/// parent one. IF true and using a ConfigOptionsProvider, it will apply this
/// config on top of any configuation file it finds in the directory using the
/// same logic as FileOptionsProvider. If false or missing, only this
/// config on top of any configuration file it finds in the directory using
/// the same logic as FileOptionsProvider. If false or missing, only this
/// configuration file will be used.
llvm::Optional<bool> InheritParentConfig;

Expand Down
2 changes: 2 additions & 0 deletions clang-tools-extra/clang-tidy/abseil/AbseilTidyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "../ClangTidy.h"
#include "../ClangTidyModule.h"
#include "../ClangTidyModuleRegistry.h"
#include "CleanupCtadCheck.h"
#include "DurationAdditionCheck.h"
#include "DurationComparisonCheck.h"
#include "DurationConversionCastCheck.h"
Expand All @@ -35,6 +36,7 @@ namespace abseil {
class AbseilModule : public ClangTidyModule {
public:
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override {
CheckFactories.registerCheck<CleanupCtadCheck>("abseil-cleanup-ctad");
CheckFactories.registerCheck<DurationAdditionCheck>(
"abseil-duration-addition");
CheckFactories.registerCheck<DurationComparisonCheck>(
Expand Down
1 change: 1 addition & 0 deletions clang-tools-extra/clang-tidy/abseil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(LLVM_LINK_COMPONENTS

add_clang_library(clangTidyAbseilModule
AbseilTidyModule.cpp
CleanupCtadCheck.cpp
DurationAdditionCheck.cpp
DurationComparisonCheck.cpp
DurationConversionCastCheck.cpp
Expand Down
49 changes: 49 additions & 0 deletions clang-tools-extra/clang-tidy/abseil/CleanupCtadCheck.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
//===--- CleanupCtadCheck.cpp - clang-tidy --------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "CleanupCtadCheck.h"
#include "../utils/TransformerClangTidyCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Tooling/Transformer/RangeSelector.h"
#include "clang/Tooling/Transformer/RewriteRule.h"
#include "clang/Tooling/Transformer/Stencil.h"
#include "llvm/ADT/StringRef.h"

using namespace ::clang::ast_matchers;
using namespace ::clang::transformer;

namespace clang {
namespace tidy {
namespace abseil {

RewriteRule CleanupCtadCheckImpl() {
auto warning_message = cat("prefer absl::Cleanup's class template argument "
"deduction pattern in C++17 and higher");

return makeRule(
declStmt(has(varDecl(
hasType(autoType()), hasTypeLoc(typeLoc().bind("auto_type_loc")),
hasInitializer(traverse(
clang::TK_IgnoreUnlessSpelledInSource,
callExpr(callee(functionDecl(hasName("absl::MakeCleanup"))),
argumentCountIs(1),
hasArgument(0, expr().bind("make_cleanup_argument")))
.bind("make_cleanup_call")))))),
{changeTo(node("auto_type_loc"), cat("absl::Cleanup")),
changeTo(node("make_cleanup_call"), cat(node("make_cleanup_argument")))},
warning_message);
}

CleanupCtadCheck::CleanupCtadCheck(StringRef Name, ClangTidyContext *Context)
: utils::TransformerClangTidyCheck(CleanupCtadCheckImpl(), Name, Context) {}

} // namespace abseil
} // namespace tidy
} // namespace clang
37 changes: 37 additions & 0 deletions clang-tools-extra/clang-tidy/abseil/CleanupCtadCheck.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//===--- CleanupCtadCheck.h - clang-tidy ------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ABSEIL_CLEANUPCTADCHECK_H
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ABSEIL_CLEANUPCTADCHECK_H

#include "../utils/TransformerClangTidyCheck.h"

namespace clang {
namespace tidy {
namespace abseil {

/// Suggests switching the initialization pattern of `absl::Cleanup`
/// instances from the factory function to class template argument
/// deduction (CTAD), in C++17 and higher.
///
/// For the user-facing documentation see:
/// http://clang.llvm.org/extra/clang-tidy/checks/abseil-cleanup-ctad.html
class CleanupCtadCheck : public utils::TransformerClangTidyCheck {
public:
CleanupCtadCheck(StringRef Name, ClangTidyContext *Context);

bool isLanguageVersionSupported(const LangOptions &LangOpts) const override {
return LangOpts.CPlusPlus17;
}
};

} // namespace abseil
} // namespace tidy
} // namespace clang

#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ABSEIL_CLEANUPCTADCHECK_H
4 changes: 2 additions & 2 deletions clang-tools-extra/clang-tidy/abseil/DurationDivisionCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class DurationDivisionCheck : public ClangTidyCheck {
bool isLanguageVersionSupported(const LangOptions &LangOpts) const override {
return LangOpts.CPlusPlus;
}
void registerMatchers(ast_matchers::MatchFinder *finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &result) override;
void registerMatchers(ast_matchers::MatchFinder *Finder) override;
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
};

} // namespace abseil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void DurationFactoryScaleCheck::check(const MatchFinder::MatchResult &Result) {
return;

// We first handle the cases of literal zero (both float and integer).
if (IsLiteralZero(Result, *Arg)) {
if (isLiteralZero(Result, *Arg)) {
diag(Call->getBeginLoc(),
"use ZeroDuration() for zero-length time intervals")
<< FixItHint::CreateReplacement(Call->getSourceRange(),
Expand Down
6 changes: 3 additions & 3 deletions clang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ llvm::StringRef getTimeInverseForScale(DurationScale Scale) {
}

/// Returns `true` if `Node` is a value which evaluates to a literal `0`.
bool IsLiteralZero(const MatchFinder::MatchResult &Result, const Expr &Node) {
bool isLiteralZero(const MatchFinder::MatchResult &Result, const Expr &Node) {
auto ZeroMatcher =
anyOf(integerLiteral(equals(0)), floatLiteral(equals(0.0)));

Expand Down Expand Up @@ -276,7 +276,7 @@ std::string rewriteExprFromNumberToDuration(
rewriteInverseDurationCall(Result, Scale, RootNode))
return *MaybeRewrite;

if (IsLiteralZero(Result, RootNode))
if (isLiteralZero(Result, RootNode))
return std::string("absl::ZeroDuration()");

return (llvm::Twine(getDurationFactoryForScale(Scale)) + "(" +
Expand All @@ -294,7 +294,7 @@ std::string rewriteExprFromNumberToTime(
rewriteInverseTimeCall(Result, Scale, RootNode))
return *MaybeRewrite;

if (IsLiteralZero(Result, RootNode))
if (isLiteralZero(Result, RootNode))
return std::string("absl::UnixEpoch()");

return (llvm::Twine(getTimeFactoryForScale(Scale)) + "(" +
Expand Down
6 changes: 3 additions & 3 deletions clang-tools-extra/clang-tidy/abseil/DurationRewriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ llvm::StringRef getDurationFactoryForScale(DurationScale Scale);

/// Given a 'Scale', return the appropriate factory function call for
/// constructing a `Time` for that scale.
llvm::StringRef getTimeFactoryForScale(DurationScale scale);
llvm::StringRef getTimeFactoryForScale(DurationScale Scale);

// Determine if `Node` represents a literal floating point or integral zero.
bool IsLiteralZero(const ast_matchers::MatchFinder::MatchResult &Result,
bool isLiteralZero(const ast_matchers::MatchFinder::MatchResult &Result,
const Expr &Node);

/// Possibly strip a floating point cast expression.
Expand Down Expand Up @@ -77,7 +77,7 @@ const std::pair<llvm::StringRef, llvm::StringRef> &
getDurationInverseForScale(DurationScale Scale);

/// Returns the Time inverse function name for a given `Scale`.
llvm::StringRef getTimeInverseForScale(DurationScale scale);
llvm::StringRef getTimeInverseForScale(DurationScale Scale);

/// Assuming `Node` has type `double` or `int` representing a time interval of
/// `Scale`, return the expression to make it a suitable `Duration`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void StringFindStartswithCheck::check(const MatchFinder::MatchResult &Result) {
", " + NeedleExprCode + ")")
.str());

// Create a preprocessor #include FixIt hint (CreateIncludeInsertion checks
// Create a preprocessor #include FixIt hint (createIncludeInsertion checks
// whether this already exists).
Diagnostic << IncludeInserter.createIncludeInsertion(
Source.getFileID(ComparisonExpr->getBeginLoc()),
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/altera/UnrollLoopsCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ bool UnrollLoopsCheck::extractValue(int &Value, const BinaryOperator *Op,
else if (RHS->isEvaluatable(*Context))
RHS->EvaluateAsRValue(Result, *Context);
else
return false; // Cannot evalue either side.
return false; // Cannot evaluate either side.
if (!Result.Val.isInt())
return false; // Cannot check number of iterations, return false to be
// safe.
Expand Down
Loading