Skip to content

Sync to llvm fc40cbd9d8 #135

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 4,229 commits into from
May 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4229 commits
Select commit Hold shift + click to select a range
98ca8da
Re-reland "[Option] Fix PR37006 prefix choice in findNearest"
nico Apr 30, 2019
965d130
[X86] Initial cleanups on the FixupLEAs pass. Separate Atom LEA creat…
topperc Apr 30, 2019
3958719
[X86] If PreprocessISelDAG reorders a load before a call, make sure w…
topperc Apr 30, 2019
f721230
Enable x86 builds
jonathanmetzman Apr 30, 2019
6fa864b
Fix issues with testing for i386
jonathanmetzman Apr 30, 2019
2697664
[libFuzzer] Enable for i386
jonathanmetzman Apr 30, 2019
1fbc611
fix comment
jonathanmetzman Apr 30, 2019
d610849
change order
jonathanmetzman Apr 30, 2019
5a271cd
remove stale comment
jonathanmetzman Apr 30, 2019
17bd74d
remove extra zeros
jonathanmetzman Apr 30, 2019
7a2ce37
fix broken test
jonathanmetzman Apr 30, 2019
999bb5a
Reland "[compiler-rt] Simple crtbegin.o and crtend.o implementation"
petrhosek Apr 30, 2019
3ec1c51
[AArch64] add more tests for constant folding failures; NFC
rotateright Apr 30, 2019
4e6fd3b
Add CxxModuleHandler to Xcode project
JDevlieghere Apr 30, 2019
4469701
AMDGPU: Enable _Float16
yxsamliu Apr 30, 2019
ea349f3
[SimplifyLibCalls] Clean up code (NFC)
Apr 30, 2019
71aa675
Support overaligned types in `aligned_storage`.
EricWF Apr 30, 2019
cad3180
[X86] Remove if that's always true
topperc Apr 30, 2019
9e67d12
Add requires amdgpu-registered-target for amdgpu-float16.cpp
yxsamliu Apr 30, 2019
1ca7461
[OpenMP] Eliminate some compiler warnings
jpeyton52 Apr 30, 2019
3a7532e
[WebAssembly] Support f16 libcalls
Apr 30, 2019
71abe28
[OpenMP] Add OpenMP 5.0 nonmonotonic code
jpeyton52 Apr 30, 2019
3b5b9d0
[WebAssembly] Support EXPLICIT_NAME symbols in llvm-readobj
Apr 30, 2019
b498929
[Driver] Support compiler-rt crtbegin.o/crtend.o for Linux
petrhosek Apr 30, 2019
e7fa09e
Fix stack-use-after free after r359580
nico Apr 30, 2019
397ca2f
[WebAssembly] Fix test after r359602
Apr 30, 2019
31dbbf1
[compiler-rt][builtins][sanitizers] Update compiler-rt test cases for
amy-kwan Apr 30, 2019
07ab4e7
[X86][SSE] Fold extract_subvector(extend(x)) -> extend_vector_inreg(x)
RKSimon Apr 30, 2019
eeae45d
[NFC][InlineCost] cleanup - comments, overflow handling.
Apr 30, 2019
f3ee977
[libFuzzer] Replace -seed_corpus to better support fork mode on Win
jonathanmetzman Apr 30, 2019
5642c3f
Revert r359325 "[NFC][Sanitizer] Change "return type" of INTERCEPT_FU…
rnk Apr 30, 2019
998b97f
[llvm-profdata] Add overlap command to compute similarity b/w two pro…
xur-llvm Apr 30, 2019
88816bd
[ORC][JITLink] Name in-memory compiled objects after their source mod…
lhames Apr 30, 2019
d407b4b
[JITLink] Add debugging output to print resolved external atoms.
lhames Apr 30, 2019
4e1ac95
[PassManagerBuilder] Add option for interleaved loops, for loop vecto…
alinas Apr 30, 2019
a9b9ab8
Set LoopInterleaved in the PassManagerBuilder.
alinas Apr 30, 2019
6435102
Fix a few -Werror warnings:
echristo Apr 30, 2019
7a76e2b
Add an include of Module since we actually access it now and remove
echristo Apr 30, 2019
287908f
[llvm-profdata] Fix indentation error. NFC
xur-llvm Apr 30, 2019
c239eda
[libFuzzer] add MagicSeparatorTest
kcc Apr 30, 2019
a632294
[AMDGPU] gfx1010 VMEM and SMEM implementation
rampitec Apr 30, 2019
ba48a2c
[AliasAnalysis/NewPassManager] Invalidate AAManager less often.
alinas Apr 30, 2019
adb4198
Remove two unnecessary wrappers of canPassInRegisters
rnk Apr 30, 2019
905e60c
[libFuzzer] temporarily disable a test on windows, where there is no …
kcc Apr 30, 2019
b1f9577
[llvm-profdata] Fix indentation error in docs. NFC.
xur-llvm Apr 30, 2019
4637e15
[ORC] Move SimpleCompiler/ConcurrentIRCompiler definitions into a .cp…
lhames Apr 30, 2019
b468320
[MemorySSA] Invalidate MemorySSA if AA or DT are invalidated.
alinas Apr 30, 2019
d39fbc7
Variable auto-init: don't initialize aggregate padding of all aggregates
jfbastien Apr 30, 2019
8e7a05a
[WebAssembly] Test the "wasm32-wasi" triple
Apr 30, 2019
0b0d13a
[WebAssembly] Use the "wasm32-wasi" triple in tests
Apr 30, 2019
84ea3f2
[sanitizer_common] Added 64-bit signed flag parser.
hctim Apr 30, 2019
40f98d4
Added test.
hctim Apr 30, 2019
84e54eb
[InstCombine] Limit a vector demanded elts rule which was producing i…
preames Apr 30, 2019
6898781
[WebAssembly] Update expectations for gcc torture tests
sbc100 Apr 30, 2019
bc5fff3
gn build: Merge r359626
nico Apr 30, 2019
cdf26f1
Fix auto-init test
jfbastien Apr 30, 2019
2408736
gn build: Fix build on macOS after r359570 / r359527
nico Apr 30, 2019
c0806e0
[libFuzzer] Fix failing test: sigint.test
jonathanmetzman Apr 30, 2019
aa1f2c5
[llvm-objcopy] Simplify SHT_NOBITS -> SHT_PROGBITS promotion
MaskRay May 1, 2019
db555ab
Make some comments that were meant to be for public documentation
echristo May 1, 2019
a5147e0
[libFuzzer] Disable i386 on non-Linux platforms
jonathanmetzman May 1, 2019
3740ca1
Fix a bunch of unordered container tests that were failing when _LIBC…
mclow May 1, 2019
3181b87
[JITLink] Make sure we explicitly deallocate memory on failure.
lhames May 1, 2019
a890919
[compiler-rt] Rework the object build support
petrhosek May 1, 2019
10e4b86
[CMake] Correct lldbPluginProcessPOSIX dependencies
bulbazord May 1, 2019
738697e
[compiler-rt] Pass sysroot and disable pedantic for crtbegin.o/crtend.o
petrhosek May 1, 2019
9502e40
Delete outdated comment about DISubprogram. NFC
MaskRay May 1, 2019
fccb505
Revert "[llvm] r359313 - [PowerPC] Update P9 vector costs for insert/…
dlj-NaN May 1, 2019
e29e30b
[llvm-readobj] Change -long-option to --long-option in tests. NFC
MaskRay May 1, 2019
ad3faad
[compiler-rt] Cleanup the --target and --sysroot handling
petrhosek May 1, 2019
b159906
[test] Change llvm-readobj -long-option to --long-option or well-know…
MaskRay May 1, 2019
97c17e8
[llvm-readobj] llvm-readobj --elf-output-style=GNU => llvm-readelf. NFC
MaskRay May 1, 2019
4672e52
[llvm-readobj] llvm-readobj --elf-output-style=GNU => llvm-readelf
MaskRay May 1, 2019
dbe1c4a
lib/Header: Fix Visual Studio builds try #2
tstellar May 1, 2019
99055b9
Use __extension__ to suppress __EH_FRAME_LIST__ warnings
MaskRay May 1, 2019
f80c4b6
[libcxx] Move CMake file to src, avoid using globs
petrhosek May 1, 2019
26676c8
Fix test/tools/llvm-readobj/mips-plt.test
MaskRay May 1, 2019
dd66ace
[X86FixupLEAs] Hoist the calls to isLEA out of the 3 separate functio…
topperc May 1, 2019
3e28075
[compiler-rt] Use correct spelling of the -Wno-pedantic variable
petrhosek May 1, 2019
085bbe2
[gold] Fix two readelf tests after rL359649
MaskRay May 1, 2019
6afcdcf
[llvm-readobj] Change -t to --symbols in tests. NFC
MaskRay May 1, 2019
324ace4
Change llvm-{objdump,readobj} -long-option to --long-option or well-k…
MaskRay May 1, 2019
f5345a3
[yaml2obj] - Report when unknown section is referenced from program h…
May 1, 2019
c53f8db
Removed unnecessary conversion to StringRef
Teemperor May 1, 2019
290be2a
Fix build URL in new LLDB website
Teemperor May 1, 2019
99eefe9
[X86][SSE] Extract i1 elements from vXi1 bool vectors
RKSimon May 1, 2019
a7d107a
[X86] SimplifyDemandedVectorEltsForTargetNode - pull out vector halvi…
RKSimon May 1, 2019
5387c2c
[llvm-objdump] Print newlines before and after "Disassembly of sectio…
MaskRay May 1, 2019
f7b978a
[X86][SSE] Move extract_subvector(pshufb) fold to SimplifyDemandedVec…
RKSimon May 1, 2019
3353cee
[X86][SSE] Add X86ISD::UNPCKL\UNPCK to SimplifyDemandedVectorEltsForT…
RKSimon May 1, 2019
7244437
[X86][SSE] Add scalar horizontal add/sub tests for element extraction…
RKSimon May 1, 2019
ccbe567
Get rid of a bunch of 'unused variable' warnings in test when run wit…
mclow May 1, 2019
37c2419
[X86][SSE] Add X86ISD::PACKSS\PACKUS to SimplifyDemandedVectorEltsFor…
RKSimon May 1, 2019
e54a93f
[clangd] Delete an unused declaration
MaskRay May 1, 2019
101bf52
[libFuzzer] Add --dump-input-on-failure to help diagnose AArch64 fail…
smithp35 May 1, 2019
ee2474d
DAG: allow DAG pointer size different from memory representation.
TNorthover May 1, 2019
951a6b4
[X86][SSE] Add 512-bit vector support to SimplifyDemandedVectorEltsFo…
RKSimon May 1, 2019
ba372c6
[X86][SSE] Split 512-bit -> 128-bit vector directly in SimplifyDemand…
RKSimon May 1, 2019
4e701ab
Wrap to 80 columns, no behavior change
nico May 1, 2019
3d6899e
[X86][SSE] Add SSE vector shift support to SimplifyDemandedVectorElts…
RKSimon May 1, 2019
b268a2a
[lldb] [lit] Add write tests for MM/XMM registers
mgorny May 1, 2019
9779908
[lldb] [lit] Add write tests for r8-r15 & xmm8-xmm15 registers
mgorny May 1, 2019
6e32dd6
[LLD] Emit dynamic relocations for references to script symbols in -p…
bd1976bris May 1, 2019
d8f856d
[LoopInfo] Faster implementation of setLoopID. NFC.
Keno May 1, 2019
f68e0f7
Fix OptTable::findNearest() adding delimiter for free
nico May 1, 2019
6711b96
[X86][SSE] Add demanded elts support X86ISD::PMULDQ\PMULUDQ
RKSimon May 1, 2019
945890a
[clang-format] Fix bug that misses some function-like macro usages
owenca May 1, 2019
9caa6b5
[llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in…
MaskRay May 1, 2019
02d055a
[tests] Add host-byteorder-*-endian; update XFAILs of big-endian triples
hubert-reinterpretcast May 1, 2019
66a9642
[lit][tests][AIX] Update expected form of diagnostic messages; use `n…
hubert-reinterpretcast May 1, 2019
46e0fc8
[analyzer][tests] Use diff_plist, correct order of arguments for miss…
hubert-reinterpretcast May 1, 2019
0b4699b
[analyzer][tests][NFC] Add EOF newlines, normalize reference expected…
hubert-reinterpretcast May 1, 2019
a3e4b3b
[SCEV] Use isKnownViaNonRecursiveReasoning for smax simplification
Keno May 1, 2019
f5bdff7
Fix 80 column violation. NFCI.
RKSimon May 1, 2019
64d5751
Revert "[DAGCombiner] try repeated fdiv divisor transform before buil…
rotateright May 1, 2019
a224f68
[AMDGPU] gfx1010 DS implementation
rampitec May 1, 2019
b3203ec
[ThinLTO] Fix unreachable code when parsing summary entries.
teresajohnson May 1, 2019
692560d
[AMDGPU] gfx1010 MIMG implementation
rampitec May 1, 2019
c3dd672
Disabling test in TestClassTemplateParameterPack.py until we do templ…
shafik May 1, 2019
c29d491
[AMDGPU] gfx1010 GCNNSAReassign pass
rampitec May 1, 2019
c991daa
Option spell checking: Penalize delimiter flags if input has no argument
nico May 1, 2019
c86769b
Bump DIAG_SIZE_SEMA, as we've hit it.
scott-linder May 1, 2019
3efd6e3
[WebAssembly] WASI support for libcxx
May 1, 2019
3b7925f
[AMDGPU] gfx1010 GCNRegBankReassign pass
rampitec May 1, 2019
65dc242
[globalisel] Update the legalizer documentation
dsandersllvm May 1, 2019
fa78ad5
[Driver] Explicitly request platform rtlib in the Driver pic test
petrhosek May 1, 2019
9f04d97
[X86][SSE] Fold scalar horizontal add/sub for non-0/1 element extract…
RKSimon May 1, 2019
d1a7100
[sanitizer] Implement reallocarray.
eugenis May 1, 2019
9f68614
[PowerPC] add test that could infinite loop with reordered transforms…
rotateright May 1, 2019
a8426ac
[OpenMP] Implement task modifier for reduction clause
jpeyton52 May 1, 2019
a0df4d3
[clang-format] Fix a bug in AlignConsecutiveDeclarations.
owenca May 1, 2019
0a4aeec
Convert PDB docs to unix line endings. No other changes.
nico May 1, 2019
31f7c4a
[Parser] Avoid correcting delayed typos in array subscript multiple t…
vsapsai May 1, 2019
986c7df
Minor tweaks to PDB docs
nico May 1, 2019
76931df
[sanitizer][NFC] Get type of AllocatorCache from CombinedAllocator
vitalybuka May 1, 2019
147ce23
Enable OpenMP build for 32-bit FreeBSD
DimitryAndric May 1, 2019
18add16
Make check-clang depend on the clang-check binary always
nico May 1, 2019
7780f51
[scudo][NFC] Remove unneeded template from scudo::CombinedAllocator
vitalybuka May 1, 2019
20c5676
[sanitizer][NFC] Set LargeMmapAllocator type from PrimaryAllocator
vitalybuka May 1, 2019
9f7fc98
[analyzer] Don't display implementation checkers under -analyzer-chec…
May 1, 2019
735953e
Try to unbreak sphinx bot after r359714
nico May 1, 2019
10dd7f1
Make clang/utils/creduce-clang-crash.py executable
rnk May 1, 2019
c89667d
[AArch64] Add tests for bool vector reductions; NFC
nikic May 1, 2019
5833bb2
Disable queues_with_libBacktraceRecording
JDevlieghere May 1, 2019
91c166c
[Sanitizer] Reland "Cleanup INTERCEPT_FUNCTION macro"
yln May 1, 2019
dfa7af5
Add missing locale requirement to test.
DanAlbert May 1, 2019
1bda018
[analyzer] Fix buildbot failures caused by a forgotten initialization
May 1, 2019
59bcb78
[sanitizer][NFC] Add const/static into a couple of methods
vitalybuka May 1, 2019
9ef8387
[sanitizer][NFC] Remove unneeded SizeClassAllocatorLocalCache
vitalybuka May 1, 2019
4e7104b
[lldb-server] Remove lldb-server's dependency on Core
bulbazord May 1, 2019
fbcec6c
[tsan] Fix and re-enable user_malloc.cc test
vitalybuka May 1, 2019
2097b1f
Set a CXXRecordDecl to not be passed in registers if DW_CC_pass_by_re…
shafik May 1, 2019
50721b2
[compiler-rt][tests] Propagate COMPILER_RT_UNITTEST_LINK_FLAGS
hubert-reinterpretcast May 1, 2019
a3843fe
[GlobalISel][AArch64] Use fmov for G_FCONSTANT when possible
May 1, 2019
42a3b4f
[ORC] Pass object buffer ownership back in NotifyEmitted.
lhames May 1, 2019
1620104
[PGO][CHR] A bug fix.
hjyamauchi May 1, 2019
d010a3b
Fix erroneous flag in GISel line for arm64-fast-isel-materialize.ll
May 1, 2019
dc476df
lldb-server: remove link against lldbInterpreter
compnerd May 1, 2019
d5c0486
Revert r359717, "Make check-clang depend on the clang-check binary al…
nico May 1, 2019
2efd305
Consume unexpected "template" keywords after "using"
Weverything May 1, 2019
288ed91
FileCheck [4/12]: Introduce @LINE numeric expressions
May 2, 2019
1feaee5
[FileCheck] Fix line-count.txt test
May 2, 2019
a78ab77
remove inalloca parameters in globalopt and simplify argpromotion
inglorion May 2, 2019
b7c6d95
[COFF, ARM64] Align global symbol by size for ARM64 MSVC ABI
ThomsonTan May 2, 2019
c669ef1
Delete trailing \r. NFC
MaskRay May 2, 2019
bac7780
Diagnose non-dependent qualified friend function template declarations
zygoloid May 2, 2019
f19a8b0
Replace ad-hoc tracking of pattern for an instantiated class-scope
zygoloid May 2, 2019
d6b469d
[CMake] Remove EmulateInstructionMIPS dependency on Interpreter
bulbazord May 2, 2019
413517e
lld-link: Make "duplicate resource" error message a bit more concise
nico May 2, 2019
1c19b74
[CommandObjectCommands] Honor stop-command-source-on-error
JDevlieghere May 2, 2019
84bed67
[test] Convert TestWatchpointSetErrorCases.py to lit
JDevlieghere May 2, 2019
e91ad7d
Mention the thread-format & frame-format settings in help.
jimingham May 2, 2019
b929a00
[X86] Remove the redundant suffix in vfpclassp[d,s]'s broadcasting va…
topperc May 2, 2019
f2baae0
[AMDGPU] gfx1010 constant bus limit
rampitec May 2, 2019
9d744bc
[libcxx] cmake - guard list remove
androm3da May 2, 2019
5cf8167
[AMDGPU] gfx1010 allows VOP3 to have a literal
rampitec May 2, 2019
64399da
[AMDGPU] gfx1010 lost VOP2 forms of some add/sub
rampitec May 2, 2019
7d0e8cb
[Support] Don't check MAP_ANONYMOUS, just use MAP_ANON
MaskRay May 2, 2019
5745ecc
Adapt -fsanitize=function to SANITIZER_NON_UNIQUE_TYPEINFO
stbergmann May 2, 2019
2f0ef58
Fix for Windows
stbergmann May 2, 2019
da7ae97
Fix typo in test case.
ahatanaka May 2, 2019
cfc4519
Object/Minidump: Add support for the ThreadList stream
labath May 2, 2019
c9f5220
[clangd] Restore conventional names for lit configs, and .in/.py spli…
sam-mccall May 2, 2019
1a0d6d6
[NFC][PowerPC] Return early if the element type is not byte-sized in …
zhangkangcool May 2, 2019
c193111
Fix MSVC build
labath May 2, 2019
53bcf6f
[ARM GlobalISel] Legalize extensions to < 32 bits
rovka May 2, 2019
7da3898
[ARM GlobalISel] Rename some inst selector tests. NFC
rovka May 2, 2019
06a61cc
[ARM GlobalISel] Select extensions to < 32 bits
rovka May 2, 2019
d8c2fa9
[ELF] Delete a cant-write test from test/lto/thinlto-index-only.ll
MaskRay May 2, 2019
553c139
[clangd] Standard library mapping: prefer "primary" versions of funct…
sam-mccall May 2, 2019
15b89df
[clangd] Improvements to header mapping: more precise parsing of cppr…
sam-mccall May 2, 2019
1136ea2
[ARM GlobalISel] Fixup r359768
rovka May 2, 2019
71569d0
Inject only relevant local variables in the expression evaluation con…
Teemperor May 2, 2019
8be28cd
[Object] Change getSectionName() to return Expected<StringRef>
MaskRay May 2, 2019
facbfe0
[llvm-readobj] Delete and inline relocAddressLess
MaskRay May 2, 2019
3d7b8fd
[LTO] Migrate typedef to using
MaskRay May 2, 2019
3356c32
Rename Minion to ASTImporterDelegate
Teemperor May 2, 2019
929f639
[clangd] Fix code completion of macros defined in the preamble region…
sam-mccall May 2, 2019
9a0acdf
Add std::stack and std::queue support to CxxModuleHandler
Teemperor May 2, 2019
8120b7a
[lldb] [lit] Split 'register read' tests between zmm*, xmm16+, ymm16+
mgorny May 2, 2019
e4a89a1
[llvm-strip]Add --no-strip-all to disable --strip-all behaviour (incl…
jh7370 May 2, 2019
9fa56f7
[X86][SSE] Move shouldUseHorizontalOp inside isHorizontalBinOp. NFCI.
RKSimon May 2, 2019
72d3ca9
[lldb] [lit] Introduce tests for writing YMM registers
mgorny May 2, 2019
4d73856
[lldb] [lit] Use LLDB-like output for XMM registers in write tests
mgorny May 2, 2019
a4939d3
Attempt to fix flaky tests.
EricWF May 2, 2019
df8daf0
[X86][SSE] lowerAddSubToHorizontalOp - enable ymm extraction+fold
RKSimon May 2, 2019
8d8c7e9
[lldb] [lit] Mark x86-64-ymm-write XFAIL on Darwin
mgorny May 2, 2019
0178cff
[ELF] --plugin-opt=thinlto-index-only: create empty index files even …
MaskRay May 2, 2019
44bb0aa
[OpenCL] Deduce static data members to __global addr space.
May 2, 2019
8e6bf88
[OPENMP][NVPTX]Improved omp_get_thread_limit() function.
alexey-bataev May 2, 2019
284472b
[SelectionDAG] remove constant folding limitations based on FP except…
rotateright May 2, 2019
4ad6dbc
[OPENMP][NVPTX]Improve omp_get_max_threads() function.
alexey-bataev May 2, 2019
1972826
[DAGCombiner] try repeated fdiv divisor transform before building est…
rotateright May 2, 2019
58aa22f
Fix the compile RUN line in x86-64-ymm-write.test
labath May 2, 2019
5c4f031
Reinstate xfail-darwin in x86-64-ymm-write.test
labath May 2, 2019
73c44e4
Revert rL359778 : [clangd] Fix code completion of macros defined in t…
RKSimon May 2, 2019
2f6c579
[lldb] [lit] Add write tests for AVX-512 registers (zmm, xmm15+, ymm15+)
mgorny May 2, 2019
26e095e
[OpenCL] Fix initialisation of this via pointer.
May 2, 2019
1b29dec
Reapply r359778: [clangd] Fix code completion of macros defined in th…
sam-mccall May 2, 2019
a558ee8
Do not warn on switches over enums that do not use [[maybe_unused]] e…
dwblaikie May 2, 2019
e25a0e9
Fixed: Duck-typing in readability-redundant-smartptr-get didn't catch…
May 2, 2019
3d1d3ad
[libFuzzer] Re-enable libFuzzer on i386 Linux and fix test
jonathanmetzman May 2, 2019
156226b
[compiler-rt] Set the ZX_VMO_RESIZABLE option for zx_vmo_create
petrhosek May 2, 2019
f0652f0
[gn] Support for building libunwind
petrhosek May 2, 2019
4fe63c7
[gn] Support for building libcxxabi
petrhosek May 2, 2019
fa3c328
[gn] Support for building libc++
petrhosek May 2, 2019
291a0b8
[test] TestSharedPtr -> TestSharedPtrDbgInfoContent
JDevlieghere May 2, 2019
223ed70
[libc++][CMake] Link against libSystem on Apple platforms
ldionne May 2, 2019
2dbd5d8
Use primary template parameter names for variable template debug info
rnk May 2, 2019
c7c3cf6
Initialization: remove ObjectContainer from Common
compnerd May 2, 2019
bd689b9
gdb-remote: reduce some inclusion of Target/Process.h
compnerd May 2, 2019
0682fc5
Disable TestArgumentPassingRestrictions for clang < 7
JDevlieghere May 2, 2019
21db144
Remove unnecessary check in SymbolFileDWARF::ParseImportedModules
Teemperor May 2, 2019
daa3c5b
[Sema] Emit warning for visibility attribute on internal-linkage decl…
scott-linder May 2, 2019
4002804
[gn] Include libcxx configuration file
petrhosek May 2, 2019
509c884
gdb-remote: fix the build on Windows
compnerd May 2, 2019
d179ce9
Initialization: correct macro usage
compnerd May 2, 2019
3662127
[yaml2obj] - Make interface of `NameToIdxMap` class be human friendly…
May 2, 2019
a7c766b
build: add option to disable unwind tables
compnerd May 2, 2019
55ef9a1
Another attempt to fix "could not find clang-check" lit warning in an…
nico May 2, 2019
88a0f13
Typo Functino->Function.
echristo May 2, 2019
8ccb8f8
[OPENMP][NVPTX]Improve code by using parallel level counter.
alexey-bataev May 2, 2019
301a5bb
Change the metadata for heapallocsite calls when the type is cast.
amykhuang May 2, 2019
f90458b
[clangd][xpc] Cannonicalize value of CLANGD_BUILD_XPC before caching
jkorous-apple May 2, 2019
206bc17
[gn] Update the clangd test lit site configuration
petrhosek May 2, 2019
fc40cbd
[Attribute/Diagnostics] Print macro if definition is an attribute dec…
PiJoules May 2, 2019
c15e387
Merge branch 'master' into intel
May 2, 2019
9c98ea0
Merge branch 'intel' into private/sync_to_llvm_fc40cbd9d8_v2
May 8, 2019
3385b53
Merge branch 'intel' into private/sync_to_llvm_fc40cbd9d8_v2
May 8, 2019
4295259
Merge branch 'private/sync_to_llvm_fc40cbd9d8_v2' of github.com:otcsh…
May 10, 2019
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.
56 changes: 56 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#==============================================================================#
# This file specifies intentionally untracked files that git should ignore.
# See: http://www.kernel.org/pub/software/scm/git/docs/gitignore.html
#
# This file is intentionally different from the output of `git svn show-ignore`,
# as most of those are useless.
#==============================================================================#

#==============================================================================#
# File extensions to be ignored anywhere in the tree.
#==============================================================================#
# Temp files created by most text editors.
*~
# Merge files created by git.
*.orig
# Byte compiled python modules.
*.pyc
# vim swap files
.*.sw?
.sw?
#OS X specific files.
.DS_store

# Nested build directory
/build

#==============================================================================#
# Explicit files to ignore (only matches one).
#==============================================================================#
# Various tag programs
/tags
/TAGS
/GPATH
/GRTAGS
/GSYMS
/GTAGS
.gitusers
autom4te.cache
cscope.files
cscope.out
autoconf/aclocal.m4
autoconf/autom4te.cache
/compile_commands.json
# Visual Studio built-in CMake configuration
/CMakeSettings.json
# CLion project configuration
/.idea

#==============================================================================#
# Directories to ignore (do not add trailing '/'s, they skip symlinks).
#==============================================================================#
# VS2017 and VSCode config files.
.vscode
.vs
# clangd index
.clangd
11 changes: 3 additions & 8 deletions clang-tools-extra/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
option(CLANGD_BUILD_XPC "Build XPC Support For Clangd." OFF)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CLANGD_BUILD_XPC ON CACHE BOOL "" FORCE)
endif ()

add_subdirectory(clang-apply-replacements)
add_subdirectory(clang-reorder-fields)
add_subdirectory(modularize)
add_subdirectory(clang-tidy)
add_subdirectory(clang-tidy-vs)

add_subdirectory(change-namespace)
add_subdirectory(clang-change-namespace)
add_subdirectory(clang-doc)
add_subdirectory(clang-query)
add_subdirectory(clang-include-fixer)
add_subdirectory(clang-move)
add_subdirectory(clang-query)
add_subdirectory(clangd)
add_subdirectory(include-fixer)
add_subdirectory(pp-trace)
add_subdirectory(tool-template)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "clang/Format/Format.h"
#include "clang/Lex/Lexer.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/Tooling/Core/Diagnostic.h"
#include "clang/Tooling/DiagnosticsYaml.h"
#include "clang/Tooling/ReplacementsYaml.h"
#include "llvm/ADT/ArrayRef.h"
Expand Down Expand Up @@ -169,9 +170,11 @@ groupReplacements(const TUReplacements &TUs, const TUDiagnostics &TUDs,

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

// Sort replacements per file to keep consistent behavior when
// clang-apply-replacements run on differents machine.
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-doc/tool/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)

add_clang_executable(clang-doc
add_clang_tool(clang-doc
ClangDocMain.cpp
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace include_fixer {
// Implementations may choose to truncate results, refuse short queries, etc.
class FuzzySymbolIndex : public SymbolIndex {
public:
// Loads the specified include-fixer database and returns an index serving it.
// Loads the specified clang-include-fixer database and returns an index serving it.
static llvm::Expected<std::unique_ptr<FuzzySymbolIndex>>
createFromYAML(llvm::StringRef File);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"

#define DEBUG_TYPE "include-fixer"
#define DEBUG_TYPE "clang-include-fixer"

using namespace clang;

Expand Down Expand Up @@ -348,8 +348,8 @@ IncludeFixerSemaSource::query(StringRef Query, StringRef ScopedQualifiers,
//
// We use conservative behavior for detecting the same unidentified symbol
// here. The symbols which have the same ScopedQualifier and RawIdentifier
// are considered equal. So that include-fixer avoids false positives, and
// always adds missing qualifiers to correct symbols.
// are considered equal. So that clang-include-fixer avoids false positives,
// and always adds missing qualifiers to correct symbols.
if (!GenerateDiagnostics && !QuerySymbolInfos.empty()) {
if (ScopedQualifiers == QuerySymbolInfos.front().ScopedQualifiers &&
Query == QuerySymbolInfos.front().RawIdentifier) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class IncludeFixerActionFactory : public clang::tooling::ToolAction {
///
/// \param Code The source code.
/// \param Context The context which contains all information for creating
/// include-fixer replacements.
/// clang-include-fixer replacements.
/// \param Style clang-format style being used.
/// \param AddQualifiers Whether we should add qualifiers to all instances of
/// an unidentified symbol.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "llvm/Support/Debug.h"
#include "llvm/Support/Path.h"

#define DEBUG_TYPE "include-fixer"
#define DEBUG_TYPE "clang-include-fixer"

namespace clang {
namespace include_fixer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ int includeFixerMain(int argc, const char **argv) {
}

// We leave an empty symbol range as we don't know the range of the symbol
// being queried in this mode. include-fixer won't add namespace qualifiers
// if the symbol range is empty, which also fits this case.
// being queried in this mode. clang-include-fixer won't add namespace
// qualifiers if the symbol range is empty, which also fits this case.
IncludeFixerContext::QuerySymbolInfo Symbol;
Symbol.RawIdentifier = QuerySymbol;
auto Context =
Expand All @@ -383,9 +383,10 @@ int includeFixerMain(int argc, const char **argv) {

if (tool.run(&Factory) != 0) {
// We suppress all Clang diagnostics (because they would be wrong,
// include-fixer does custom recovery) but still want to give some feedback
// in case there was a compiler error we couldn't recover from. The most
// common case for this is a #include in the file that couldn't be found.
// clang-include-fixer does custom recovery) but still want to give some
// feedback in case there was a compiler error we couldn't recover from.
// The most common case for this is a #include in the file that couldn't be
// found.
llvm::errs() << "Fatal compiler error occurred while parsing file!"
" (incorrect include paths?)\n";
return 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
;; This package allows Emacs users to invoke the 'clang-include-fixer' within
;; Emacs. 'clang-include-fixer' provides an automated way of adding #include
;; directives for missing symbols in one translation unit, see
;; <http://clang.llvm.org/extra/include-fixer.html>.
;; <http://clang.llvm.org/extra/clang-include-fixer.html>.

;;; Code:

Expand Down Expand Up @@ -243,7 +243,7 @@ return nil. Buffer restrictions are ignored."
t))))))))))))

(defun clang-include-fixer--add-header (stdout)
"Analyse the result of include-fixer stored in STDOUT.
"Analyse the result of clang-include-fixer stored in STDOUT.
Add a missing header if there is any. If there are multiple
possible headers the user can select one of them to be included.
Temporarily highlight the affected symbols. Asynchronously call
Expand Down Expand Up @@ -317,7 +317,7 @@ They are replaced by the single element selected by the user."
(when overlays
(goto-char (clang-include-fixer--closest-overlay overlays)))
(cl-flet ((header (info) (let-alist info .Header)))
;; The header-infos is already sorted by include-fixer.
;; The header-infos is already sorted by clang-include-fixer.
(let* ((headers (mapcar #'header .HeaderInfos))
(header (completing-read
(clang-include-fixer--format-message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
# - Change 'binary' if clang-include-fixer is not on the path (see below).
# - Add to your .vimrc:
#
# noremap <leader>cf :pyf path/to/llvm/source/tools/clang/tools/extra/include-fixer/tool/clang-include-fixer.py<cr>
# noremap <leader>cf :pyf path/to/llvm/source/tools/clang/tools/extra/clang-include-fixer/tool/clang-include-fixer.py<cr>
#
# This enables clang-include-fixer for NORMAL and VISUAL mode. Change "<leader>cf"
# to another binding if you need clang-include-fixer on a different key.
# This enables clang-include-fixer for NORMAL and VISUAL mode. Change
# "<leader>cf" to another binding if you need clang-include-fixer on a
# different key.
#
# To set up clang-include-fixer, see http://clang.llvm.org/extra/include-fixer.html
# To set up clang-include-fixer, see
# http://clang.llvm.org/extra/clang-include-fixer.html
#
# With this integration you can press the bound key and clang-include-fixer will
# be run on the current buffer.
Expand Down Expand Up @@ -76,7 +78,7 @@ def GetUserSelection(message, headers, maximum_suggested_headers):
raise Exception()
except Exception:
# Show a new prompt on invalid option instead of aborting so that users
# don't need to wait for another include-fixer run.
# don't need to wait for another clang-include-fixer run.
print >> sys.stderr, "Invalid option:", res
return GetUserSelection(message, headers, maximum_suggested_headers)
return headers[idx - 1]
Expand Down Expand Up @@ -170,7 +172,7 @@ def main():
print "The file is fine, no need to add a header."
return
symbol = query_symbol_infos[0]["RawIdentifier"]
# The header_infos is already sorted by include-fixer.
# The header_infos is already sorted by clang-include-fixer.
header_infos = include_fixer_context["HeaderInfos"]
# Deduplicate headers while keeping the order, so that the same header would
# not be suggested twice.
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-move/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set(LLVM_LINK_COMPONENTS
)

add_clang_library(clangMove
ClangMove.cpp
Move.cpp
HelperDeclRefGraph.cpp

LINK_LIBS
Expand Down
Loading