Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
745f82b
[InstCombine] add tests for X == 0 ? 0 : X * Y ; NFC
fzhinkin Sep 10, 2021
90ec6df
[OpaquePtr] Forbid mixing typed and opaque pointers
nikic Sep 4, 2021
4a25c3f
[clang-offload-bundler] Fix compatibility testing for non-assert builds
saiislam Sep 10, 2021
e4b2f30
[WebAssembly][libObject] Avoid re-use of Section object during parsing
sbc100 Aug 31, 2021
6b7cdb4
[ARM] Remove unused tblgen arguments. NFCI
davemgreen Sep 10, 2021
9a4379c
[lldb] [test] Skip file permission tests on Windows
mgorny Sep 10, 2021
c362f61
[lldb] [test] Mark new launch/QEnvironment tests as llgs category
mgorny Sep 10, 2021
784281d
[lldb] [test] Attempt to fix gdb_remote_client A/vRun tests on Windows
mgorny Sep 10, 2021
d727bd6
[lldb] [test] Skip A/vRun/QEnvironment* tests on Windows, and fix them
mgorny Sep 10, 2021
3a7bcba
[lld][WebAssembly] Cleanup output of --verbose
sbc100 Sep 10, 2021
4e7ac6f
[lldb] [test] Remove parent check in Subprocess/clone-follow-child-so…
mgorny Sep 10, 2021
6c7cadb
[RISCV] Teach vsetvli insertion that stores don't use the policy bits…
topperc Sep 9, 2021
1b736bd
[RISCV] Enable CGP to sink splat operands of Add/Sub/Mul/Shl/LShr/AShr
topperc Sep 10, 2021
d34d2bb
[IR] Remove unused parameter (NFC)
nikic Sep 10, 2021
14afbe9
[CallLowering] Support opaque pointers
nikic Sep 10, 2021
deefeff
[ARM] Remove unused tblgen arguments. NFC
davemgreen Sep 10, 2021
ca134c3
[OpenMP] Group side-effects to improve guarding efficiency
jdoerfert Aug 11, 2021
7dbba33
[GlobalOpt][FIX] Do not embed initializers into AS!=0 globals
jdoerfert Sep 2, 2021
45e8e08
[OpenMP] Encode `omp [...] assume[...]` assumptions with `omp[x]` prefix
jdoerfert Jul 13, 2021
9f844ae
[OpenMP][Docs] Remove old/outdated webpage
jdoerfert Aug 23, 2021
d9a8d20
Revert "[GlobalOpt][FIX] Do not embed initializers into AS!=0 globals"
jdoerfert Sep 10, 2021
d2f206e
Revert "[OpenMP] Group side-effects to improve guarding efficiency"
jdoerfert Sep 10, 2021
ea7b2c1
[Test][AggressiveInstCombine] Add test for `udiv` and `urem`
anton-afanasyev Sep 9, 2021
54d8ebb
[AggressiveInstCombine] Add `udiv` and `urem` instrs to TruncInstComb…
anton-afanasyev Sep 7, 2021
f244af5
[openmp][amdgpu] Update SupportAndFAQ docs
JonChesterfield Sep 10, 2021
da4a2fd
[AArch64ISelLowering] Fix null pointer access in performSVEAndCombine.
huihzhang Sep 10, 2021
50d7ecc
[NFC][clang] Improve test coverage for alignment manifestation on ali…
LebedevRI Sep 10, 2021
85ba583
[NFCI][clang] Move allocation alignment manifestation for malloc-like…
LebedevRI Sep 10, 2021
f3c2094
[clang] `aligned_alloc` allocation function specifies alignment in fi…
LebedevRI Sep 10, 2021
03df971
[lldb] Add support for debugging via the dynamic linker.
rdhindsa14 Sep 10, 2021
c9fca53
[CodeGen, Target] Use pred_empty and succ_empty (NFC)
kazutakahirata Sep 10, 2021
23f256f
[clang] Fix typo in test from a723310b4
nico Sep 10, 2021
57335b6
[stack-safety] Allow to determine safe accesses.
fmayer Sep 10, 2021
8fdd821
[Sanitizers] intercept netent, protoent and mincore on FreeBSD.
devnexen Sep 10, 2021
09391e7
[hwasan] Do not instrument accesses to uninteresting allocas.
fmayer Sep 9, 2021
0da5ac1
[libc] Add extension functions fedisableexcept, feenableexcept and fe…
Sep 9, 2021
f28e710
[OpenMP] Make CUDA math library functions SPMD amenable
jhuber6 Aug 30, 2021
9e2fc0b
[OpenMP] Check OpenMP assumptions on call-sites as well
jhuber6 Sep 10, 2021
188375f
[InstCombine] add tests for sub of min/max intrinsics; NFC
rotateright Sep 10, 2021
285ec53
[clang][deps] Move tests to the Clang subdirectory
jansvoboda11 Sep 10, 2021
98c3724
[AArch64][SVE][InstCombine] Canonicalize aarch64_sve_dup_x intrinsic …
UsmanNadeem Sep 10, 2021
eee7d22
Revert "[AArch64][SVE][InstCombine] Canonicalize aarch64_sve_dup_x in…
UsmanNadeem Sep 10, 2021
7c82db3
[ARC] Improve code generated for i32 ADDC/ADDE and SUBC/SUBE
markschimmel Sep 10, 2021
b053228
[mlir][tosa] Add shape inference for tosa.while
rsuderman Aug 27, 2021
c09fbbd
Reapply "[GlobalOpt][FIX] Do not embed initializers into AS!=0 globals""
jdoerfert Sep 10, 2021
99ea8ac
Reapply "[OpenMP] Group side-effects to improve guarding efficiency"
jdoerfert Sep 10, 2021
2187cbf
[OpenMP][libomptarget] Add __tgt_target_return_t enum for __tgt_targe…
ye-luo Sep 6, 2021
8dae355
[lldb] Remove unused typedefs from lldb-forward.h
bulbazord Sep 10, 2021
7eb899c
[OpenMP] Add more verbose remarks for runtime folding
jhuber6 Sep 10, 2021
29b44ca
[OpenMP] Add flag for setting debug in the offloading device
jhuber6 Sep 9, 2021
3205dd3
[clang-format] Restrict the special handling for K&R C to C/C++
owenca Sep 10, 2021
89ed21a
Recognize namespaced all_image_infos symbol name from dyld
jasonmolenda Sep 10, 2021
f7062f6
[docs] Improve description of LLVM_BUILD_TESTS
keith Sep 2, 2021
2d26a72
nullptr initialize variables, spotted on msan bots.
echristo Sep 11, 2021
ab111e9
Revert "Revert "[AArch64][SVE][InstCombine] Canonicalize aarch64_sve_…
UsmanNadeem Sep 11, 2021
22641f5
[ORC] Use EPC for EPCGeneric MemoryAccess / JITLinkMemoryManager cons…
lhames Sep 5, 2021
a0a91ed
[ORC] Merge LLVMSPSSerializers.h into SimplePackedSerialization.h.
lhames Sep 6, 2021
3828ab0
[ORC] Fix missing newline in debugging output.
lhames Sep 7, 2021
6c56b13
[JITLink] Working memory shouldn't be subject to alignment constraints.
lhames Sep 8, 2021
e972e49
[llvm-cov] Add error for invalid -path-equivalence format
keith Sep 1, 2021
4e408aa
[AArch64][GlobalISel] Select full-fp16 s16 G_FCONSTANT as a constant …
Aug 30, 2021
c6bf8b8
Fix python 2-vs-3 issues in add_new_check.py and rename_check.py
Sep 11, 2021
bb27e45
[ORC] Add SimpleRemoteEPC: ExecutorProcessControl over SPS + abstract…
lhames Sep 7, 2021
5629afe
[ORC] Add missing include.
lhames Sep 11, 2021
26f1cab
[gn build] Port bb27e4564355
llvmgnsyncbot Sep 11, 2021
2269a94
Revert 5629afea910 and bb27e456435 while I look into bot failures.
lhames Sep 11, 2021
6aacc69
[gn build] Port 2269a941a450
llvmgnsyncbot Sep 11, 2021
2aaa646
[X86] Support *_set1_pch(Float16 _Complex h)
phoebewang Sep 11, 2021
51d04e2
[X86][SLM] Swap LoadLat and LoadUOps in the SLMWriteResPair<> helper.…
RKSimon Sep 7, 2021
484944a
[X86][SLM] Fix HADD/HSUB uops, latency and throughput
RKSimon Sep 7, 2021
df975e4
[X86][SLM] Fix PSAD/MPSAD uops, latency and throughput
RKSimon Sep 11, 2021
749ddd2
[BitcodeReader] Delay select until all constants resolved
Sep 11, 2021
c55e021
[LLDB] Skip TestDyldLaunchLinux.py on Arm/Linux
omjavaid Sep 11, 2021
28afaed
[InstCombine] fold sub of min/max intrinsics with invertible ops
rotateright Sep 11, 2021
e030d31
[GlobalOpt] Use make_early_inc_range (NFC)
kazutakahirata Sep 11, 2021
f580683
[ARM] Support neon.vld auto-upgrade with opaque pointers
nikic Sep 11, 2021
75e8eb2
[InstCombine] update code/test comments; NFC
rotateright Sep 11, 2021
314b5a0
[llvm-shlib] Fix the i686 MSVC triple check for listing symbols to ex…
mstorsjo Sep 9, 2021
45c4673
[LAA] Pass access type to getPtrStride()
nikic Sep 11, 2021
26b653d
[AArch64] Regenerate some test checks. NFC
davemgreen Sep 11, 2021
6e91666
[libcxxabi] NFC: fix incorrect indentation of braces
zhouzhouyi-hub Sep 11, 2021
2b4cad5
[clang] Enable the special enable_if_t diagnostics for libc++'s __ena…
Quuxplusone Sep 8, 2021
15e9575
[Vectorize] Fix "unused variable" warnings
kazutakahirata Sep 11, 2021
bb72f07
Re-apply bb27e456435 and 5629afea910 with fixes.
lhames Sep 11, 2021
d066914
[gn build] Port bb72f073808a
llvmgnsyncbot Sep 12, 2021
fcf4e25
[ORC] Fix missing '&' in definition of deleted move-assignment.
lhames Sep 12, 2021
d11a0c5
[ORC] Fix out-of-range comparison errors.
lhames Sep 12, 2021
d193d23
[ORC] Fix missing std::move
lhames Sep 12, 2021
698a598
[ORC] Add OrcShared dependency on LLVM_PTHREAD_LIB
lhames Sep 12, 2021
e339303
[ORC] Add OrcTargetProcess dependency on LLVM_PTHREAD_LIB
lhames Sep 12, 2021
b64fc0a
[ORC] Add bootstrap symbols to ExecutorProcessControl.
lhames Sep 12, 2021
a539a84
[ORC] Temporarily remove the lljit-with-remote-debugging test.
lhames Sep 12, 2021
339c734
[Clang][AVR] Fix definitions on AVR target
LittleFox94 Sep 11, 2021
187d9f8
[OpenMP][MLIR] Add a conversion pattern for the master op
kiranchandramohan Sep 12, 2021
d338e53
[AArch64] Regenerate some test checks. NFC
davemgreen Sep 12, 2021
b78c85a
[WebAssembly] Convert to new "dylink.0" section format
sbc100 Sep 10, 2021
3a12613
[InstCombine] remove casts from splat-a-bit pattern
rotateright Sep 12, 2021
8e86c0e
[Scalar] Use make_early_inc_range (NFC)
kazutakahirata Sep 12, 2021
4189e5f
[CGP] Support opaque pointers in address mode fold
nikic Sep 12, 2021
368af75
[VPlan] Fix crash caused by not updating all users properly.
fhahn Sep 12, 2021
fb7fbe4
[NFC][SVE] Precommit tests for adr instruction
UsmanNadeem Sep 12, 2021
2cc6f7c
[Attributor] Create a call site position for AACalledges
kuterd Sep 12, 2021
66a0b34
[Attributor] AAFunctionReachability, Handle CallBase Reachability.
kuterd Jul 20, 2021
2838797
[RISCV] Initial support .insn directive for the assembler.
topperc Sep 12, 2021
f94a118
[NFC] Avoid using pointee types in PPCISelLowering
aeubanks Sep 13, 2021
9a193bd
[Attributor][FIX] AACallEdges, fix propagation error.
kuterd Sep 12, 2021
203cd01
[PowerPC] [NFC] Add Big-Endian checks for existing MMA tests
Sep 13, 2021
d48a3f9
[NFC] Directly use OpenMPIRBuilder::Ident instead of IdentPtr->getPoi…
aeubanks Sep 13, 2021
5a6dfb2
[IndVars] Replace PHIs if loop exits on 1st iteration
Sep 13, 2021
d9ca444
[IndVars] Break backedge and replace PHIs if loop exits on 1st iteration
Sep 13, 2021
6a92ab0
[NFC][CoroSplit] Directly use Function::getFunctionType()
aeubanks Sep 13, 2021
5a85f9b
Add semantic token modifier for non-const reference parameter
tom-anders Sep 13, 2021
9391541
[OpenMP] [OMPD] OPENMP_INSTALL_LIBDIR is set for the install dir
vigbalu Sep 13, 2021
ff94f60
[lldb] [testsuite] Fix false failures on "\n" regex match
jankratochvil Sep 13, 2021
7fb2394
Add sanity check in MLIR ODS to catch case where an arguments/results…
joker-eph Sep 9, 2021
802bf02
[mlir] Allows to query traits from types and attributes
math-fehr Sep 13, 2021
ff6069b
[JITLink] Add initial native TLS support to ELFNix platform
Sep 11, 2021
4b2e38d
[lldb][NFC] Cleanup EditlineHistory
Teemperor Sep 13, 2021
6d970e8
[InstCombine] Add PR51784 test cases
RKSimon Sep 11, 2021
65ad09d
[X86][SLM] Fix DIVPD/DIVPS/RCPPS/RSQRTPS/SQRTPD/SQRTPS/DPPD/DPPS uops…
RKSimon Sep 11, 2021
ea81898
[XCOFF] Fix the program abortion issue in XCOFFObjectFile::getSection…
Sep 13, 2021
f293361
[RISCV] Rename prefix `FeatureExt*` to `FeatureStdExt*` for all sub-e…
tclin914 Sep 13, 2021
7e337d8
[Test] Add more sophisticated tests for switch UB opt
Sep 13, 2021
b031267
[lldb] Remove PluginInterface::GetPluginVersion
labath Sep 10, 2021
2d75cfd
[mlir] Update bazel build for 802bf02a738e091d5bf22c03e83204a38d2c7950
d0k Sep 13, 2021
c84755a
Fix scan-build-py executable lookup path
Sep 13, 2021
4c84a0f
[LAA] Add additional pointer phi tests.
fhahn Sep 13, 2021
bbada9f
[NFC] Replace unsigned VF with ElementCount in EpilogueLoopVectorizat…
david-arm Sep 7, 2021
909f3d7
[yaml2obj][XCOFF] customize the string table
Sep 13, 2021
477b9bc
[AMDGPU] Minor cleanup after D109483. NFC.
jayfoad Sep 13, 2021
2a26d47
[LoopBoundSplit] Check the start value of split cond AddRec
jaykang10 Sep 7, 2021
7271de2
XFAIL test `missing-abstract-variable.ll` for RISC-V
luismarques Sep 13, 2021
57bf856
[mlir] Add missing namespace to createInlinerPass
clementval Sep 13, 2021
3731de6
[X86] Adjust Keylocker handle mem size
xiangzh1 Sep 9, 2021
bdce8d4
Revert "[X86] Adjust Keylocker handle mem size"
xiangzh1 Sep 13, 2021
c81d6ab
[X86] Adjust Keylocker handle mem size
xiangzh1 Sep 13, 2021
6bd2632
[NVPTX] NFC: Remove unused template arg '_'
c-rhodes Sep 13, 2021
9e435c9
[Lanai] NFC: Remove unused tblgen template arg 'OpNode'
c-rhodes Sep 13, 2021
97a6d76
[Hexagon] NFC: Remove unused tblgen template args
c-rhodes Sep 13, 2021
9db7e8e
[AArch64][SVE] NFC: Remove unused name from cvt builtins
c-rhodes Sep 13, 2021
d86a947
[Sema] Add test for __builtin_fminf errors.
fhahn Sep 13, 2021
915e9e7
[llvm][sve] Lowering for VLS masked extending loads
DavidTruby Sep 1, 2021
c24fc37
[VectorCombine] Support AND/UREM indices that require freezing.
fhahn Sep 13, 2021
b737f1a
[AArch64] Regenerate some test checks. NFC
davemgreen Sep 13, 2021
1d771e1
[AArch64] NFC: Remove unused template args
c-rhodes Sep 13, 2021
8567f4d
[lldb] Support querying registers via generic names without alt_names
mgorny Aug 23, 2021
e3d878b
[lldb] Remove redundant register alt_names
mgorny Sep 10, 2021
d353d1c
[OpenCL] Support cl_ext_float_atomics
svenvh Sep 13, 2021
0213d7e
[analyzer][NFCI] Allow clients of NoStateChangeFuncVisitor to check e…
Szelethus Aug 19, 2021
b01d223
[mlir][Linalg] Use reify for padded op shape derivation.
nicolasvasilache Sep 10, 2021
8008009
[OpenCL] Initialize temporaries in the private address space
Sep 13, 2021
ec6c847
[clang] Check unsupported types in expressions
asavonic Mar 10, 2021
dfc6859
[gn build] Port 0213d7ec0c50
llvmgnsyncbot Sep 13, 2021
6377426
Revert "[clang] Check unsupported types in expressions"
asavonic Sep 13, 2021
5d070c8
SwiftAsync: use runtime-provided flag for extended frame if back-depl…
TNorthover Sep 3, 2021
648feab
[clang] Make the driver not diagnose errors on nonexistent linker inputs
nico Sep 13, 2021
9691851
[JITLink] Factor out forEachRelocation() function from addRelocations…
weliveindetail Sep 13, 2021
9d359f6
[analyzer] MallocChecker: Add notes from NoOwnershipChangeVisitor onl…
Szelethus Aug 25, 2021
b4e787d
[InstCombining] Refactor checks for TryToSinkInstruction. NFC
annamthomas Sep 12, 2021
c82dbc2
[lldb] Skip TestGuiBasicDebug due to pr51833
labath Sep 13, 2021
4b34226
[VPlan] Add test that requires duplicating recipe for sinking.
fhahn Jun 14, 2021
7c9b6a3
[mlir][linalg] ComprehensiveBufferize: Do not copy InitTensorOps
matthias-springer Sep 13, 2021
4247381
[SystemZ][z/OS] Missing wchar functions libc++
Sep 13, 2021
dd58083
[lldb] [test] Remove parent output checks from follow-child tests
mgorny Sep 13, 2021
80b6058
[gn build] (semi-manually) port 4247381e26dd
nico Sep 13, 2021
d5c049a
[openmp] Fix 51647, corrupt bitcode on amdgpu
dpalermo Sep 13, 2021
cc84ce9
Revert "[libc] Some clean work with memmove."
gchatelet Sep 13, 2021
5f781dd
[MLIR] Mark test case XFAIL on SystemZ for now.
JonPsson Sep 13, 2021
0fc3ebb
[SelectionDAG][NFC] Fix typo in VerifyDAGDiverence() function name
RamNalamothu Sep 13, 2021
9db2082
[APInt] Add APIntOps::ScaleBitMask helper
RKSimon Sep 13, 2021
ec92f78
[mlir][emitc] Print signed integers properly
Sep 13, 2021
abca4c0
[Utils] Use make_early_inc_range (NFC)
kazutakahirata Sep 13, 2021
181d18e
[mlir][Linalg] Insert static buffers as high as possible during Compr…
nicolasvasilache Sep 13, 2021
726b5d3
[RegScavenger][NFC] Refer to the already initialized local variable f…
RamNalamothu Sep 13, 2021
1a56a29
[gn build] Fix typos in config visibility lists
nico Sep 13, 2021
5746c76
Revert "[IndVars] Break backedge and replace PHIs if loop exits on 1s…
preames Sep 13, 2021
6fec655
Revert "[IndVars] Replace PHIs if loop exits on 1st iteration"
preames Sep 13, 2021
bfcf979
Revert "[openmp] Fix 51647, corrupt bitcode on amdgpu"
JonChesterfield Sep 13, 2021
71052ea
[openmp] Apply code change from D109500
JonChesterfield Sep 13, 2021
6775ad2
[openmp] Apply test change from D109500
JonChesterfield Sep 13, 2021
c4fa2c8
[lldb] Fix warning in MinidumpFileBuilder.cpp
bulbazord Sep 13, 2021
b8f6c1f
[Sanitizers] intercept getgrouplist on Linux and FreeBSD.
devnexen Sep 13, 2021
340314c
Reorder mmt4d shapes:
bjacob Sep 13, 2021
b39f6a7
[ADT] Extend EnableIfCallable for callables with incomplete returns
math-fehr Sep 13, 2021
b9a8f34
[flang][OpenMP] Add parsing support for nontemporal clause.
Sep 13, 2021
5b5d774
[hwasan] Respect returns attribute when tracking values.
fmayer Sep 3, 2021
0a22510
[value-tracking] see through returned attribute.
fmayer Sep 13, 2021
dc08cfa
[Sanitizers] intercept accept4 on freebsd
devnexen Sep 13, 2021
0867c01
[ClangScanDeps][test] Add -fmodules-cache-path=DIR/cache to make diag…
MaskRay Sep 13, 2021
e69d359
[lldb] Actually fix format specifier after D108233
MaskRay Sep 13, 2021
095bbc3
[Bazel][mlir] Simplify test/BUILD.bazel with globs
GMNGeoffrey Sep 13, 2021
b7b4ebb
[WebAssembly] Rethrow longjmp in EH handling if EmSjLj is enabled
aheejin Sep 12, 2021
c55b6c5
[WebAssembly] Handle _setjmp and _longjmp in SjLj
aheejin Sep 13, 2021
ce6d512
[mlir][doc] fix typos.
Sep 13, 2021
b2032f1
[lld][WebAssembly] Relax limitations on multithreaded instantiation
tlively Sep 13, 2021
e80ee4c
[GlobalDCE] In VFE support for relative pointers, allow GEP reference…
kubamracek Sep 13, 2021
096d981
[opt] Remove some legacy PM flags
aeubanks Sep 12, 2021
b7bac5a
[clang] Revert gcc-driver part of 648feabc65d8
nico Sep 13, 2021
a72763a
[Hexagon] Handle bitcast of i64/i128 -> v64i1/v128i1
aankit-quic Sep 13, 2021
42dace9
[Hexagon] Use getTypeAllocSize to compute difference between objects
Sep 14, 2021
2c8e784
[ORC] Add Shared/OrcRTBridge, and TargetProcess/OrcRTBootstrap.
lhames Sep 13, 2021
3ca6eee
[ORC] Fix self-assignment.
lhames Sep 13, 2021
7c76cef
[gn build] Port 2c8e78491588
llvmgnsyncbot Sep 14, 2021
d4f25d0
[RISCV] add Half-precision test for vle/vse
Sep 13, 2021
a4a654d
[mlir][linalg] TiledLoopOp peeling: Do not peel partial iterations
matthias-springer Sep 14, 2021
216d974
[Bazel] Fix Bazel config for 2c8e784915
GMNGeoffrey Sep 14, 2021
8faf35c
[mlir][linalg] Add scf.for loop peeling to codegen strategy
matthias-springer Sep 14, 2021
fb1def9
[mlir][linalg] New tiling option: Scalarize dynamic dims
matthias-springer Sep 14, 2021
6288345
[mlir][linalg] makeTiledShape: No affine.min if tile size == 1
matthias-springer Sep 14, 2021
2bd8493
Improve type printing of const arrays to normalize array-of-const and…
dwblaikie Sep 14, 2021
c305513
AMDGPU: Fix assert with indirect call with known required inputs
arsenm Sep 14, 2021
946e69d
[PowerPC] prepare more loop load/store instructions
Sep 14, 2021
8b4afc5
[APInt] Add a concat method, use LLVM_UNLIKELY to help optimizer.
lattner Sep 10, 2021
b98c3e9
[yaml2obj][XCOFF] add the SectionIndex field for symbol.
Sep 14, 2021
db4ff98
DebugInfo: Add support for template parameters with qualifiers
dwblaikie Sep 14, 2021
e4b9f5e
DebugInfo: Add support for template parameters with reference qualifiers
dwblaikie Sep 14, 2021
13e34f9
Fixup some formatting from a recent commit
dwblaikie Sep 14, 2021
e85ed44
[WebAssembly] Fix a typo in comments
aheejin Sep 14, 2021
9aeecdf
Check supported architectures in sseXYZ/avxXYZ headers
Sep 13, 2021
61f22f7
[runtimes] Initialize LLVM_DEFAULT_TARGET_TRIPLE if not set by the ca…
mstorsjo Sep 13, 2021
5b007f2
[runtimes] Calculate the path to the llvm directory without the LLVM …
mstorsjo Sep 13, 2021
197084f
[llvm-readobj] [COFF] Try to resolve symbols in unwind info on x86
mstorsjo Sep 10, 2021
63784b9
[llvm-readobj] [COFF] Resolve relocations pointing at section symbols…
mstorsjo Sep 6, 2021
ac3edc4
[Win64EH] Write .pdata symbol relocations relative to the temporary b…
mstorsjo Sep 7, 2021
742cf39
[AArch64] NFC: Use 'asm' in SIMDScalarCPY
c-rhodes Sep 14, 2021
6fbc167
[WebAssembly] NFC: Remove unused tblgen template args
c-rhodes Sep 14, 2021
ad88632
[OpenCL] Tests C++ for OpenCL version macros
Topotuna Sep 7, 2021
f287405
AArch64: fix indentation of ProcAppleA14. NFC.
TNorthover Sep 14, 2021
2d6829b
[clang] disable implicit moves when not in CPlusPLus
mizvekov Sep 11, 2021
3582828
[libc][Obvious] Some clean work with memmove.
ChennngWang Sep 14, 2021
a91cfd1
[MLIR] Improve op parse error message for AtLeastNOperands trait
bondhugula Sep 14, 2021
5a6dfbb
[ARM] Teach DemandedVectorElts about VMOVN lanes
davemgreen Sep 14, 2021
e248d69
Recommit "[LAA] Support pointer phis in loop by analyzing each incomi…
fhahn Sep 13, 2021
125e8ef
[runtimes] Check whether -nostdinc++ and -nostdlib++ are supported
mstorsjo Sep 13, 2021
44a8897
[mlir][linalg] Fold ExtractSliceOps during tiling.
Sep 14, 2021
09dc454
[OpenCL] Enables .rgba vector extension in C++ for OpenCL 2021
Topotuna Sep 7, 2021
f78f613
[llvm cmake] replace tabs with spaces in config-ix.cmake
nico Sep 14, 2021
8cfab5d
[Windows build] Use "DIA SDK" in sysroot
nico Sep 14, 2021
9bbc0c1
[Dexter] Improve performance by evaluating expressions only when needed
SLTozer Sep 14, 2021
601102d
Cleanup identifier parsing; NFC
cor3ntin Sep 14, 2021
f22c63b
[lldb/test] Start pexpect tests with a custom HOME
labath Sep 14, 2021
2b4745f
AMDGPU: Avoid relying on an undef value in test
arsenm Sep 14, 2021
a1ae56d
Remove incorrect comment in getSingleUndroppableUse. NFC
annamthomas Sep 13, 2021
5041a48
[PowerPC] Exploit Prefixed Load/Stores using the refactored Load/Stor…
amy-kwan Sep 13, 2021
ef8c913
[WebAssembly] Allow import and export of TLS symbols between DSOs
sbc100 Aug 26, 2021
8401713
[clangd] Ignore ObjC `id` and `instancetype` in FindTarget
DavidGoldman Aug 23, 2021
fb4d590
Fix a unittest file after D108695 when Z3 is enabled
Sep 14, 2021
6ee55f9
Fix test failure created by ef8c9135efcb
sbc100 Sep 14, 2021
b899931
Merge pull request #10 from llvm/main
ESultanik Sep 14, 2021
775e442
Merge branch 'main' into merge-upstream
ESultanik Sep 14, 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.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,readability-identifier-naming'
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming'
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: CamelCase
Expand Down
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ d8f0e6caa91e230a486c948ab643174e40bdf215

# Wiped out some non-ascii characters that snuck into the copyright.
5b08a8a43254ed30bd953e869b0fd9fc1e8b82d0

# Use C++11 default member initializers in LLDB. NFC.
9494c510af56d9c8593ab69017dcaa232210b235
35 changes: 35 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This file allows mapping several author and committer email addresses and
# names to a single canonical one for `git shortlog`, `git log --author`,
# or `git check-mailmap`.
#
# For example, if you commit as `random.person@example.com` but sometimes use
# "Rañdom Person" and sometimes "Random Person" as name and you want the former
# to be your canonical name, add
#
# Rañdom Person <random.person@example.com>
#
# If you commit as both `random.person@example.com` and `ranp@example.com` and
# you want the former to be your canonical email address, add
#
# <random.person@example.com> <ranp@example.com>
#
# Combinations of both are possible too, see
# https://git-scm.com/docs/gitmailmap for format details.
#
# You can commit changes for your own names and email addresses without review.
# If you want to add entries for other people, please have them review the
# addition.
#
# Please keep this file sorted.

<compnerd@compnerd.org> <abdulras@fb.com>
<compnerd@compnerd.org> <abdulras@google.com>
<i@maskray.me> <maskray@google.com>
<qiucofan@cn.ibm.com> <qiucf@cn.ibm.com>
<rnk@google.com> <reid@kleckner.net>
<thakis@chromium.org> <nicolasweber@gmx.de>
Jon Roelofs <jonathan_roelofs@apple.com> <jonathan@codesourcery.com>
Jon Roelofs <jonathan_roelofs@apple.com> <jroelofs@jroelofs.com>
LLVM GN Syncbot <llvmgnsyncbot@gmail.com>
Martin Storsjö <martin@martin.st>
Saleem Abdulrasool <compnerd@compnerd.org>
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Welcome to the LLVM project!

The LLVM project has multiple components. The core of the project is
itself called "LLVM". This contains all of the tools, libraries, and header
files needed to process intermediate representations and converts it into
files needed to process intermediate representations and convert them into
object files. Tools include an assembler, disassembler, bitcode analyzer, and
bitcode optimizer. It also contains basic regression tests.

Expand Down Expand Up @@ -71,7 +71,7 @@ This is an example work-flow and configuration to get and build the LLVM source:
* ``-DLLVM_ENABLE_PROJECTS='...'`` --- semicolon-separated list of the LLVM
sub-projects you'd like to additionally build. Can include any of: clang,
clang-tools-extra, libcxx, libcxxabi, libunwind, lldb, compiler-rt, lld,
polly, or debuginfo-tests.
polly, or cross-project-tests.

For example, to build LLVM, Clang, libcxx, and libcxxabi, use
``-DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi"``.
Expand Down
5 changes: 5 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Reporting LLVM Security Issues

To report security issues in LLVM, please follow the steps outlined on the
[LLVM Security Group](https://llvm.org/docs/Security.html#how-to-report-a-security-issue)
page.
6 changes: 3 additions & 3 deletions clang-tools-extra/clang-change-namespace/ChangeNamespace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ void ChangeNamespaceTool::registerMatchers(ast_matchers::MatchFinder *Finder) {
hasDeclaration(DeclMatcher),
unless(templateSpecializationType()))))),
hasParent(nestedNameSpecifierLoc()),
hasAncestor(isImplicit()),
hasAncestor(decl(isImplicit())),
hasAncestor(UsingShadowDeclInClass),
hasAncestor(functionDecl(isDefaulted())))),
hasAncestor(decl().bind("dc")))
Expand All @@ -466,7 +466,7 @@ void ChangeNamespaceTool::registerMatchers(ast_matchers::MatchFinder *Finder) {
hasAncestor(decl(IsInMovedNs).bind("dc")),
loc(nestedNameSpecifier(
specifiesType(hasDeclaration(DeclMatcher.bind("from_decl"))))),
unless(anyOf(hasAncestor(isImplicit()),
unless(anyOf(hasAncestor(decl(isImplicit())),
hasAncestor(UsingShadowDeclInClass),
hasAncestor(functionDecl(isDefaulted())),
hasAncestor(typeLoc(loc(qualType(hasDeclaration(
Expand Down Expand Up @@ -495,7 +495,7 @@ void ChangeNamespaceTool::registerMatchers(ast_matchers::MatchFinder *Finder) {
hasAncestor(cxxRecordDecl()))),
hasParent(namespaceDecl()));
Finder->addMatcher(expr(hasAncestor(decl().bind("dc")), IsInMovedNs,
unless(hasAncestor(isImplicit())),
unless(hasAncestor(decl(isImplicit()))),
anyOf(callExpr(callee(FuncMatcher)).bind("call"),
declRefExpr(to(FuncMatcher.bind("func_decl")))
.bind("func_ref"))),
Expand Down
4 changes: 2 additions & 2 deletions clang-tools-extra/clang-doc/HTMLGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ genHTML(const Index &Index, StringRef InfoPath, bool IsOutermostList) {
if (!Index.JumpToSection)
SpanBody->Children.emplace_back(genReference(Index, InfoPath));
else
SpanBody->Children.emplace_back(genReference(
Index, InfoPath, StringRef{Index.JumpToSection.getValue()}));
SpanBody->Children.emplace_back(
genReference(Index, InfoPath, Index.JumpToSection.getValue().str()));
}
if (Index.Children.empty())
return Out;
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-include-fixer/IncludeFixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ clang::TypoCorrection IncludeFixerSemaSource::CorrectTypo(
// parent_path.
// FIXME: Don't rely on source text.
const char *End = Source.end();
while (isIdentifierBody(*End) || *End == ':')
while (isAsciiIdentifierContinue(*End) || *End == ':')
++End;

return std::string(Source.begin(), End);
Expand Down
1 change: 1 addition & 0 deletions clang-tools-extra/clang-query/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ clang_target_link_libraries(clangQuery
clangBasic
clangDynamicASTMatchers
clangFrontend
clangTooling
clangSerialization
)

Expand Down
100 changes: 98 additions & 2 deletions clang-tools-extra/clang-query/Query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Frontend/ASTUnit.h"
#include "clang/Frontend/TextDiagnostic.h"
#include "clang/Tooling/NodeIntrospection.h"
#include "llvm/Support/raw_ostream.h"

using namespace clang::ast_matchers;
Expand Down Expand Up @@ -66,6 +67,8 @@ bool HelpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
"Diagnostic location for bound nodes.\n"
" detailed-ast "
"Detailed AST output for bound nodes.\n"
" srcloc "
"Source locations and ranges for bound nodes.\n"
" dump "
"Detailed AST output for bound nodes (alias of detailed-ast).\n\n";
return true;
Expand All @@ -86,6 +89,90 @@ struct CollectBoundNodes : MatchFinder::MatchCallback {
}
};

void dumpLocations(llvm::raw_ostream &OS, DynTypedNode Node, ASTContext &Ctx,
const DiagnosticsEngine &Diags, SourceManager const &SM) {
auto Locs = clang::tooling::NodeIntrospection::GetLocations(Node);

auto PrintLocations = [](llvm::raw_ostream &OS, auto Iter, auto End) {
auto CommonEntry = Iter->first;
auto Scout = Iter;
SmallVector<std::string> LocationStrings;
while (Scout->first == CommonEntry) {
LocationStrings.push_back(
tooling::LocationCallFormatterCpp::format(*Iter->second));
if (Scout == End)
break;
++Scout;
if (Scout->first == CommonEntry)
++Iter;
}
llvm::sort(LocationStrings);
for (auto &LS : LocationStrings) {
OS << " * \"" << LS << "\"\n";
}
return Iter;
};

TextDiagnostic TD(OS, Ctx.getLangOpts(), &Diags.getDiagnosticOptions());

for (auto Iter = Locs.LocationAccessors.begin();
Iter != Locs.LocationAccessors.end(); ++Iter) {
if (!Iter->first.isValid())
continue;

TD.emitDiagnostic(FullSourceLoc(Iter->first, SM), DiagnosticsEngine::Note,
"source locations here", None, None);

Iter = PrintLocations(OS, Iter, Locs.LocationAccessors.end());
OS << '\n';
}

for (auto Iter = Locs.RangeAccessors.begin();
Iter != Locs.RangeAccessors.end(); ++Iter) {

if (!Iter->first.getBegin().isValid())
continue;

if (SM.getPresumedLineNumber(Iter->first.getBegin()) !=
SM.getPresumedLineNumber(Iter->first.getEnd()))
continue;

TD.emitDiagnostic(FullSourceLoc(Iter->first.getBegin(), SM),
DiagnosticsEngine::Note,
"source ranges here " + Iter->first.printToString(SM),
CharSourceRange::getTokenRange(Iter->first), None);

Iter = PrintLocations(OS, Iter, Locs.RangeAccessors.end());
}
for (auto Iter = Locs.RangeAccessors.begin();
Iter != Locs.RangeAccessors.end(); ++Iter) {

if (!Iter->first.getBegin().isValid())
continue;

if (SM.getPresumedLineNumber(Iter->first.getBegin()) ==
SM.getPresumedLineNumber(Iter->first.getEnd()))
continue;

TD.emitDiagnostic(
FullSourceLoc(Iter->first.getBegin(), SM), DiagnosticsEngine::Note,
"source range " + Iter->first.printToString(SM) + " starting here...",
CharSourceRange::getTokenRange(Iter->first), None);

auto ColNum = SM.getPresumedColumnNumber(Iter->first.getEnd());
auto LastLineLoc = Iter->first.getEnd().getLocWithOffset(-(ColNum - 1));

TD.emitDiagnostic(FullSourceLoc(Iter->first.getEnd(), SM),
DiagnosticsEngine::Note, "... ending here",
CharSourceRange::getTokenRange(
SourceRange(LastLineLoc, Iter->first.getEnd())),
None);

Iter = PrintLocations(OS, Iter, Locs.RangeAccessors.end());
}
OS << "\n";
}

} // namespace

bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
Expand All @@ -106,8 +193,10 @@ bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
return false;
}

AST->getASTContext().getParentMapContext().setTraversalKind(QS.TK);
Finder.matchAST(AST->getASTContext());
auto &Ctx = AST->getASTContext();
const auto &SM = Ctx.getSourceManager();
Ctx.getParentMapContext().setTraversalKind(QS.TK);
Finder.matchAST(Ctx);

if (QS.PrintMatcher) {
SmallVector<StringRef, 4> Lines;
Expand Down Expand Up @@ -159,6 +248,13 @@ bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
Dumper.Visit(BI->second);
OS << "\n";
}
if (QS.SrcLocOutput) {
OS << "\n \"" << BI->first << "\" Source locations\n";
OS << " " << std::string(19 + BI->first.size(), '-') << '\n';

dumpLocations(OS, BI->second, Ctx, AST->getDiagnostics(), SM);
OS << "\n";
}
}

if (MI->getMap().empty())
Expand Down
3 changes: 2 additions & 1 deletion clang-tools-extra/clang-query/Query.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace clang {
namespace query {

enum OutputKind { OK_Diag, OK_Print, OK_DetailedAST };
enum OutputKind { OK_Diag, OK_Print, OK_DetailedAST, OK_SrcLoc };

enum QueryKind {
QK_Invalid,
Expand Down Expand Up @@ -149,6 +149,7 @@ struct SetExclusiveOutputQuery : Query {
QS.DiagOutput = false;
QS.DetailedASTOutput = false;
QS.PrintOutput = false;
QS.SrcLocOutput = false;
QS.*Var = true;
return true;
}
Expand Down
26 changes: 17 additions & 9 deletions clang-tools-extra/clang-query/QueryParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "QuerySession.h"
#include "clang/ASTMatchers/Dynamic/Parser.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Tooling/NodeIntrospection.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include <set>
Expand Down Expand Up @@ -104,16 +105,19 @@ QueryRef QueryParser::parseSetBool(bool QuerySession::*Var) {

template <typename QueryType> QueryRef QueryParser::parseSetOutputKind() {
StringRef ValStr;
unsigned OutKind = LexOrCompleteWord<unsigned>(this, ValStr)
.Case("diag", OK_Diag)
.Case("print", OK_Print)
.Case("detailed-ast", OK_DetailedAST)
.Case("dump", OK_DetailedAST)
.Default(~0u);
bool HasIntrospection = tooling::NodeIntrospection::hasIntrospectionSupport();
unsigned OutKind =
LexOrCompleteWord<unsigned>(this, ValStr)
.Case("diag", OK_Diag)
.Case("print", OK_Print)
.Case("detailed-ast", OK_DetailedAST)
.Case("srcloc", OK_SrcLoc, /*IsCompletion=*/HasIntrospection)
.Case("dump", OK_DetailedAST)
.Default(~0u);
if (OutKind == ~0u) {
return new InvalidQuery(
"expected 'diag', 'print', 'detailed-ast' or 'dump', got '" + ValStr +
"'");
return new InvalidQuery("expected 'diag', 'print', 'detailed-ast'" +
StringRef(HasIntrospection ? ", 'srcloc'" : "") +
" or 'dump', got '" + ValStr + "'");
}

switch (OutKind) {
Expand All @@ -123,6 +127,10 @@ template <typename QueryType> QueryRef QueryParser::parseSetOutputKind() {
return new QueryType(&QuerySession::DiagOutput);
case OK_Print:
return new QueryType(&QuerySession::PrintOutput);
case OK_SrcLoc:
if (HasIntrospection)
return new QueryType(&QuerySession::SrcLocOutput);
return new InvalidQuery("'srcloc' output support is not available.");
}

llvm_unreachable("Invalid output kind");
Expand Down
5 changes: 3 additions & 2 deletions clang-tools-extra/clang-query/QuerySession.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ class QuerySession {
public:
QuerySession(llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs)
: ASTs(ASTs), PrintOutput(false), DiagOutput(true),
DetailedASTOutput(false), BindRoot(true), PrintMatcher(false),
Terminate(false), TK(TK_AsIs) {}
DetailedASTOutput(false), SrcLocOutput(false), BindRoot(true),
PrintMatcher(false), Terminate(false), TK(TK_AsIs) {}

llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs;

bool PrintOutput;
bool DiagOutput;
bool DetailedASTOutput;
bool SrcLocOutput;

bool BindRoot;
bool PrintMatcher;
Expand Down
11 changes: 6 additions & 5 deletions clang-tools-extra/clang-tidy/ClangTidyCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ DiagnosticBuilder ClangTidyCheck::diag(StringRef Message,

DiagnosticBuilder
ClangTidyCheck::configurationDiag(StringRef Description,
DiagnosticIDs::Level Level) {
DiagnosticIDs::Level Level) const {
return Context->configurationDiag(Description, Level);
}

Expand Down Expand Up @@ -147,19 +147,20 @@ llvm::Optional<int64_t> ClangTidyCheck::OptionsView::getEnumInt(

StringRef Value = Iter->getValue().Value;
StringRef Closest;
unsigned EditDistance = -1;
unsigned EditDistance = 3;
for (const auto &NameAndEnum : Mapping) {
if (IgnoreCase) {
if (Value.equals_lower(NameAndEnum.second))
if (Value.equals_insensitive(NameAndEnum.second))
return NameAndEnum.first;
} else if (Value.equals(NameAndEnum.second)) {
return NameAndEnum.first;
} else if (Value.equals_lower(NameAndEnum.second)) {
} else if (Value.equals_insensitive(NameAndEnum.second)) {
Closest = NameAndEnum.second;
EditDistance = 0;
continue;
}
unsigned Distance = Value.edit_distance(NameAndEnum.second);
unsigned Distance =
Value.edit_distance(NameAndEnum.second, true, EditDistance);
if (Distance < EditDistance) {
EditDistance = Distance;
Closest = NameAndEnum.second;
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/ClangTidyCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
/// Adds a diagnostic to report errors in the check's configuration.
DiagnosticBuilder
configurationDiag(StringRef Description,
DiagnosticIDs::Level Level = DiagnosticIDs::Warning);
DiagnosticIDs::Level Level = DiagnosticIDs::Warning) const;

/// Should store all options supported by this check with their
/// current values or default values for options that haven't been overridden.
Expand Down
Loading