Skip to content

LLVM and SPIRV-LLVM-Translator pulldown (WW39) #2505

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,097 commits into from
Sep 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1097 commits
Select commit Hold shift + click to select a range
6e85c3d
[NFC][Regalloc] accessors for 'reg' and 'weight'
mtrofin Sep 15, 2020
b2c931e
[X86] EmitInstrWithCustomInserter - remove redundant getDebugLoc() ca…
RKSimon Sep 16, 2020
f054617
[ASTMatchers] Add missing definition for decompositionDecl
d0k Sep 16, 2020
06d058a
[AMDGPU] Corrected directive to use for ELF weak refs
dpreobra Sep 16, 2020
09c3424
[NPM] Translate alias analysis into require<> as well
aeubanks Sep 16, 2020
15e9a6c
[llvm][CodeGen] Do not scalarize `llvm.masked.[gather|scatter]` opera…
Sep 8, 2020
cb64455
[AMDGPU] Remove obsolete comment
jayfoad Sep 16, 2020
b5c3efe
[ARM][MVE] Tail-predication: predicate new elementcount checks on for…
Sep 16, 2020
c27b64b
[Coro][NewPM] Handle llvm.coro.prepare.retcon in NPM coro-split pass
aeubanks Sep 12, 2020
66df989
[libfuzzer] Reduce default verbosity when printing large mutation seq…
mhlakhani Sep 16, 2020
4cff1b4
Do not apply calling conventions to MSVC entry points
elizabethandrews Sep 14, 2020
8d8a496
LocalStackSlotAllocation: Swap order of check
arsenm Sep 10, 2020
deae5e5
AMDGPU: Add baseline test for incorrect SP access
arsenm Sep 10, 2020
3672489
AMDGPU: Clear offset register when using local stack area
arsenm Sep 10, 2020
e47d292
Include (Type|Symbol)Record.h less
rnk Sep 16, 2020
738c73a
RegAllocFast: Make self loop live-out heuristic more aggressive
arsenm Aug 31, 2020
39faf42
[libc++] Ensure streams are initialized early
ldionne May 14, 2020
f9e6d1e
Re-land: Add new hidden option -print-changed which only reports chan…
jamieschmeiser Sep 16, 2020
50f4c7c
[llvm-nm] Use aggregate initialization instead of memset zero
MaskRay Sep 16, 2020
b011611
[SLP] add tests for reduction ordering; NFC
rotateright Sep 16, 2020
c6a82fd
ValueEnumerator.cpp - remove duplicate includes. NFCI.
RKSimon Sep 16, 2020
69682f9
InterferenceCache.cpp - remove duplicate includes. NFCI.
RKSimon Sep 16, 2020
73d0206
raw_ostream.cpp - remove duplicate includes. NFCI.
RKSimon Sep 16, 2020
8f7d6b2
DwarfUnit.h - remove unnecessary includes. NFCI.
RKSimon Sep 16, 2020
c4e589b
[GISel] Add new combines for unary FP instrs with constant operand
mkitzan Aug 22, 2020
ebf267b
[Sema][MSVC] warn at dynamic_cast/typeid when /GR- is given
ZequanWu Sep 15, 2020
f3c2e0b
[libFuzzer] Enable entropic by default.
morehouse Sep 15, 2020
77a01d9
Sema: add support for `__attribute__((__swift_bridge__))`
compnerd Sep 9, 2020
4d43734
fix test no-rtti.cpp
ZequanWu Sep 16, 2020
4d4f092
[clang][codegen] Skip adding default function attributes on intrinsics.
darkbuck Sep 16, 2020
6ad33d8
[AArch64][GlobalISel] Make G_BUILD_VECTOR os <16 x s8> legal.
aemerson Sep 16, 2020
b3d33f5
[gn build] make "all" target build
nico Sep 16, 2020
88bdcbb
GlobalISel: Lift store value widening restriction
arsenm Aug 22, 2020
14e55f8
[obj2yaml] - Match ".stack_size" with the original section name, and …
rlavaee Sep 16, 2020
f723d19
Add '<' meta command to read in code from external file
pcbeard Jul 30, 2020
dbde396
[UpdateTestChecks][NFC] Fix spelling
jdoerfert Aug 14, 2020
6a02932
[OpenMP][FIX] Do not crash trying to print a missing (demangled) user…
jdoerfert Aug 13, 2020
05fd04e
[OpenMP][FIX] Do not drop a '$' while demangling declare variant names
jdoerfert Aug 13, 2020
5c63ae1
[OpenMP] Support nested OpenMP context selectors (declare variant)
jdoerfert Aug 13, 2020
c4b7a1d
[OpenMP] Context selector extensions for return value overloading
jdoerfert Aug 12, 2020
9765220
[OpenMP] Overload `std::isnan` and friends multiple times for the GPU
jdoerfert Aug 12, 2020
5c1084e
[OpenMP] Context selector extensions for template functions
jdoerfert May 31, 2020
56069b5
[OpenMP] Support `std::complex` math functions in target regions
jdoerfert Aug 6, 2020
91f503c
[AMDGPU] gfx1030 RT support
rampitec Sep 16, 2020
f80f251
Revert "[obj2yaml] - Match ".stack_size" with the original section na…
rlavaee Sep 16, 2020
2240ca0
[SystemZ][z/OS] Set aligned allocation unavailable by default for z/OS
fanbo-meng Sep 16, 2020
15c378f
[gn build] unconfuse sync script about "sources = []" in clang/lib/He…
nico Sep 16, 2020
6859d95
Fix build.
darkbuck Sep 16, 2020
94d9120
[InstCombine] Add test for infinite combine loop (NFC)
nikic Sep 16, 2020
0bb06f2
[InstSimplify] Clarify SimplifyWithOpReplaced() return value
nikic Sep 16, 2020
222bf3f
Reapply [InstCombine] Simplify select operand based on equality condi…
nikic Sep 10, 2020
dd3c846
Merge from 'sycl' to 'sycl-web'
Sep 16, 2020
2a078a9
[gn build] Port 56069b5c71c
llvmgnsyncbot Sep 16, 2020
ce0eb81
[UpdateTestChecks] Allow $ in function names
greened Jan 23, 2020
7af4f44
[aarch64][tests] Add tests which show current lack of implicit null s…
preames Sep 16, 2020
dee4686
[flang][msvc] Work around if constexpr (false) evaluation. NFC.
Meinersbur Sep 16, 2020
65ef2e5
[X86] Add test case for a masked load mask becoming all ones after ty…
topperc Sep 16, 2020
89ee4c0
[DAGCombiner] Teach visitMLOAD to replace an all ones mask with an un…
topperc Sep 16, 2020
c57df3d
[lsan] Share platform allocator settings between ASan and LSan
petrhosek Sep 16, 2020
e3fe203
Revert "[lsan] Share platform allocator settings between ASan and LSan"
petrhosek Sep 16, 2020
9a0d1b6
[ORC] Add operations to create and lookup JITDylibs to OrcV2 C bindings.
lhames Sep 16, 2020
bebfc3b
Revert "Do not apply calling conventions to MSVC entry points"
amykhuang Sep 16, 2020
b2d2750
Merge from 'master' to 'sycl-web' (#1)
vmaksimo Sep 16, 2020
a45cdb3
[AMDGPU] gfx1030 test update. NFC.
rampitec Sep 16, 2020
cd13476
[NFC][LSAN] Change SuspendedThreadsList interface
vitalybuka Sep 16, 2020
15f0ad2
[ELF] Bump the limit of thunk creation passes from 10 to 15
MaskRay Sep 16, 2020
aa2ba67
[NFC][regalloc] type LiveInterval::reg() as Register
mtrofin Sep 16, 2020
b1cb9d6
[obj2yaml] - Match ".stack_size" with the original section name, and …
rlavaee Sep 16, 2020
dd67581
[lldb/test] Enable faulthandler in dotest
rupprecht Sep 16, 2020
ee5519d
[NFC] Refactor DiagnosticBuilder and PartialDiagnostic
yxsamliu Jul 22, 2020
23bef7e
[libunwind] Support for leaf function unwinding.
DanielKristofKiss Sep 16, 2020
dd3eb3f
[flang] Substrings with lower bound greater than upper bound
psteinfeld Sep 16, 2020
1321160
Disable a large test for EXPENSIVE_CHECKS and debug build
jasonliudev Sep 16, 2020
95e43f8
[AArch64] Add -mmark-bti-property flag.
DanielKristofKiss Sep 16, 2020
0c6a56e
[gn build] (manually) port 1321160a2
nico Sep 16, 2020
4e4c89b
[EarlyCSE] Simplify max/min pattern matching. NFC.
darkbuck Sep 16, 2020
d89c5ae
[Flang] Fixed installation permission of the "binary" flang
shiltian Sep 16, 2020
5b205ff
Commenting out atomics with padding to unbreak MSAN tests
ogiroux Sep 16, 2020
60e244f
Revert "[AArch64] Add -mmark-bti-property flag."
DanielKristofKiss Sep 16, 2020
f70baaf
[AArch64] Add -mmark-bti-property flag.
DanielKristofKiss Sep 16, 2020
e30371d
[DAGCombiner] Teach visitMSTORE to replace an all ones mask with an u…
topperc Sep 16, 2020
344a3d0
[MemorySSA] Rename uses in blocks with Phis.
alinas Sep 15, 2020
905b9ca
Canonicalize declaration pointers when forming APValues.
zygoloid Sep 2, 2020
7337f29
PR47555: Inheriting constructors are implicitly definable.
zygoloid Sep 17, 2020
f4ea0f9
[NewPM] Port -print-alias-sets to NPM
aeubanks Sep 15, 2020
b04c1a9
[IRSim] Adding IR Instruction Mapper
AndrewLitteken Sep 17, 2020
b76f523
[mlir] expose affine map to C API
zhanghb97 Sep 14, 2020
436a43a
[gn build] Port b04c1a9d312
llvmgnsyncbot Sep 17, 2020
fb1abe0
[libunwind][DWARF] Fix end of .eh_frame calculation
rprichard Sep 16, 2020
5782ab0
[MachineSink] add one more mir case - nfc
Sep 17, 2020
ebfbdeb
[PowerPC] Fix store-fptoi combine of f128 on Power8
ecnelises Sep 17, 2020
c140322
Use zu rather than llu format specifier for size_t (-Wformat warning …
echristo Sep 16, 2020
6a07f1e
debug_rnglists/symbolizing: reduce memory usage by not caching rnglists
dwblaikie Sep 15, 2020
a895040
Revert "[IRSim] Adding IR Instruction Mapper"
sstamenova Sep 17, 2020
0dd4d70
[gn build] Port a895040eb02
llvmgnsyncbot Sep 17, 2020
1120131
Flush bitcode incrementally for LTO output
stephan-yichao-zhao Sep 12, 2020
352a55e
Add the header of std::min
stephan-yichao-zhao Sep 17, 2020
aec80c5
Fix the arguments of std::min
stephan-yichao-zhao Sep 17, 2020
57dd927
[lldb] Return FileSP and StreamFileSP by value in IOHandler (NFC)
JDevlieghere Sep 17, 2020
c9af340
Add __divmodti4 to match libgcc.
topperc Sep 17, 2020
e69092b
[llvm-cov gcov][test] Move tests to gcov/
MaskRay Sep 17, 2020
027d47d
[DebugInfo] Simplify DIEInteger::SizeOf().
igorkudrin Sep 17, 2020
4ce84b0
[mlir][spirv] Add GroupNonUniformBroadcastOp
abialas1 Sep 17, 2020
c16417f
[llvm-cov gcov] Add --demangled-names (-m)
MaskRay Sep 17, 2020
b056292
[mlir] Remove redundant shape.cstr_broadcastable canonicalization.
tpopp Sep 15, 2020
a2fb544
[SelectionDAG] Check any use of negation result before removal
ecnelises Sep 17, 2020
6637d72
[Lint] Add check for intrinsic get.active.lane.mask
Sep 17, 2020
d49707c
[AMDGPU] Generate test checks for splitkit-copy-bundle.mir
jayfoad Sep 16, 2020
6f6d389
[SplitKit] Only copy live lanes
jayfoad Sep 16, 2020
aadf55d
[NFC] EliminateDuplicatePHINodes(): small-size optimization: if there…
LebedevRI Sep 17, 2020
b03c2b8
Revert "Re-land: Add new hidden option -print-changed which only repo…
dyung Sep 17, 2020
e742845
Merge from 'sycl' to 'sycl-web'
Sep 17, 2020
a9cbe5c
[X86] Fix stack alignment on 32-bit Solaris/x86
rorth Sep 17, 2020
3c74232
Merge from 'master' to 'sycl-web' (#1)
vmaksimo Sep 17, 2020
c687af0
[lldb] Don't send invalid region addresses to lldb server
DavidSpickett Sep 15, 2020
9218f92
[clang][aarch64] ACLE: Support implicit casts between GNU and SVE vec…
c-rhodes Sep 11, 2020
347d59b
[mlir][Linalg] Convolution tiling added to ConvOp vectorization pass
limo1996 Sep 17, 2020
4ae1bb1
[AsmPrinter] Remove orphan DwarfUnit::shareAcrossDWOCUs declaration. …
RKSimon Sep 16, 2020
8adf92e
[AMDGPU] Remove orphan SITargetLowering::LowerINT_TO_FP declaration. …
RKSimon Sep 16, 2020
550b1a6
[AsmPrinter] DwarfDebug - use DebugLoc const references where possibl…
RKSimon Sep 16, 2020
f108e71
[MLIR] Turns swapId into a FlatAffineConstraints member func
kumasento Sep 16, 2020
504697e
[gn build] (manually) port c9af34027bc
nico Sep 17, 2020
68cfb02
[mlir] turn clang-format back on in C API test
ftynse Sep 17, 2020
a615226
[ARM] Extra fp16 bitcast tests. NFC
davemgreen Sep 17, 2020
71f2375
DwarfFile.h - remove unnecessary includes. NFCI.
RKSimon Sep 17, 2020
572e542
DwarfStringPool.cpp - remove unnecessary StringRef include. NFCI.
RKSimon Sep 17, 2020
fece148
[ARM] Additional tests for qr intrinsics in loops. NFC
davemgreen Sep 17, 2020
c65627a
Revert "[lldb] Don't send invalid region addresses to lldb server"
DavidSpickett Sep 17, 2020
97a476e
[NFC][ARM] Tail fold test changes
sparker-arm Sep 17, 2020
ed53ff4
SymbolizableObjectFile.h - remove unnecessary includes. NFCI.
RKSimon Sep 17, 2020
abe0d85
MetadataLoader.cpp - remove unnecessary StringRef include. NFCI.
RKSimon Sep 17, 2020
40e771c
[clang-format][regression][PR47461] ifdef causes catch to be seen as …
mydeveloperday Sep 17, 2020
bb037c2
[ConstraintSystem] Remove local variable that is set but not read [NFC]
mikaelholmen Sep 17, 2020
aa896a0
Remove unnecessary forward declarations. NFCI.
RKSimon Sep 17, 2020
788c7d2
[clang][docs] Fix documentation of -O
jrtc27 Sep 17, 2020
03783f1
[SLP] sort candidates to increase chance of optimal compare reduction
rotateright Sep 17, 2020
0dca1ac
[llvm-readelf/obj][test] - Document what we print in various places f…
Sep 15, 2020
279943e
[obj2yaml] - Don't emit EM_NONE.
Sep 17, 2020
f7185b2
[SVE][CodeGen] Lower floating point -> integer conversions
kmclaughlin-arm Sep 17, 2020
9dc1e53
[MemorySSA] Add another loop clobber test case.
fhahn Sep 16, 2020
deb8f8b
[ARM][MachineOutliner] Add missing testcase for calls.
yroux Sep 17, 2020
f026812
InstCombiner.h - remove unnecessary KnownBits.h include. NFCI.
RKSimon Sep 17, 2020
e4a198e
[AMDGPU] Bump to ROCm 3.7 dependency hip_hcc->amdhip64
jerryyin Sep 16, 2020
67ae46c
SafeStackLayout.cpp - remove unnecessary StackLifetime.h include. NFCI.
RKSimon Sep 17, 2020
69516dd
[compiler-rt] Avoid pulling libatomic to sanitizer tests
krytarowski Sep 17, 2020
d566771
ValueList.cpp - remove unnecessary includes. NFCI.
RKSimon Sep 17, 2020
46e5906
DwarfExpression.cpp - remove unnecessary includes. NFCI.
RKSimon Sep 17, 2020
85ba2f1
LiveDebugVariables.cpp - remove unnecessary Compiler.h include. NFCI.
RKSimon Sep 17, 2020
85e578f
[compiler-rt] Replace INLINE with inline
krytarowski Sep 17, 2020
9339f68
[compiler-rt] [tsan] [netbsd] Catch unsupported LONG_JMP_SP_ENV_SLOT
krytarowski Sep 17, 2020
0efbb70
[AMDGPU] should expand ROTL i16 to shifts.
alex-t Sep 16, 2020
72c5fee
[compiler-rt] [netbsd] Include <sys/dkbad.h>
krytarowski Sep 17, 2020
e7de267
[compiler-rt] [hwasan] Replace INLINE with inline
krytarowski Sep 17, 2020
5e0ded2
[mlir][Standard] Canonicalize chains of tensor_cast operations
Sep 16, 2020
7b2dd58
[compiler-rt] [scudo] Fix typo in function attribute
krytarowski Sep 17, 2020
34b27b9
[ARM] Sink splats to MVE intrinsics
davemgreen Sep 17, 2020
c3492a1
[amdgpu] Lower SGPR-to-VGPR copy in the final phase of ISel.
darkbuck Sep 9, 2020
a3c28cc
[libc++] Remove some workarounds for missing variadic templates
ldionne Jul 30, 2020
5b533d6
[Coroutine] Fix a bug where Coroutine incorrectly spills phi and invo…
lxfind Sep 17, 2020
d5ce823
[OpenMP 5.0] Fix user-defined mapper privatization in tasks
alexey-bataev Sep 16, 2020
559f919
[DFSan] Add bcmp wrapper.
morehouse Sep 17, 2020
3ee87a9
Precommit test updates
snnw Sep 4, 2020
d5fd3d9
[AArch64] Match pairwise add/fadd pattern
snnw Sep 12, 2020
40df06c
[CUDA][HIP] Defer overloading resolution diagnostics for host device …
yxsamliu Sep 16, 2020
72a4a47
[ARM] Add more MVE postinc distribution tests. NFC
davemgreen Sep 17, 2020
6d3cabd
[mlir][openacc] Change operand type from index to AnyInteger in paral…
clementval Sep 17, 2020
f0e028f
[flang][openacc] Lower clauses on loop construct to OpenACC dialect
clementval Sep 17, 2020
7688027
[Test] Add tests showing that IndVars cannot prove (X + 1 > X)
xortator Sep 17, 2020
df017fd
Revert "[DFSan] Add bcmp wrapper."
morehouse Sep 17, 2020
62ea9a2
Merge from 'sycl' to 'sycl-web'
Sep 17, 2020
2a56a0b
ModuloSchedule.cpp - remove unnecessary includes. NFCI.
RKSimon Sep 17, 2020
7f1f89e
Fix build failure in clangd
yxsamliu Sep 17, 2020
f16abe5
[mlir][Vector] Add a folder for vector.broadcast
hanhanW Sep 17, 2020
79b21fc
[AArch64][GlobalISel] Fix bug in fewVectorElts action while legalizin…
aemerson Sep 16, 2020
7f7993e
[ARM] Expand distributing increments to also handle existing pre/post…
davemgreen Sep 17, 2020
c6ebe3f
[InstSimplify] add tests for FP constant miscompile; NFC (PR43907)
rotateright Sep 17, 2020
7d593d0
[amdgpu] Compilation fix for Release
Sep 17, 2020
1e19165
[SyntaxTree][Synthesis] Fix allocation in `createTree` for more gener…
Sep 17, 2020
50dd545
[DFSan] Add bcmp wrapper.
morehouse Sep 17, 2020
e09107a
[Sema] Introduce BuiltinAttr, per-declaration builtin-ness
tambry Sep 4, 2020
fb18202
[AMDGPU] Fix ROCm unit test memref initialization
jerryyin Sep 17, 2020
dd28254
Add missing include
adrian-prantl Sep 17, 2020
50f1d45
[PowerPC][AIX] Don't hardcode python invoke command line
Sep 17, 2020
e06914b
[VectorCombine] add test for multi-use load (PR47558); NFC
rotateright Sep 17, 2020
ddd9575
[VectorCombine] rearrange bailouts for load insert for efficiency; NFC
rotateright Sep 17, 2020
772bd8a
Revert "[CUDA][HIP] Defer overloading resolution diagnostics for host…
yxsamliu Sep 17, 2020
829d14e
Revert "[NFC] Refactor DiagnosticBuilder and PartialDiagnostic"
yxsamliu Sep 17, 2020
296e97a
[MLIR] Support for return values in Affine.For yield
avarmapml Sep 17, 2020
0602e8f
[MLIR][Affine] Add parametric tile size support for affine.for tiling
navdeepkk Sep 17, 2020
3783d3b
[X86] Don't match x87 register inline asm constraints unless the VT i…
topperc Sep 17, 2020
48a23bc
[VectorCombine] limit load+insert transform to one-use
rotateright Sep 17, 2020
bea7749
[AArch64][GlobalISel] Make <8 x s16> and <16 x s8> legal for shifts.
aemerson Sep 17, 2020
7d5b103
[AArch64][GlobalISel] Widen G_EXTRACT_VECTOR_ELT element types if < 8b.
aemerson Sep 17, 2020
1e5b7e9
[PDB] Split TypeServerSource and extend type index map lifetime
rnk Jun 4, 2020
a35c7f3
[SVE][WIP] Implement lowering for fixed length VSELECT to Scalable
Sep 17, 2020
7e4c6fb
[IRSim] Adding IR Instruction Mapper
AndrewLitteken Sep 17, 2020
667762c
[gn build] Port 7e4c6fb8546
llvmgnsyncbot Sep 17, 2020
c145a1c
AArch64::ArchKind's underlying type is uint64_t
jroelofs Sep 17, 2020
5813fca
[Lsan] Use fp registers to search for pointers
vitalybuka Sep 17, 2020
a4bb71b
Disable hoisting MI to hotter basic blocks when using pgo
VictorHuangIBM Sep 17, 2020
51973a6
[SCEV] Add test cases for max BTC with loop guard info.
fhahn Sep 17, 2020
59855b9
[GVN] Add additional assume tests (NFC)
nikic Sep 17, 2020
91ce8e1
[GVN] Use that assume(!X) implies X==false (PR47496)
nikic Sep 17, 2020
1cee33e
[LoopUnrollAndJam] Allow unroll and jam loops forced by user.
Sep 17, 2020
05d4c4e
[InstCombine] Canonicalize SPF_ABS to abs intrinc
nikic Sep 5, 2020
53ba045
[llvm-install-name-tool] Update the command-line guide
Sep 11, 2020
179a22e
[NewPM] Fix pr45927.ll under NPM
aeubanks Sep 17, 2020
a0017c2
[MemorySSA] Be more conservative when traversing MemoryPhis.
fhahn Sep 17, 2020
0ff28fa
Support dwarf fission for wasm object files
dschuff Aug 8, 2020
cab780a
[NFC] Test Commit
zhaoshiz Sep 17, 2020
99e865b
[TargetRegisterInfo] Add a couple of target hooks for the greedy regi…
Sep 17, 2020
f2f0474
[test] Fix FullUnroll.ll
aeubanks Aug 24, 2020
b04c181
[AArch64] Enable implicit null check transformation
preames Sep 17, 2020
1c46647
[RISCV] Support Shadow Call Stack
zhaoshiz Mar 27, 2020
8069844
[MLIR][TableGen] Automatic detection and elimination of redundant met…
jurahul Sep 17, 2020
b4013f9
[MemorySSA] Fix an unused variable warning [NFC]
preames Sep 17, 2020
2c3bc91
[PowerPC] Implement Vector Count Mask Bits builtins in LLVM/Clang
amy-kwan Sep 16, 2020
6f3c099
[PowerPC] Add Set Boolean Condition Instruction Definitions and MC Tests
amy-kwan Sep 17, 2020
196e2f9
[AArch64][GlobalISel] clang-format AArch64LegalizerInfo.cpp. NFC.
aemerson Sep 17, 2020
f5898f8
[AArch64][GlobalISel] Make G_STORE <8 x s8> legal.
aemerson Sep 17, 2020
4926a5e
[lldb] Clarify docstring for SBBlock::IsInlined, NFC
vedantk Sep 17, 2020
bae6374
[mlir][shape] Add `shape.cstr_require %bool`
silvasean Sep 17, 2020
ea237e2
[MLIR] Fix build failure due to https://reviews.llvm.org/D87059.
jurahul Sep 17, 2020
27f3454
[scudo/standalone] Don't define test main function for Fuchsia
frobtech Sep 17, 2020
03358be
[NFC][Lsan] Fix zero-sized array compilation error
vitalybuka Sep 18, 2020
55edf70
[NFC] clang-format one line
vitalybuka Sep 18, 2020
2ffaa9a
[sanitizer] Add facility to print the full StackDepot
teresajohnson Sep 16, 2020
f55963d
[libc] Add implementation for hypotf
lntue Aug 13, 2020
6e475e1
Revert "[sanitizer] Add facility to print the full StackDepot"
teresajohnson Sep 18, 2020
992698c
[AArch64] Emit zext move when the source of the zext is AssertZext or…
wweiandrew Sep 18, 2020
fb92f86
[X86] Add some demanded bits test cases for PDEP with constant mask
topperc Sep 18, 2020
9d54b16
This is a test commit
abialas1 Sep 18, 2020
5a73346
Revert "This is a test commit"
abialas1 Sep 18, 2020
4dcd896
Merge from 'master' to 'sycl-web' (#1)
mlychkov Sep 18, 2020
d7aa7e9
Merge from 'sycl' to 'sycl-web' (#1)
Sep 18, 2020
9f982ee
Merge from 'master' to 'sycl-web' (#21)
mlychkov Sep 18, 2020
c717933
Merge from 'sycl' to 'sycl-web' (#2)
Sep 18, 2020
d1ebfa2
Merge from 'master' to 'sycl-web' (#46)
mlychkov Sep 18, 2020
80b8fa9
Merge from 'sycl' to 'sycl-web' (#1)
Sep 18, 2020
5e33dfb
Merge from 'master' to 'sycl-web' (#1)
mlychkov Sep 18, 2020
ab5cbf8
Merge remote-tracking branch 'otcshare_llvm/sycl-web' into llvmspirv_…
vmaksimo Sep 21, 2020
e88dcfc
Fix merge issue that caused IO pipe tests breakage
vmaksimo Sep 21, 2020
cd9e053
Refactor transOCLBuiltinFromExtInst
AlexeySachkov Sep 10, 2020
6476837
Adjust Travis CI testing scope (#739)
AlexeySachkov Sep 15, 2020
911be97
Avoid verifying module in release builds (#712)
AlexeySachkov Sep 16, 2020
bee4aa0
Cleanup LIT tests a bit (#747)
AlexeySachkov Sep 16, 2020
7308f85
OpGroupWaitEvents doesn't require the Group capability
karolherbst Aug 27, 2020
5b563a0
Support missing DWARF opcodes (#679)
Sep 18, 2020
9c06d42
Fix debug info of work-item builtin translation (#745)
wenju-he Sep 21, 2020
5730c6a
[SYCL] XFAIL sub_group shuffle tests on GPU
vmaksimo Sep 28, 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
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ d8f0e6caa91e230a486c948ab643174e40bdf215

# Remove line-endings added by r320089. NFC.
100a0eedc00b2bf48bcdc6c209c000745a4a0e48

# Cleanup __config indention. NFC.
2b772b930e097ed6f06d698a51e291c7fd318baa
3 changes: 3 additions & 0 deletions clang-tools-extra/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
include(CMakeDependentOption)

option(CLANG_TIDY_ENABLE_STATIC_ANALYZER
"Include static analyzer checks in clang-tidy" ON)

add_subdirectory(clang-apply-replacements)
add_subdirectory(clang-reorder-fields)
add_subdirectory(modularize)
Expand Down
13 changes: 10 additions & 3 deletions clang-tools-extra/clang-tidy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ set(LLVM_LINK_COMPONENTS
Support
)

configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/clang-tidy-config.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/clang-tidy-config.h)
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})

add_clang_library(clangTidy
ClangTidy.cpp
ClangTidyCheck.cpp
Expand Down Expand Up @@ -34,7 +39,7 @@ clang_target_link_libraries(clangTidy
clangToolingCore
)

if(CLANG_ENABLE_STATIC_ANALYZER)
if(CLANG_TIDY_ENABLE_STATIC_ANALYZER)
clang_target_link_libraries(clangTidy
PRIVATE
clangStaticAnalyzerCore
Expand All @@ -46,6 +51,7 @@ endif()
# If you add a check, also add it to ClangTidyForceLinker.h in this directory.
add_subdirectory(android)
add_subdirectory(abseil)
add_subdirectory(altera)
add_subdirectory(boost)
add_subdirectory(bugprone)
add_subdirectory(cert)
Expand All @@ -59,7 +65,7 @@ add_subdirectory(llvm)
add_subdirectory(llvmlibc)
add_subdirectory(misc)
add_subdirectory(modernize)
if(CLANG_ENABLE_STATIC_ANALYZER)
if(CLANG_TIDY_ENABLE_STATIC_ANALYZER)
add_subdirectory(mpi)
endif()
add_subdirectory(objc)
Expand All @@ -71,6 +77,7 @@ add_subdirectory(zircon)
set(ALL_CLANG_TIDY_CHECKS
clangTidyAndroidModule
clangTidyAbseilModule
clangTidyAlteraModule
clangTidyBoostModule
clangTidyBugproneModule
clangTidyCERTModule
Expand All @@ -91,7 +98,7 @@ set(ALL_CLANG_TIDY_CHECKS
clangTidyReadabilityModule
clangTidyZirconModule
)
if(CLANG_ENABLE_STATIC_ANALYZER)
if(CLANG_TIDY_ENABLE_STATIC_ANALYZER)
list(APPEND ALL_CLANG_TIDY_CHECKS clangTidyMPIModule)
endif()
set(ALL_CLANG_TIDY_CHECKS ${ALL_CLANG_TIDY_CHECKS} PARENT_SCOPE)
Expand Down
22 changes: 11 additions & 11 deletions clang-tools-extra/clang-tidy/ClangTidy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
#include "ClangTidyModuleRegistry.h"
#include "ClangTidyProfiling.h"
#include "ExpandModularHeadersPPCallbacks.h"
#include "clang-tidy-config.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Config/config.h"
#include "clang/Format/Format.h"
#include "clang/Frontend/ASTConsumers.h"
#include "clang/Frontend/CompilerInstance.h"
Expand All @@ -47,10 +47,10 @@
#include <algorithm>
#include <utility>

#if CLANG_ENABLE_STATIC_ANALYZER
#if CLANG_TIDY_ENABLE_STATIC_ANALYZER
#include "clang/Analysis/PathDiagnostic.h"
#include "clang/StaticAnalyzer/Frontend/AnalysisConsumer.h"
#endif // CLANG_ENABLE_STATIC_ANALYZER
#endif // CLANG_TIDY_ENABLE_STATIC_ANALYZER

using namespace clang::ast_matchers;
using namespace clang::driver;
Expand All @@ -63,7 +63,7 @@ namespace clang {
namespace tidy {

namespace {
#if CLANG_ENABLE_STATIC_ANALYZER
#if CLANG_TIDY_ENABLE_STATIC_ANALYZER
static const char *AnalyzerCheckNamePrefix = "clang-analyzer-";

class AnalyzerDiagnosticConsumer : public ento::PathDiagnosticConsumer {
Expand Down Expand Up @@ -95,7 +95,7 @@ class AnalyzerDiagnosticConsumer : public ento::PathDiagnosticConsumer {
private:
ClangTidyContext &Context;
};
#endif // CLANG_ENABLE_STATIC_ANALYZER
#endif // CLANG_TIDY_ENABLE_STATIC_ANALYZER

class ErrorReporter {
public:
Expand Down Expand Up @@ -324,7 +324,7 @@ ClangTidyASTConsumerFactory::ClangTidyASTConsumerFactory(
}
}

#if CLANG_ENABLE_STATIC_ANALYZER
#if CLANG_TIDY_ENABLE_STATIC_ANALYZER
static void setStaticAnalyzerCheckerOpts(const ClangTidyOptions &Opts,
AnalyzerOptionsRef AnalyzerOptions) {
StringRef AnalyzerPrefix(AnalyzerCheckNamePrefix);
Expand Down Expand Up @@ -369,7 +369,7 @@ static CheckersList getAnalyzerCheckersAndPackages(ClangTidyContext &Context,
}
return List;
}
#endif // CLANG_ENABLE_STATIC_ANALYZER
#endif // CLANG_TIDY_ENABLE_STATIC_ANALYZER

std::unique_ptr<clang::ASTConsumer>
ClangTidyASTConsumerFactory::CreateASTConsumer(
Expand Down Expand Up @@ -424,7 +424,7 @@ ClangTidyASTConsumerFactory::CreateASTConsumer(
if (!Checks.empty())
Consumers.push_back(Finder->newASTConsumer());

#if CLANG_ENABLE_STATIC_ANALYZER
#if CLANG_TIDY_ENABLE_STATIC_ANALYZER
AnalyzerOptionsRef AnalyzerOptions = Compiler.getAnalyzerOpts();
AnalyzerOptions->CheckersAndPackages = getAnalyzerCheckersAndPackages(
Context, Context.canEnableAnalyzerAlphaCheckers());
Expand All @@ -440,7 +440,7 @@ ClangTidyASTConsumerFactory::CreateASTConsumer(
new AnalyzerDiagnosticConsumer(Context));
Consumers.push_back(std::move(AnalysisConsumer));
}
#endif // CLANG_ENABLE_STATIC_ANALYZER
#endif // CLANG_TIDY_ENABLE_STATIC_ANALYZER
return std::make_unique<ClangTidyASTConsumer>(
std::move(Consumers), std::move(Profiling), std::move(Finder),
std::move(Checks));
Expand All @@ -453,11 +453,11 @@ std::vector<std::string> ClangTidyASTConsumerFactory::getCheckNames() {
CheckNames.emplace_back(CheckFactory.getKey());
}

#if CLANG_ENABLE_STATIC_ANALYZER
#if CLANG_TIDY_ENABLE_STATIC_ANALYZER
for (const auto &AnalyzerCheck : getAnalyzerCheckersAndPackages(
Context, Context.canEnableAnalyzerAlphaCheckers()))
CheckNames.push_back(AnalyzerCheckNamePrefix + AnalyzerCheck.first);
#endif // CLANG_ENABLE_STATIC_ANALYZER
#endif // CLANG_TIDY_ENABLE_STATIC_ANALYZER

llvm::sort(CheckNames);
return CheckNames;
Expand Down
9 changes: 7 additions & 2 deletions clang-tools-extra/clang-tidy/ClangTidyForceLinker.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYFORCELINKER_H
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYFORCELINKER_H

#include "clang/Config/config.h"
#include "clang-tidy-config.h"
#include "llvm/Support/Compiler.h"

namespace clang {
Expand All @@ -20,6 +20,11 @@ extern volatile int AbseilModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED AbseilModuleAnchorDestination =
AbseilModuleAnchorSource;

// This anchor is used to force the linker to link the AlteraModule.
extern volatile int AlteraModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED AlteraModuleAnchorDestination =
AlteraModuleAnchorSource;

// This anchor is used to force the linker to link the AndroidModule.
extern volatile int AndroidModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination =
Expand Down Expand Up @@ -90,7 +95,7 @@ extern volatile int ModernizeModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED ModernizeModuleAnchorDestination =
ModernizeModuleAnchorSource;

#if CLANG_ENABLE_STATIC_ANALYZER && \
#if CLANG_TIDY_ENABLE_STATIC_ANALYZER && \
!defined(CLANG_TIDY_DISABLE_STATIC_ANALYZER_CHECKS)
// This anchor is used to force the linker to link the MPIModule.
extern volatile int MPIModuleAnchorSource;
Expand Down
39 changes: 39 additions & 0 deletions clang-tools-extra/clang-tidy/altera/AlteraTidyModule.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//===--- AlteraTidyModule.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 "../ClangTidy.h"
#include "../ClangTidyModule.h"
#include "../ClangTidyModuleRegistry.h"
#include "StructPackAlignCheck.h"

using namespace clang::ast_matchers;

namespace clang {
namespace tidy {
namespace altera {

class AlteraModule : public ClangTidyModule {
public:
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override {
CheckFactories.registerCheck<StructPackAlignCheck>(
"altera-struct-pack-align");
}
};

} // namespace altera

// Register the AlteraTidyModule using this statically initialized variable.
static ClangTidyModuleRegistry::Add<altera::AlteraModule>
X("altera-module", "Adds Altera FPGA OpenCL lint checks.");

// This anchor is used to force the linker to link in the generated object file
// and thus register the AlteraModule.
volatile int AlteraModuleAnchorSource = 0;

} // namespace tidy
} // namespace clang
22 changes: 22 additions & 0 deletions clang-tools-extra/clang-tidy/altera/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
set(LLVM_LINK_COMPONENTS
FrontendOpenMP
support
)

add_clang_library(clangTidyAlteraModule
AlteraTidyModule.cpp
StructPackAlignCheck.cpp

LINK_LIBS
clangTidy
clangTidyUtils
)

clang_target_link_libraries(clangTidyAlteraModule
PRIVATE
clangAnalysis
clangAST
clangASTMatchers
clangBasic
clangLex
)
Loading