Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
775 commits
Select commit Hold shift + click to select a range
41928c9
[analyzer] ApiModeling: Add buffer size arg constraint with multiplie…
Mar 31, 2020
0609704
[SVE] Remove getNumElements() calls in visitGetElementPtrInst
david-arm May 28, 2020
16fef6d
Fix build failure when source is read only
pdhaliwal-amd May 29, 2020
16506d7
[analyzer] StdLibraryFunctionsChecker: Add sanity checks for constraints
Apr 7, 2020
0e265e3
Move unittest helpers to a shared location
gribozavr May 29, 2020
cf6cc66
[OpenMP][SYCL] Improve diagnosing of unsupported types usage
Fznamznon May 29, 2020
0384446
Remove SVN logic from find_first_existing_vc_file
pdhaliwal-amd May 29, 2020
34cfed2
[AIX][XCOFF] add symbol priority for the llvm-objdump -D -symbol-desc…
May 29, 2020
747c574
[ARM] Extra MVE VMLAV reduction patterns
davemgreen May 29, 2020
68c5070
unwind: use a more portable endianness check in EHABI
compnerd May 29, 2020
977f001
[lldb/test] Fix TestAppleSimulatorOSType when multiple runtimes are i…
fredriss May 29, 2020
9e0b52e
[AMDGPU] Remove duplicate test cases
jayfoad May 29, 2020
634258b
[analyzer] StdLibraryFunctionsChecker: Add support to lookup types
May 15, 2020
d8a7888
[CodeGen] Fix warning in visitShuffleVector
david-arm May 27, 2020
a387882
Fix errors in use of strictfp attribute.
kpneal May 29, 2020
66d1899
Fix errors in use of strictfp attribute.
kpneal May 29, 2020
c21a4f8
Fix errors in use of strictfp attribute.
kpneal May 29, 2020
f6a6de2
GlobalISel: fix CombinerHelper::matchEqualDefs()
rampitec May 28, 2020
cd74ccc
[X86] Fix errors in use of strictfp attribute.
kpneal May 29, 2020
40c0836
[DAGCombiner] Add command line options to guard store width reduction
weiguozhi May 29, 2020
31a8e27
Let @skipUnlessThreadSanitizer imply @skipIfAsan
adrian-prantl May 29, 2020
c1a3329
Let @skipUnlessUndefinedBehaviorSanitizer imply @skipIfAsan
adrian-prantl May 29, 2020
a01c004
[ConstantFolding] Constant folding for integer vector reduce intrinsics
davemgreen May 29, 2020
8c2d2d9
Preserve DbgLoc when DeadArgumentElimination rewrites a 'ret'.
pogo59 May 28, 2020
0b21c67
[LoopVectorize] auto-generate complete test checks; NFC
rotateright May 29, 2020
9d1f95b
[LoopVectorize] regenerate test checks; NFC
rotateright May 29, 2020
5e94273
[LoopVectorize] auto-generate complete checks; NFC
rotateright May 29, 2020
f78eecb
[LoopVectorize] regenerate test checks; NFC
rotateright May 29, 2020
b82a95f
[SVE] Eliminate calls to default-false VectorType::get() from polly
christetreault-llvm May 29, 2020
26604d0
[AIX] Emit AvailableExternally Linkage on AIX
xling-liao May 29, 2020
db653ff
[LoopVectorize] auto-generate complete test checks; NFC
rotateright May 29, 2020
dfc8244
[PrintSCC] Fix printing a basic-block without a name
ekatz May 29, 2020
dbb5979
[MLIR][OpenMP] Defined master operation in OpenMP Dialect
anchuraj May 28, 2020
87e4ad4
[X86] Remove isel pattern for MMX_X86movdq2q+simple_load. Replace wit…
topperc May 29, 2020
b637519
[SVE] Replace deprecated call in changeVectorElementTypeToInteger
bulanova-huawei May 29, 2020
5c7aca6
[X86] Ignore large code model in X86FastISel::X86MaterializeFP in 32-…
topperc May 29, 2020
61412b7
[SLP] auto-generate complete test checks; NFC
rotateright May 29, 2020
81443ac
[WebAssembly] Add placeholders for R_WASM_TABLE_INDEX_REL_SLEB reloca…
sbc100 May 29, 2020
3a574a6
Add support for Overloaded Binary Operators in SyntaxTree
May 29, 2020
c710bb4
[Local] Prevent `invertCondition` from creating a redundant instruction
ekatz May 29, 2020
d2befc6
[SVE] Eliminate calls to default-false VectorType::get() from Vectorize
christetreault-llvm May 29, 2020
e7102ee
[DWARF5] Added support for .debug_macro.dwo section in llvm-dwarfdump
SouraVX May 29, 2020
b47403c
[DWARF5] Replace emission of strp with stx forms in debug_macro section
SouraVX May 29, 2020
9534192
[mlir][Linalg] Make contraction vectorization use vector transfers
nicolasvasilache May 29, 2020
a520294
[AMDGPU] Regenrated urem/udiv global isel tests. NFC.
rampitec May 29, 2020
f881c79
[tests] Fix AMDGPU test
ekatz May 29, 2020
2d2627d
AMDGPU: Remove fp-exceptions feature
arsenm May 29, 2020
e6a404f
[lldb/CMake] Set both the BUILD and INSTALL RPATH on macOS (2/2)
JDevlieghere May 29, 2020
6f56a58
[clang-format] Create a python documentation tool to generate a summa…
phoad107185 May 29, 2020
80e107c
Add NoMerge MIFlag to avoid MIR branch folding
ZequanWu May 29, 2020
1a5c97f
[ASTMatchers] Matchers related to C++ inheritance
jkorous-apple Apr 29, 2020
6f6e91d
[Matrix] Implement + and - operators for MatrixType.
fhahn May 29, 2020
f66a43c
Process gep (phi ptr1, ptr2) in SROA
rampitec Apr 30, 2020
6a47140
[DebugInfo][DAG] Don't reuse debug location on COPY if width changes.
tbosch May 28, 2020
2484109
AMDGPU/GlobalISel: Add boilerplate for inline asm lowering
arsenm May 29, 2020
af852d6
Revert "Process gep (phi ptr1, ptr2) in SROA"
rampitec May 29, 2020
8d8f8b3
[lldb/Test] Don't leak forked processes on Darwin
JDevlieghere May 29, 2020
2d7fdab
[CMake] Change target 'check' from 'check-llvm' to 'check-all'
MaskRay May 29, 2020
881c5ee
[ELF] Add -z rel and -z rela
MaskRay May 29, 2020
e75325c
[mlir][Affine] Minor clean-up of D79829
dcaballe May 29, 2020
c8f1aca
[SVE] Eliminate calls to default-false VectorType::get() from Utils
christetreault-llvm May 29, 2020
e4d2037
[SVE] Eliminate calls to default-false VectorType::get() from Instrum…
christetreault-llvm May 29, 2020
fbac9ce
[flang] Batch together the changes to the PFT intermediate data
schweitzpgi May 22, 2020
8f8029b
[SVE] Eliminate calls to default-false VectorType::get() from InstCom…
christetreault-llvm May 29, 2020
91beb51
[mlir] NFC - Add debug information for Linalg transformations.
nicolasvasilache May 29, 2020
a45688a
[SLP] Apply external to vectorizable tree users cost adjustment for
May 29, 2020
56eb755
[SVE] Eliminate calls to default-false VectorType::get() from AArch64
christetreault-llvm May 29, 2020
e6cf402
[SVE] Eliminate calls to default-false VectorType::get() from Aggress…
christetreault-llvm May 29, 2020
7fc225f
[mlir] Fix Windows build
nicolasvasilache May 29, 2020
4034d0c
[libFuzzer] Fixed description of fuzzer merge control file.
adrianherrera May 29, 2020
5a99ec1
[SVE] Eliminate calls to default-false VectorType::get() from X86
christetreault-llvm May 29, 2020
03559c6
[diagtool] Install diagtool when LLVM_INSTALL_TOOLCHAIN_ONLY is ON.
vsapsai May 29, 2020
7265ff9
[libc++] Fix issues with the triviality of std::array
ldionne May 29, 2020
c652c30
[mlir][spirv] Clean up coop matrix assembly declaration.
ThomasRaoux May 29, 2020
14f4959
[flang][NFC] Remove link-time dependency of Evaluate on Semantics
tskeith May 29, 2020
7d77b05
[gn build] (manually) port 0e265e31578
nico May 29, 2020
7318e24
[AMDGPU] Add loaded code object path URI definition to AMDGPUUsage
t-tye May 29, 2020
26c070c
[gn build] Port 34cfed24ebd
llvmgnsyncbot May 29, 2020
02f6f1e
[gn build] Port cf6cc662eee
llvmgnsyncbot May 29, 2020
77b1ed4
[SVE] Eliminate calls to default-false VectorType::get() from Linker
christetreault-llvm May 29, 2020
3f0841f
[jitlink] R_X86_64_PC32 support for the elf x86 jitlinker
jaredwy May 29, 2020
aad9365
[SVE] Eliminate calls to default-false VectorType::get() from AMDGPU
christetreault-llvm May 30, 2020
f012c58
AMDGPU: Move MIMG MMO check to verifier
arsenm May 29, 2020
4f300d4
AMDGPU: Add new baseline tests for setreg handling
arsenm May 29, 2020
0892a96
AMDGPU: Optimize s_setreg_b32 to s_denorm_mode/s_round_mode
arsenm May 29, 2020
d041477
[AMDGPU] Remove assertion on S1024 SGPR to VGPR spill
perlfu May 30, 2020
034a7b6
[ValueLattice] Fix uninitialized-value after D79036
MaskRay May 30, 2020
c554c5e
Fix full unrolling with new pass manager.
echristo May 4, 2020
c2bb26d
NFC: Simplify O1 pass pipeline construction.
echristo May 5, 2020
21fee09
Use .empty() instead of .size() == 0 (NFC)
joker-eph May 30, 2020
0800529
[lldb/Bindings] Raise exception when using properties that rely on ll…
JDevlieghere May 30, 2020
20c9bb4
[DWARF5] Added support for emission of .debug_macro.dwo section
SouraVX May 30, 2020
2388a09
[lldb/Test] use GetLoadAddress from scripted thread plan
JDevlieghere May 30, 2020
cf97e0e
[AArch64] Treat x18 as callee-saved in functions with windows calling…
mstorsjo Apr 30, 2019
51089db
[test] Regenerate checks in aarch64_win64cc_vararg.ll with update_llc…
mstorsjo May 29, 2020
c65c1d7
[X86] Autogenerate complete checks. NFC
topperc May 30, 2020
9206322
[lldb/CMake] Fix typo that prevented regenerating the bindings
JDevlieghere May 30, 2020
81b50a7
[SelectionDAG] Remove repeated getOperand() call. NFC.
RKSimon May 30, 2020
bd85b7d
[OpenMP][SYCL] Do not crash on attempt to diagnose unsupported type use
Fznamznon May 30, 2020
1c4238e
[libcxx testing] Stop using arbitrary timeouts in one test
davezarzycki May 30, 2020
f5a59be
IPDBRawSymbol.h - reduce StringRef.h include to forward declaration. …
RKSimon May 30, 2020
f75e91f
IPDBRawSymbol.h - remove already declared forward declarations. NFC.
RKSimon May 30, 2020
a8eb06c
Architecture.h - reduce includes to forward declarations. NFC.
RKSimon May 30, 2020
d1765cf
ArchitectureSet.h - reduce raw_ostream.h include to forward declarati…
RKSimon May 30, 2020
5a918b7
ArchitectureSet.h - add missing <tuple> include.
RKSimon May 30, 2020
0f461c3
TBEHandler.h - remove unnecessary VersionTuple forward declaration. NFC.
RKSimon May 30, 2020
50bdd60
[clang-format] [PR46130] When editing a file with unbalance {} the na…
mydeveloperday May 30, 2020
179f8ad
PackedVersion.h - reduce includes to forward declarations. NFC.
RKSimon May 30, 2020
9d0bfce
[SelectionDAG] ComputeNumSignBits - use Valid Min/Max shift amount he…
RKSimon May 30, 2020
63824ad
[TargetLowering] SimplifyDemandedBits - remove shift amount clamps fr…
RKSimon May 30, 2020
e5bc076
SafeStackLayout.cpp - remove includes directly defined in SafeStackLa…
RKSimon May 30, 2020
2b881f7
CriticalAntiDepBreaker.cpp - remove includes directly defined in Crit…
RKSimon May 30, 2020
e6aba43
SafeStackColoring.h - reduce Instructions.h include to forward declar…
RKSimon May 30, 2020
d99a184
[BasicAA] Use known lower bounds for index values for size based check.
fhahn May 30, 2020
fd0ab3b
[lldb] Pass -fPIC flag even when DYLIB_ONLY is set
Teemperor May 29, 2020
065bf12
[DSE] Remove noop stores in MSSA.
zoecarver May 30, 2020
7873376
[LoopUnroll] Fix build failure for allyesconfig.
May 30, 2020
4411962
[clang-tidy] RenamerClangTidyChecks ignore builtin and command line m…
njames93 May 27, 2020
dfa82f8
[Tests] Convert last statepoint lowering tests to bundle format
preames May 30, 2020
0fee91a
[LoopUnroll] Add a test case for rG7873376bb36b.
May 30, 2020
3eb430d
[X86] Factor constant pool comment printing out of the switch in X86A…
topperc May 30, 2020
16976cb
[X86] Minor cleanups to addShuffleComments in X86MCInstPrinter.cpp. NFCI
topperc May 30, 2020
fc532c1
Remove some non-determinism from the `Darwin/duplicate_os_log_reports…
delcypher May 30, 2020
1b6d29e
[Driver] Fix BooleanFFlag identifiers to use 'f' 'fno_' prefixes inst…
MaskRay May 30, 2020
07e8a78
[X86] Add pseudo instructions to use MULX with a single destination w…
topperc May 30, 2020
a23d1e9
[llvm-objdump] Simplify reportError() and prepend outs().flush()
MaskRay May 31, 2020
439d27d
[llvm-objdump] Move llvm:: to llvm::objdump:: and qualifying definiti…
MaskRay May 31, 2020
d04eb25
[llvm-objdump] Delete unneeeded namespace llvm {}
MaskRay May 31, 2020
ce1fadc
[ELF][docs] Update supported targets
MaskRay May 31, 2020
8857822
[X86] Move MMX_SET0 pattern into the instruction definition. NFC
topperc May 30, 2020
efc5857
[X86] Autogenerate complete checks. NFC
topperc May 30, 2020
1ecf39d
[X86] Fix a place where we created MOVQ2DQ with a DstVT other than v2…
topperc May 31, 2020
af1accd
[X86] Teach computeKnownBitsForTargetNode that the upper half of X86I…
topperc May 31, 2020
a4dd45b
[DAGCombiner] Move debug message and statistic update into CommitTarg…
topperc May 31, 2020
7c3b807
[X86] Add DAG combine to turn (v2i64 (scalar_to_vector (i64 (bitconve…
topperc May 31, 2020
dbda871
[X86] Remove unneeded bitconverts from isel patterns. NFC
topperc May 31, 2020
234eba9
AMDGPU: Add setTruncStoreAction for vector i64 types made legal recently
May 31, 2020
d4751f3
[AMDGPU] Precommit tests for D80813
jayfoad May 29, 2020
2768edf
[AMDGPU] Propagate fast-math flags when lowering FSIN and FCOS
jayfoad May 29, 2020
af3abbf
[NFC][PowerPC] Add a new case to test phi-node-elimination pass
zhangkangcool May 31, 2020
bfdf9ef
Revert "[NFC][PowerPC] Add a new case to test phi-node-elimination pass"
zhangkangcool May 31, 2020
ec25a71
[ScheduleDAG] Avoid unnecessary recomputation of topological order.
fhahn May 31, 2020
45ebe38
[X86][AVX] Pad small shuffle inputs in combineX86ShufflesRecursively
RKSimon May 31, 2020
d33ba1a
[X86][AVX] getFauxShuffleMask - don't widen shuffle inputs from INSER…
RKSimon May 31, 2020
129c501
[PhaseOrdering] add scalarization test for PR42174; NFC
rotateright May 31, 2020
15b281d
[X86][AVX] Add test case described in D79987
RKSimon May 31, 2020
f046326
[X86] getFauxShuffleMask/getTargetShuffleInputs - make SelectionDAG c…
RKSimon May 31, 2020
e31f2a8
[VectorCombine] add tests for scalarizing binop-with-constant; NFC
rotateright May 31, 2020
4a2673d
[X86][AVX] Add SimplifyMultipleUseDemandedBits VBROADCAST handling to…
RKSimon May 31, 2020
91b45fb
[PhaseOrdering] add test for hoisting/CSE (PR46115); NFC
rotateright May 31, 2020
bfdc255
[utils] change update_test_checks.py use of 'TMP' value names
rotateright May 31, 2020
95f65a7
AArch64/GlobalISel: Fix incorrect ptrmask usage for alignment
arsenm May 30, 2020
f23ddbe
clang-tidy and clang-query wont crash with invalid command line options
njames93 May 30, 2020
dfbfdc9
[utils] update expected strings in tests; NFC
rotateright May 31, 2020
f4b0ebb
Revert "clang-tidy and clang-query wont crash with invalid command li…
njames93 May 31, 2020
5952125
clang-tidy and clang-query wont crash with invalid command line options
njames93 May 31, 2020
0cf5ef1
Change some extraneous /// comments to // comments inside methods. NFC.
lattner May 31, 2020
8f2f613
[X86][AVX] combineX86ShufflesRecursively - peekThroughOneUseBitcasts …
RKSimon May 31, 2020
22e5083
[X86][AVX] Reduce unary target shuffles width if the upper elements a…
RKSimon May 31, 2020
8abe830
[X86] Rewrite how X86PartialReduction finds candidates to consider op…
topperc May 31, 2020
403d5a5
[test][compiler-rt] Avoid LD_PRELOAD for "outer" dynamic linkers
hubert-reinterpretcast May 31, 2020
c15d5d1
[Driver] NFC: Use Twine temp to replace std::string local
hubert-reinterpretcast May 31, 2020
77e1181
[analyzer] Add dumps to CheckerRegistry
Szelethus May 31, 2020
92448fd
[Driver] Simplify Linux::addProfileRTLibs
MaskRay Jun 1, 2020
a8ca0ec
AMDGPU/GlobalISel: Add stub reg-bank aware combiner pass
arsenm May 31, 2020
216bad9
[gn build] (semi-manually) port a8ca0ec2670
nico Jun 1, 2020
3101601
[PowerPC] Exploit vabsd on P9
Jun 1, 2020
2a24d35
[MachineCombine] add a hook for resource length limit
May 27, 2020
2c62077
Merge from 'master' to 'sycl-web' (#2)
Fznamznon Jun 1, 2020
af38074
Fix strict aliasing warning in msan.cpp
May 28, 2020
11efb08
Improve SmallPtrSetImpl::count implementation
Jun 1, 2020
b6d23f2
[ASTMatchers] Force c++ unittests to specify correct language standard
njames93 Jun 1, 2020
40a3fcb
[DebugInfo][CallSites] Remove decl subprograms from 'retainedTypes:'
May 27, 2020
dace822
AArch64: materialize large stack offset into xzr correctly.
TNorthover Apr 22, 2020
e75efcc
[llvm-readobj] - Improve error reporting for hash tables.
May 21, 2020
85c3088
[StructurizeCFG] Fix region nodes ordering
ekatz Jun 1, 2020
feee986
[llvm-readelf] - Add explicit braces. NFC.
Jun 1, 2020
b21f32f
[llvm-readelf] - Add explicit braces again. NFC.
Jun 1, 2020
937403d
[DebugInfo] Separate fields with commas in headers of .debug_pub* tab…
igorkudrin Jun 1, 2020
2a7af30
[DebugInfo] Separate fields with commas in headers of compile units (…
igorkudrin Jun 1, 2020
cbec419
[DebugInfo] Separate fields with commas in headers of type units (3/3).
igorkudrin Jun 1, 2020
de82114
MIPatternMatch.h - remove unused APFloat/APInt includes. NFC.
RKSimon Jun 1, 2020
014648e
ARMFrameLowering.h - remove unnecessary includes. NFC.
RKSimon Jun 1, 2020
7bcde99
[llvm-dwarfdump][test] Use verbose output to check expected opcodes
jh7370 May 20, 2020
e5b8772
[utils] change default nameless value to "TMP"
rotateright Jun 1, 2020
2b37c5b
[lldb][NFC] Make ClangExpressionSourceCode's wrapping logic more cons…
Teemperor Jun 1, 2020
e8bcf4e
[DebugInfo] Add use of truncating data extractor to debug line parsing
jh7370 May 20, 2020
54422d2
Revert "[lldb] Pass -fPIC flag even when DYLIB_ONLY is set"
Teemperor Jun 1, 2020
8d9070e
[Support] Add more context to DataExtractor getLEB128 errors
jh7370 May 22, 2020
c0303e5
[CodeGen] remove instnamer dependency from test file; NFC
rotateright Jun 1, 2020
8a84158
[StructurizeCFG] Fix an incorrect comment, NFC.
ekatz Jun 1, 2020
522934d
Support GCC [[gnu::attributes]] in C2x mode
AaronBallman Jun 1, 2020
5e111c5
[openmp] Fixed taskloop recursive splitting so that taskloop tasks have
AndreyChurbanov Jun 1, 2020
52eebe2
Merge remote-tracking branch sycl-web into private/vlazarev/llvmspirv…
vladimirlaz Jun 1, 2020
dd54432
[InstNamer] use 'i' for Instructions, not 'tmp'
rotateright Jun 1, 2020
26c78e3
[WebAssembly] Update test expectations
sbc100 Jun 1, 2020
1caedd0
[libc] Add implementations of ceil[f], floor[f] and trunc[f] from mat…
May 18, 2020
745c6c8
Process gep (phi ptr1, ptr2) in SROA
rampitec May 29, 2020
b874dc4
[InstCombine] add test for select-of-shuffle; NFC
rotateright Jun 1, 2020
d9943e7
[Object] Add DF_1_PIE
MaskRay Jun 1, 2020
e132a9c
Update some names in test. NFC.
rampitec Jun 1, 2020
ae6e499
[flang] This adds the lowering stubs for Open MP.
schweitzpgi May 27, 2020
ef1d4be
[Clang][CGM] style cleanups NFC
nickdesaulniers Jun 1, 2020
7968981
[SVE] Eliminate calls to default-false VectorType::get() from Clang
christetreault-llvm Jun 1, 2020
7ad3649
AMDGPU: Fix alignment for dynamic allocas
arsenm May 30, 2020
4e96329
Temporarily removed unstable test. NFC.
rampitec Jun 1, 2020
ee9a251
[ELF] Set DF_1_PIE for -pie
MaskRay Jun 1, 2020
0ed2c04
[AMDGPU/MemOpsCluster] Let mem ops clustering logic also consider num…
hsmahesha Jun 1, 2020
ed08c4f
AMDGPU: Remove dead file
arsenm Jun 1, 2020
20793b2
AMDGPU: Fix test in code directory
arsenm Jun 1, 2020
6c27c61
[PGO] Improve the working set size heuristics under the partial sampl…
hjyamauchi Apr 8, 2020
f97a609
[Darwin] Add and adopt a way to query the Darwin kernel version
May 14, 2020
836c7dc
DAG: Fix getNode dropping flags if there's a glue output
arsenm May 28, 2020
2ecaf93
[LiveDebugValues] Speed up removeEntryValue, NFC
vedantk May 28, 2020
11c617c
[LiveDebugValues] Add LocIndex::u32_{location,index}_t types for read…
vedantk Jun 1, 2020
89d48cc
AMDGPU: Fix not emitting nofpexcept on fdiv expansion
arsenm May 28, 2020
4d64c25
Merge remote-tracking branch master into private/vlazarev/llvmspirv_p…
vladimirlaz Jun 1, 2020
64a06b5
Fix translation of undefined function call when debug info is present
vmaksimo May 19, 2020
edd5461
added cl_khr_subgroup_extended_types and cl_khr_subgroup_non_uniform_…
bashbaug Mar 12, 2020
596d789
added cl_khr_subgroup_ballot
bashbaug Mar 23, 2020
6f85d64
initial changes for cl_khr_subgroup_non_uniform_arithmetic
bashbaug Mar 23, 2020
ff35f17
added cl_khr_subgroup_non_uniform_arithmetic
bashbaug Mar 24, 2020
8c6b513
added cl_khr_subgroup_shuffle
bashbaug Mar 24, 2020
9ad880e
added cl_khr_subgroup_shuffle_relative
bashbaug Mar 24, 2020
b9baae5
initial changes for cl_khr_subgroup_clustered_reduce
bashbaug Mar 27, 2020
e32f890
properly return boolean types for elect and logical instructions
bashbaug Mar 30, 2020
614ed23
properly return boolean type for inverse ballot instruction
bashbaug Mar 30, 2020
42a98a1
distinguish between signed and unsigned clustered min and max
bashbaug Apr 6, 2020
97f0125
Add two-way translation test for sub_group_non_uniform_vote.
aratajew Apr 10, 2020
49b6572
Fix group_ops test
aratajew Apr 15, 2020
dd1bf56
Add two-way translation test for sub_group_ballot.
aratajew Apr 15, 2020
133ad80
Add two-way translation test for sub_group_shuffle.
aratajew Apr 15, 2020
c820ba0
Add two-way translation test for sub_group_shuffle_relative.
aratajew Apr 15, 2020
b26a18d
Add two-way translation test for sub_group_clustered_reduce.
aratajew Apr 16, 2020
e1b38cd
Add two-way translation test for sub_group_extended_types.
aratajew Apr 16, 2020
c8c211e
Remove duplicated values from OCLSPIRVBuiltinMap.
aratajew Apr 17, 2020
0fbfe9c
Add two-way translation test for sub_group_non_uniform_arithmetic.
aratajew Apr 17, 2020
d41ea99
formatted with clang-format
bashbaug Apr 22, 2020
6d3b3ef
Handle capabilities related to cl_khr_subgroup_extensions.
aratajew Apr 21, 2020
a9b9001
don't add enums for SPIR-V 1.4 or 1.5 yet update version-controls-neg…
bashbaug Apr 22, 2020
fc5f453
Fix case style.
PiotrFusik May 4, 2020
f3f1886
extend spirv-max-version option to versions 1.2 and 1.3
aratajew May 5, 2020
e8994b2
Fix a warning from "Enable strict rules to set ContractionOFF (#521)"
May 25, 2020
0676db2
Add infrastructure for SPV_KHR_float_controls extension (#540)
NikitaRudenkoIntel May 27, 2020
cc90c60
Minor changes and cleanups (#553)
NikitaRudenkoIntel May 27, 2020
e648d0b
Fix handling of function pointers going through select
AlexeySachkov May 25, 2020
b0b8f1b
Ignore llvm.trap instrinsic
zahiraam May 26, 2020
b90645a
Update DebugInfo test after LLVM changes D80197
AlexeySotkin May 29, 2020
55957ad
Add translation of memory model from module metadata
NikitaRudenkoIntel May 27, 2020
a4f4fa9
[SYCL] Disable FP16 support check for SYCL CUDA BE
vladimirlaz Jun 2, 2020
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
  •  
  •  
  •  
14 changes: 0 additions & 14 deletions clang-tools-extra/clang-doc/Generators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,6 @@ findGeneratorByName(llvm::StringRef Format) {

// Enum conversion

std::string getAccess(AccessSpecifier AS) {
switch (AS) {
case AccessSpecifier::AS_public:
return "public";
case AccessSpecifier::AS_protected:
return "protected";
case AccessSpecifier::AS_private:
return "private";
case AccessSpecifier::AS_none:
return {};
}
llvm_unreachable("Unknown AccessSpecifier");
}

std::string getTagType(TagTypeKind AS) {
switch (AS) {
case TagTypeKind::TTK_Class:
Expand Down
2 changes: 0 additions & 2 deletions clang-tools-extra/clang-doc/Generators.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ typedef llvm::Registry<Generator> GeneratorRegistry;
llvm::Expected<std::unique_ptr<Generator>>
findGeneratorByName(llvm::StringRef Format);

std::string getAccess(AccessSpecifier AS);

std::string getTagType(TagTypeKind AS);

} // namespace doc
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 @@ -402,7 +402,7 @@ genRecordMembersBlock(const llvm::SmallVector<MemberTypeInfo, 4> &Members,
Out.emplace_back(std::make_unique<TagNode>(HTMLTag::TAG_UL));
auto &ULBody = Out.back();
for (const auto &M : Members) {
std::string Access = getAccess(M.Access);
std::string Access = getAccessSpelling(M.Access).str();
if (Access != "")
Access = Access + " ";
auto LIBody = std::make_unique<TagNode>(HTMLTag::TAG_LI);
Expand Down Expand Up @@ -679,7 +679,7 @@ genHTML(const FunctionInfo &I, const ClangDocContext &CDCtx,
Out.emplace_back(std::make_unique<TagNode>(HTMLTag::TAG_P));
auto &FunctionHeader = Out.back();

std::string Access = getAccess(I.Access);
std::string Access = getAccessSpelling(I.Access).str();
if (Access != "")
FunctionHeader->Children.emplace_back(
std::make_unique<TextNode>(Access + " "));
Expand Down
4 changes: 2 additions & 2 deletions clang-tools-extra/clang-doc/MDGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static void genMarkdown(const ClangDocContext &CDCtx, const FunctionInfo &I,
First = false;
}
writeHeader(I.Name, 3, OS);
std::string Access = getAccess(I.Access);
std::string Access = getAccessSpelling(I.Access).str();
if (Access != "")
writeLine(genItalic(Access + " " + I.ReturnType.Type.Name + " " + I.Name +
"(" + Stream.str() + ")"),
Expand Down Expand Up @@ -250,7 +250,7 @@ static void genMarkdown(const ClangDocContext &CDCtx, const RecordInfo &I,
if (!I.Members.empty()) {
writeHeader("Members", 2, OS);
for (const auto &Member : I.Members) {
std::string Access = getAccess(Member.Access);
std::string Access = getAccessSpelling(Member.Access).str();
if (Access != "")
writeLine(Access + " " + Member.Type.Name + " " + Member.Name, OS);
else
Expand Down
14 changes: 11 additions & 3 deletions clang-tools-extra/clang-query/tool/ClangQuery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/WithColor.h"
#include <fstream>
#include <string>

Expand Down Expand Up @@ -86,7 +87,14 @@ bool runCommandsInFile(const char *ExeName, std::string const &FileName,
int main(int argc, const char **argv) {
llvm::sys::PrintStackTraceOnErrorSignal(argv[0]);

CommonOptionsParser OptionsParser(argc, argv, ClangQueryCategory);
llvm::Expected<CommonOptionsParser> OptionsParser =
CommonOptionsParser::create(argc, argv, ClangQueryCategory,
llvm::cl::OneOrMore);

if (!OptionsParser) {
llvm::WithColor::error() << llvm::toString(OptionsParser.takeError());
return 1;
}

if (!Commands.empty() && !CommandFiles.empty()) {
llvm::errs() << argv[0] << ": cannot specify both -c and -f\n";
Expand All @@ -99,8 +107,8 @@ int main(int argc, const char **argv) {
return 1;
}

ClangTool Tool(OptionsParser.getCompilations(),
OptionsParser.getSourcePathList());
ClangTool Tool(OptionsParser->getCompilations(),
OptionsParser->getSourcePathList());
std::vector<std::unique_ptr<ASTUnit>> ASTs;
int Status = Tool.buildASTs(ASTs);
int ASTStatus = 0;
Expand Down
5 changes: 4 additions & 1 deletion clang-tools-extra/clang-tidy/abseil/AbseilTidyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
#include "NoInternalDependenciesCheck.h"
#include "NoNamespaceCheck.h"
#include "RedundantStrcatCallsCheck.h"
#include "StringFindStartswithCheck.h"
#include "StrCatAppendCheck.h"
#include "StringFindStartswithCheck.h"
#include "StringFindStrContainsCheck.h"
#include "TimeComparisonCheck.h"
#include "TimeSubtractionCheck.h"
#include "UpgradeDurationConversionsCheck.h"
Expand Down Expand Up @@ -61,6 +62,8 @@ class AbseilModule : public ClangTidyModule {
"abseil-str-cat-append");
CheckFactories.registerCheck<StringFindStartswithCheck>(
"abseil-string-find-startswith");
CheckFactories.registerCheck<StringFindStrContainsCheck>(
"abseil-string-find-str-contains");
CheckFactories.registerCheck<TimeComparisonCheck>(
"abseil-time-comparison");
CheckFactories.registerCheck<TimeSubtractionCheck>(
Expand Down
2 changes: 2 additions & 0 deletions clang-tools-extra/clang-tidy/abseil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ add_clang_library(clangTidyAbseilModule
RedundantStrcatCallsCheck.cpp
StrCatAppendCheck.cpp
StringFindStartswithCheck.cpp
StringFindStrContainsCheck.cpp
TimeComparisonCheck.cpp
TimeSubtractionCheck.cpp
UpgradeDurationConversionsCheck.cpp
Expand All @@ -32,4 +33,5 @@ add_clang_library(clangTidyAbseilModule
clangTidy
clangTidyUtils
clangTooling
clangTransformer
)
110 changes: 110 additions & 0 deletions clang-tools-extra/clang-tidy/abseil/StringFindStrContainsCheck.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
//===--- StringFindStrContainsCheck.cc - 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 "StringFindStrContainsCheck.h"

#include "../utils/OptionsUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Tooling/Transformer/RewriteRule.h"
#include "clang/Tooling/Transformer/Stencil.h"

using namespace clang::ast_matchers;

namespace clang {
namespace tidy {
namespace abseil {

using ::clang::transformer::applyFirst;
using ::clang::transformer::cat;
using ::clang::transformer::change;
using ::clang::transformer::makeRule;
using ::clang::transformer::node;

static const char DefaultStringLikeClasses[] = "::std::basic_string;"
"::std::basic_string_view;"
"::absl::string_view";
static const char DefaultAbseilStringsMatchHeader[] = "absl/strings/match.h";

static llvm::Optional<transformer::RewriteRule>
MakeRule(const LangOptions &LangOpts,
const ClangTidyCheck::OptionsView &Options) {
// Parse options.
//
// FIXME(tdl-g): These options are being parsed redundantly with the
// constructor because TransformerClangTidyCheck forces us to provide MakeRule
// before "this" is fully constructed, but StoreOptions requires us to store
// the parsed options in "this". We need to fix TransformerClangTidyCheck and
// then we can clean this up.
const std::vector<std::string> StringLikeClassNames =
utils::options::parseStringList(
Options.get("StringLikeClasses", DefaultStringLikeClasses));
const std::string AbseilStringsMatchHeader =
Options.get("AbseilStringsMatchHeader", DefaultAbseilStringsMatchHeader);

auto StringLikeClass = cxxRecordDecl(hasAnyName(SmallVector<StringRef, 4>(
StringLikeClassNames.begin(), StringLikeClassNames.end())));
auto StringType =
hasUnqualifiedDesugaredType(recordType(hasDeclaration(StringLikeClass)));
auto CharStarType =
hasUnqualifiedDesugaredType(pointerType(pointee(isAnyCharacter())));
auto StringNpos = declRefExpr(
to(varDecl(hasName("npos"), hasDeclContext(StringLikeClass))));
auto StringFind = cxxMemberCallExpr(
callee(cxxMethodDecl(
hasName("find"),
hasParameter(0, parmVarDecl(anyOf(hasType(StringType),
hasType(CharStarType)))))),
on(hasType(StringType)), hasArgument(0, expr().bind("parameter_to_find")),
anyOf(hasArgument(1, integerLiteral(equals(0))),
hasArgument(1, cxxDefaultArgExpr())),
onImplicitObjectArgument(expr().bind("string_being_searched")));

tooling::RewriteRule rule = applyFirst(
{makeRule(binaryOperator(hasOperatorName("=="),
hasOperands(ignoringParenImpCasts(StringNpos),
ignoringParenImpCasts(StringFind))),
change(cat("!absl::StrContains(", node("string_being_searched"),
", ", node("parameter_to_find"), ")")),
cat("use !absl::StrContains instead of find() == npos")),
makeRule(binaryOperator(hasOperatorName("!="),
hasOperands(ignoringParenImpCasts(StringNpos),
ignoringParenImpCasts(StringFind))),
change(cat("absl::StrContains(", node("string_being_searched"),
", ", node("parameter_to_find"), ")")),
cat("use absl::StrContains instead of find() != npos"))});
addInclude(rule, AbseilStringsMatchHeader);
return rule;
}

StringFindStrContainsCheck::StringFindStrContainsCheck(
StringRef Name, ClangTidyContext *Context)
: TransformerClangTidyCheck(&MakeRule, Name, Context),
StringLikeClassesOption(utils::options::parseStringList(
Options.get("StringLikeClasses", DefaultStringLikeClasses))),
AbseilStringsMatchHeaderOption(Options.get(
"AbseilStringsMatchHeader", DefaultAbseilStringsMatchHeader)) {}

bool StringFindStrContainsCheck::isLanguageVersionSupported(
const LangOptions &LangOpts) const {
return LangOpts.CPlusPlus11;
}

void StringFindStrContainsCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) {
TransformerClangTidyCheck::storeOptions(Opts);
Options.store(Opts, "StringLikeClasses",
utils::options::serializeStringList(StringLikeClassesOption));
Options.store(Opts, "AbseilStringsMatchHeader",
AbseilStringsMatchHeaderOption);
}

} // namespace abseil
} // namespace tidy
} // namespace clang
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//===--- StringFindStrContainsCheck.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_STRINGFINDSTRCONTAINSCHECK_H
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ABSEIL_STRINGFINDSTRCONTAINSCHECK_H

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

namespace clang {
namespace tidy {
namespace abseil {

/// Finds s.find(...) == string::npos comparisons (for various string-like
/// types) and suggests replacing with absl::StrContains.
///
/// For the user-facing documentation see:
/// http://clang.llvm.org/extra/clang-tidy/checks/abseil-string-find-str-contains.html
class StringFindStrContainsCheck : public utils::TransformerClangTidyCheck {
public:
StringFindStrContainsCheck(StringRef Name, ClangTidyContext *Context);
bool isLanguageVersionSupported(const LangOptions &LangOpts) const override;
void storeOptions(ClangTidyOptions::OptionMap &Opts) override;

private:
const std::vector<std::string> StringLikeClassesOption;
const std::string AbseilStringsMatchHeaderOption;
};

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

#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_ABSEIL_STRINGFINDSTRCONTAINSCHECK_H
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ void NonPrivateMemberVariablesInClassesCheck::registerMatchers(
// If we are ok with public fields, then we only want to complain about
// protected fields, else we want to complain about all non-private fields.
// We can ignore public member variables in structs/classes, in unions.
auto InterestingField = fieldDecl(
IgnorePublicMemberVariables ? isProtected() : unless(isPrivate()));
auto InterestingField = IgnorePublicMemberVariables
? fieldDecl(isProtected())
: fieldDecl(unless(isPrivate()));

// We only want the records that not only contain the mutable data (non-static
// member variables), but also have some logic (non-static, non-implicit
Expand Down
15 changes: 11 additions & 4 deletions clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "llvm/Support/Process.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/WithColor.h"

using namespace clang::ast_matchers;
using namespace clang::driver;
Expand Down Expand Up @@ -333,8 +334,14 @@ getVfsFromFile(const std::string &OverlayFile,

int clangTidyMain(int argc, const char **argv) {
llvm::InitLLVM X(argc, argv);
CommonOptionsParser OptionsParser(argc, argv, ClangTidyCategory,
cl::ZeroOrMore);
llvm::Expected<CommonOptionsParser> OptionsParser =
CommonOptionsParser::create(argc, argv, ClangTidyCategory,
cl::ZeroOrMore);
if (!OptionsParser) {
llvm::WithColor::error() << llvm::toString(OptionsParser.takeError());
return 1;
}

llvm::IntrusiveRefCntPtr<vfs::OverlayFileSystem> BaseFS(
new vfs::OverlayFileSystem(vfs::getRealFileSystem()));

Expand Down Expand Up @@ -365,7 +372,7 @@ int clangTidyMain(int argc, const char **argv) {
SmallString<256> ProfilePrefix = MakeAbsolute(StoreCheckProfile);

StringRef FileName("dummy");
auto PathList = OptionsParser.getSourcePathList();
auto PathList = OptionsParser->getSourcePathList();
if (!PathList.empty()) {
FileName = PathList.front();
}
Expand Down Expand Up @@ -433,7 +440,7 @@ int clangTidyMain(int argc, const char **argv) {
ClangTidyContext Context(std::move(OwningOptionsProvider),
AllowEnablingAnalyzerAlphaCheckers);
std::vector<ClangTidyError> Errors =
runClangTidy(Context, OptionsParser.getCompilations(), PathList, BaseFS,
runClangTidy(Context, OptionsParser->getCompilations(), PathList, BaseFS,
EnableCheckProfile, ProfilePrefix);
bool FoundErrors = llvm::find_if(Errors, [](const ClangTidyError &E) {
return E.DiagLevel == ClangTidyError::Error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ class RenamerClangTidyCheckPPCallbacks : public PPCallbacks {
/// MacroDefined calls checkMacro for macros in the main file
void MacroDefined(const Token &MacroNameTok,
const MacroDirective *MD) override {
if (MD->getMacroInfo()->isBuiltinMacro())
return;
if (PP->getSourceManager().isWrittenInBuiltinFile(
MacroNameTok.getLocation()))
return;
if (PP->getSourceManager().isWrittenInCommandLineFile(
MacroNameTok.getLocation()))
return;
Check->checkMacro(PP->getSourceManager(), MacroNameTok, MD->getMacroInfo());
}

Expand Down
2 changes: 2 additions & 0 deletions clang-tools-extra/clangd/ClangdServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ ClangdServer::Options ClangdServer::optsForTest() {
Opts.StorePreamblesInMemory = true;
Opts.AsyncThreadsCount = 4; // Consistent!
Opts.TheiaSemanticHighlighting = true;
Opts.AsyncPreambleBuilds = true;
return Opts;
}

Expand All @@ -123,6 +124,7 @@ ClangdServer::Options::operator TUScheduler::Options() const {
Opts.RetentionPolicy = RetentionPolicy;
Opts.StorePreamblesInMemory = StorePreamblesInMemory;
Opts.UpdateDebounce = UpdateDebounce;
Opts.AsyncPreambleBuilds = AsyncPreambleBuilds;
return Opts;
}

Expand Down
3 changes: 3 additions & 0 deletions clang-tools-extra/clangd/ClangdServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ class ClangdServer {

/// Cached preambles are potentially large. If false, store them on disk.
bool StorePreamblesInMemory = true;
/// Reuse even stale preambles, and rebuild them in the background.
/// This improves latency at the cost of accuracy.
bool AsyncPreambleBuilds = false;

/// If true, ClangdServer builds a dynamic in-memory index for symbols in
/// opened files and uses the index to augment code completion results.
Expand Down
Loading