Skip to content

Merge 2020-10-28 into swift/tensorflow #2056

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 418 commits into from
Nov 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
418 commits
Select commit Hold shift + click to select a range
5dad915
[Swift] Synthesized type alias should be implicit to avoid upsetting …
slavapestov Oct 7, 2020
6cdb2c3
Merge pull request #1892 from Teemperor/RunSwiftTestsOnlyWithEnabledS…
shahmishal Oct 7, 2020
c28fb2b
Merge branch 'swift/main' of github.com:apple/llvm-project into swift…
ainu-bot Oct 7, 2020
9a14690
Merge pull request #1893 from Teemperor/RunSwiftShellTestsOnlyWhenSwi…
shahmishal Oct 7, 2020
30a0cf4
Merge remote-tracking branch 'origin/apple/stable/20200714' into swif…
JDevlieghere Oct 7, 2020
adb227f
[lldb] Regenerate the static bindings
JDevlieghere Oct 7, 2020
eb20e57
[lldb] Implement TypeSystemSwiftTypeRef::CreateTupleType
kastiglione Oct 7, 2020
ba813dd
Use NDEBUG for inlined macro
kastiglione Oct 7, 2020
9ac059c
Merge pull request #1867 from JDevlieghere/🍒/bastille/e1ef7183c6f008f…
JDevlieghere Oct 7, 2020
aba7154
Merge commit '9ac059cf46a7' from apple/stable/20200714 into swift/main
Oct 8, 2020
254c6ff
[clang][Index] Add guard to IndexUnitReader module name reading
bnbarham Oct 7, 2020
0bb10e4
Merge pull request #1917 from apple/merge-bastille-into-main
fredriss Oct 8, 2020
c17f50a
Merge pull request #1921 from bnbarham/benb/cherry-pick-b89f7e8
bnbarham Oct 8, 2020
264500e
Merge pull request #1916 from slavapestov/implicit-typealias-astscope
slavapestov Oct 8, 2020
bd1dd36
[lldb][swift] Add missing swiftTest decorators
Teemperor Oct 8, 2020
a340d18
Merge commit 'c17f50a45bb0' from apple/stable/20200714 into swift/main
adrian-prantl Oct 8, 2020
d58b514
Rename test to give it a unique name
adrian-prantl Oct 8, 2020
bee6286
Rename test to give it a unique name
adrian-prantl Oct 8, 2020
f9c85c8
Merge pull request #1924 from adrian-prantl/rename-test
adrian-prantl Oct 8, 2020
5f90706
Add tests; Fix found bug; Add descriptive comment
kastiglione Oct 9, 2020
190f7a8
Test named tuple elements too
kastiglione Oct 9, 2020
faaf4b9
[AST] Fix crashes caused by redeclarations in hidden prototypes
bnbarham Oct 9, 2020
12424dd
[lldb] Format unix signal table (NFC)
JDevlieghere Oct 7, 2020
f27bb63
Change the default handling of SIGCONT to nosuppress/nostop/notify
jimingham Oct 8, 2020
216e87d
[lldb] Format remaining signal table (NFC)
JDevlieghere Oct 9, 2020
47a1b79
Merge commit '22c8171b1afe' from apple/stable/20200714 into swift/main
Oct 9, 2020
22c8171
Merge pull request #1929 from bnbarham/benb/cherry-pick-fbb499e
bnbarham Oct 9, 2020
7669e9d
Merge pull request #1922 from Teemperor/AddMissingSwiftDecorators
Teemperor Oct 9, 2020
16e3925
Merge pull request #1930 from JDevlieghere/🍒/bastille/0fcacefd1604942…
fredriss Oct 9, 2020
347e815
Add a Transform() utility for rewriting demangle trees. (NFC)
adrian-prantl Oct 9, 2020
f6c3c45
Remove the dynamic self replacement from canonicalization
adrian-prantl Oct 9, 2020
5a39dbd
Merge pull request #1919 from apple/lldb-Implement-TypeSystemSwiftTyp…
kastiglione Oct 9, 2020
91cfc6f
Merge commit '16e3925a831d' from apple/stable/20200714 into swift/main
Oct 9, 2020
cb1a6ae
Merge pull request #1926 from adrian-prantl/a-transformative-patch
adrian-prantl Oct 9, 2020
19e31c5
DirectoryWatcher: add an implementation for Windows
compnerd Oct 1, 2020
c377dba
Merge pull request #1933 from adrian-prantl/factor-out-dynamic-self
adrian-prantl Oct 9, 2020
a153c00
Merge commit 'd38d7b6c9ed0' from apple/stable/20200714 into swift/main
Oct 10, 2020
d38d7b6
Merge pull request #1936 from compnerd/watching
compnerd Oct 10, 2020
dbef9ec
[lldb] Update to match apple/swift#33935
beccadax Oct 11, 2020
9f1d8f2
Merge pull request #1937 from brentdax/these-imports-are-testing-my-p…
beccadax Oct 11, 2020
d85505d
[debugserver] Fix that debugserver's stop reply packets always return…
Teemperor Sep 3, 2020
a9014a9
[lldb] Remove debugserver specific string from TestAbortExitCode check
Teemperor Sep 3, 2020
ea40221
Merge commit '5288c94a7e3b' from apple/stable/20200714 into swift/main
Oct 12, 2020
5288c94
Merge pull request #1938 from Teemperor/cherry/f0699d9109143754088c26…
Teemperor Oct 12, 2020
c24d7bf
[lldb] Fix that C++ base name is only calculated when Swift plugin is…
Teemperor Oct 9, 2020
fa17d12
[lldb] Add SBModule::GarbageCollectAllocatedModules and clear modules…
Teemperor Aug 17, 2020
8239453
Merge pull request #1932 from Teemperor/FixModuleLookupInfoIfdefSwift
Teemperor Oct 12, 2020
5009d66
Merge pull request #1939 from Teemperor/cherry/c2f9454a16e45e1df09d8e…
Teemperor Oct 12, 2020
f02195f
[lldb] Alphabetically sort test categories (NFC)
JDevlieghere Oct 12, 2020
6735735
[lldb] Add instrumentation runtime category
JDevlieghere Oct 12, 2020
e5e1ec7
[lldb] Handle alternative output in TestAbortExitCode
kastiglione Oct 12, 2020
6aa44b3
Merge pull request #1942 from apple/lldb-Handle-alternative-output-in…
fredriss Oct 12, 2020
917a0e5
Merge pull request #1943 from JDevlieghere/🍒/bastille/e465ddac880228b…
fredriss Oct 12, 2020
4782156
[llvm] Export LLVM_USE_SPLIT_DWARF in LLVMConfig.cmake
JDevlieghere Oct 12, 2020
e3ec22d
Merge pull request #1944 from JDevlieghere/🍒/bastille/7f8dc347c9552f3…
JDevlieghere Oct 13, 2020
86d1260
[repl_swift] Delete codesigning override
vedantk Oct 13, 2020
59ea711
TypeSystem: silence a number of uncovered switch warnings
compnerd Oct 13, 2020
5931fab
Merge pull request #1945 from vedantk/eng/PR-70237254
vedantk Oct 13, 2020
ec01dd9
[repl_swift] Delete unused Xcode project
vedantk Oct 13, 2020
d776078
Revert "[repl_swift] Delete codesigning override"
vedantk Oct 13, 2020
a2e131a
Merge pull request #1946 from compnerd/covering-your-bases
compnerd Oct 13, 2020
a107763
[lldb/DWARF] Fix handling of variables with both location and const_v…
labath Aug 26, 2020
da9b7d8
[lldb/DWARF] Fix handling of variables with both location and const_v…
labath Aug 26, 2020
31031e6
Remove legacy Swift language constant support
adrian-prantl Oct 13, 2020
f6a1e30
Merge pull request #1947 from vedantk/delete-repl-swift-xcodeprj
vedantk Oct 13, 2020
0bebe9f
[llvm-cov] Warn when -arch spec is missing/invalid for universal bina…
vedantk Oct 13, 2020
ee91d80
[cmake] Unconditionally set the force flag when codesigning
vedantk Oct 13, 2020
523e6ec
Merge pull request #1948 from apple/revert-1945-eng/PR-70237254
vedantk Oct 13, 2020
d9e4ea4
[repl_swift] Add get-task-allow entitlement
vedantk Oct 13, 2020
bac4247
Merge pull request #1949 from adrian-prantl/D86615
adrian-prantl Oct 14, 2020
8a348eb
Move initialization of Variable::m_loc_is_const_data into constructor…
adrian-prantl Oct 14, 2020
9886422
Move initialization of Variable::m_loc_is_const_data into constructor…
adrian-prantl Oct 14, 2020
ed468a3
Merge pull request #1950 from adrian-prantl/D86615-main
adrian-prantl Oct 14, 2020
d449c81
[lldb] Reject redefinitions of persistent variables
Teemperor Oct 14, 2020
a2727a2
Merge commit '5009d66cabff' from apple/stable/20200714 into swift/main
Teemperor Oct 14, 2020
24d0a14
Merge pull request #1959 from Teemperor/cherry/cb81e662a58908913f3425…
Teemperor Oct 14, 2020
cd62e2a
[lldb] Fix Python syntax error in lldbtest.py
Teemperor Oct 14, 2020
40f9432
[lldb] Regenerate the static bindings
Teemperor Oct 14, 2020
c1548e8
Merge pull request #1951 from vedantk/wip/upstream-entitlement
vedantk Oct 14, 2020
31ff245
Merge pull request #1953 from apple/eng/PR-40312677
vedantk Oct 14, 2020
3fbce23
Merge pull request #1954 from apple/eng/PR-70237254
vedantk Oct 14, 2020
e31457a
Merge pull request #1956 from adrian-prantl/constant_loc-main
adrian-prantl Oct 14, 2020
678c6a1
Merge pull request #1955 from adrian-prantl/constant_data
adrian-prantl Oct 14, 2020
8642e64
Add accessors. (NFC)
adrian-prantl Oct 2, 2020
feab006
Merge pull request #1960 from adrian-prantl/access
adrian-prantl Oct 14, 2020
dee9c92
Merge pull request #1912 from apple/lldb-Remove-unused-version-defines
kastiglione Oct 14, 2020
812fd46
Merge commit '5009d66cabff' from apple/stable/20200714 into swift/main
Oct 14, 2020
4e85bc4
Make sure the Swift REPL is initialized with host OS availablity.
adrian-prantl Jul 31, 2020
e161d5c
Refactor LookupClangType to take a module holder rather than a module.
adrian-prantl Oct 10, 2020
cc23662
[lldb] Fix typo in disassemble_options_line description
JDevlieghere Aug 28, 2020
eaceb46
Use the dynamic type of self in the expression evaluator.
adrian-prantl Oct 10, 2020
2d0b083
Merge pull request #1965 from JDevlieghere/🍒/bastille/cdc18163cd1449c…
fredriss Oct 14, 2020
35a228e
Merge commit 'feab006e953a' from apple/stable/20200714 into swift/main
adrian-prantl Oct 14, 2020
bfe6989
Sort the cases in GetTypeClass (NFC)
adrian-prantl Jul 17, 2020
4863244
Appease older compilers
adrian-prantl Oct 14, 2020
cd779d2
Merge pull request #1963 from adrian-prantl/66928153
adrian-prantl Oct 14, 2020
2ea629d
Merge pull request #1966 from adrian-prantl/69020595
adrian-prantl Oct 15, 2020
8a243da
[dsymutil] Fix handling of aliases to private external symbols
JDevlieghere Oct 15, 2020
8fd6327
[lldb] Add swiftTest decorator to TestSwiftGenericClass.py
Teemperor Oct 15, 2020
482aea0
[lldb] Add REQUIRES swift to Availability.test
Teemperor Oct 15, 2020
d636cf1
[lldb][swift] Remove mydir calculation from lldbplaygroundrepl
Teemperor Oct 15, 2020
edbe9da
Merge pull request #1970 from JDevlieghere/🍒/bastille/f9fb9da36c34d27…
JDevlieghere Oct 15, 2020
2f79cf7
Merge pull request #1968 from adrian-prantl/66928085
adrian-prantl Oct 15, 2020
f5962ed
Merge pull request #1971 from Teemperor/AddSwiftTestToTestSwiftGeneri…
Teemperor Oct 15, 2020
83ebe86
Merge pull request #1973 from Teemperor/SwiftOnlyAvailability
Teemperor Oct 15, 2020
8d54827
Merge pull request #1975 from Teemperor/RemoveMyDirPlaygroundRepl
Teemperor Oct 15, 2020
d74692e
[ASTImporter] Modifying ImportDeclContext(...) to ensure that we also…
shafik Sep 21, 2020
6c474d2
Merge pull request #1981 from shafik/66810957_importdeclcontext_handl…
shafik Oct 16, 2020
3aaa717
Merge commit '35a228ec5316' from apple/stable/20200714 into swift/main
adrian-prantl Oct 16, 2020
d26ebfd
[lldb/Swift] Fix import attributes handing in expression evaluations
medismailben Oct 14, 2020
98050f7
Merge pull request #1978 from medismailben/swift/main
medismailben Oct 16, 2020
f6b1a6a
Add support for more OS types to AddClangModuleCompilationOptionsForS…
adrian-prantl Oct 16, 2020
ea50a44
Resolve merge conflict.
adrian-prantl Oct 16, 2020
f920543
Merge commit '3aaa71720ea5' from apple/stable/20200714 into swift/main
adrian-prantl Oct 16, 2020
0ac1051
Merge commit '6c474d2fcfa8' from apple/stable/20200714 into swift/main
Oct 17, 2020
0e87f35
[cmake] Limit missing external lit warning to be shown once
kastiglione Oct 14, 2020
75ccad1
Add an SB API to get the SBTarget from an SBBreakpoint
jimingham Oct 15, 2020
ef4906d
Only print validation warnings when actually triggering an assertion.
adrian-prantl Oct 16, 2020
590ecce
[lldb] Fix few easily correctable warnings
kastiglione Oct 16, 2020
e184b47
[cmake] Centralize LLVM_ENABLE_WARNINGS option
kastiglione Sep 21, 2020
9c80a3d
Merge pull request #1990 from apple/lldb-Fix-few-easily-correctable-w…
kastiglione Oct 17, 2020
9298450
Merge pull request #1984 from apple/cmake-Limit-missing-external-lit-…
kastiglione Oct 17, 2020
e509ca5
Merge pull request #1991 from apple/cmake-Centralize-LLVM_ENABLE_WARN…
kastiglione Oct 17, 2020
b6c965e
Merge commit 'e509ca5ee572' from apple/stable/20200714 into swift/main
Oct 17, 2020
0180055
TypeSystem: silence some errors identified by MSVC
compnerd Oct 17, 2020
782fc26
Merge commit '0efe2f4d6702' from apple/stable/20200714 into swift/main
Oct 20, 2020
0efe2f4
Merge pull request #1987 from jimingham/sbbreak-get-target
jimingham Oct 19, 2020
e6aba2f
[llvm] Make obj2yaml and yaml2obj LLVM utilities instead of tools
JDevlieghere Oct 19, 2020
5ec3814
Merge pull request #1998 from JDevlieghere/🍒/bastille/97b8e2c1f063
JDevlieghere Oct 20, 2020
020bdf7
Teach the swift calling convention about _Atomic types
aschwaighofer Aug 19, 2020
4308eeb
Merge pull request #1988 from adrian-prantl/less-verbose
adrian-prantl Oct 20, 2020
e0ff757
Merge commit '5ec381467b18' from apple/stable/20200714 into swift/main
Oct 20, 2020
386224a
[lldb][swift] Make swiftTest decorator not always skip
Teemperor Oct 19, 2020
603a944
[lldb][swift] Skip all failing tests
Teemperor Oct 20, 2020
1322305
Merge pull request #1983 from adrian-prantl/66927829
adrian-prantl Oct 20, 2020
e7b3fd9
Merge commit '1322305e1787' from apple/stable/20200714 into swift/main
Oct 20, 2020
caa575b
Use LLVM_TOOLCHAIN_UTILITIES to allow utils to be installed in the to…
JDevlieghere Oct 20, 2020
acf0294
[Apple-stage2] Install FileCheck and yaml2obj in the toolchain
JDevlieghere Oct 20, 2020
c82e10b
TypeSystem: Avoid the ISO646 spelling of the logical operators
compnerd Oct 20, 2020
bb018f4
Merge pull request #1997 from Teemperor/MakeSwiftTestDecoratorNotAlwa…
adrian-prantl Oct 20, 2020
9a8083d
Remove validation from GetTypeBitAlign.
adrian-prantl Oct 20, 2020
5c10c16
Remove obsolete early exit.
adrian-prantl Oct 20, 2020
9e8e885
delete commented-out code
adrian-prantl Oct 20, 2020
66359bb
unxfail passing tests
adrian-prantl Oct 20, 2020
e54f82c
Merge pull request #2000 from JDevlieghere/🍒/bastille/024921a5e165cc2…
JDevlieghere Oct 20, 2020
c51d693
Merge commit 'e54f82cc8a08' from apple/stable/20200714 into swift/main
Oct 21, 2020
33f81b5
[ORC] Add a LLJITWithThinLTOSummaries example in OrcV2Examples
weliveindetail Aug 14, 2020
3a62560
[ORC] Fix an endif comment.
lhames Aug 24, 2020
d07ed0c
[examples] Fix dependencies for OrcV2Examples/LLJITWithThinLTOSummaries.
lhames Aug 25, 2020
35de35d
[ORC][JITLink] Switch to unique ownership for EHFrameRegistrars.
lhames Aug 26, 2020
1171d1e
[ORC] Add getDFSLinkOrder / getReverseDFSLinkOrder methods to JITDylib.
lhames Aug 29, 2020
8ddd01a
[NFCI] Silent a build warning due to an extra semi-colon
SouraVX Aug 31, 2020
4f7c68d
[ORC] Remove a stray semicolon, silencing warnings. NFC.
mstorsjo Aug 31, 2020
100d3f9
[ORC] Remove an unused variable.
lhames Aug 31, 2020
c6fc120
[ORC] Add unit test for HasMaterializationSideEffectsOnly failure beh…
lhames Sep 1, 2020
b59c73a
[ORC] Fix MachOPlatform's synthetic symbol dependence registration.
lhames Sep 2, 2020
86642a4
[ORC] Add an early out for MachOPlatform's init-scraper plugin setup.
lhames Sep 2, 2020
ffed708
[ORC] Remove stray debugging output.
lhames Sep 2, 2020
8e6136f
[ORC] Fix some bugs in TPCDynamicLibrarySearchGenerator, use in llvm-…
lhames Sep 4, 2020
96219e1
[ORC] Make MaterializationResponsibility immovable, pass by unique_ptr.
lhames Sep 10, 2020
4999363
Revert "[ORC] Make MaterializationResponsibility immovable, pass by u…
fhahn Sep 11, 2020
b7ca38a
Re-apply "[ORC] Make MaterializationResponsibility immovable..." with…
lhames Sep 11, 2020
a426c69
[JITLink] Improve formatting for Edge, Block and Symbol debugging out…
lhames Sep 13, 2020
d578186
[ORC] Add operations to create and lookup JITDylibs to OrcV2 C bindings.
lhames Sep 16, 2020
e1e7f1d
Remove unnecessary forward declarations. NFCI.
RKSimon Sep 17, 2020
b2331f0
[ORC][examples] Add an OrcV2 example for IR optimization via IRTransf…
lhames Sep 20, 2020
9489860
[ORC][examples] Add missing library dependencies.
lhames Sep 22, 2020
dfeb5c7
[ORC][examples] Temporarily remove LLJITWithChildProcess until ORC TP…
weliveindetail Oct 1, 2020
1ff9f71
[JITLink][ELF] Handle BSS sections, improve some error messages.
lhames Oct 6, 2020
c963a10
[RuntimeDyld][COFF] Report fatal error on error, rather than emiting …
lhames Oct 6, 2020
5458c7c
[ORC] Remove OrcV1 APIs.
lhames Sep 8, 2020
973562e
[ORC] Add support for resource tracking/removal (removable code).
lhames Sep 11, 2020
c032b7e
[ORC][examples] Update Kaleidoscope and BuildingAJIT tutorial series …
lhames Sep 23, 2020
1bcd561
[ORC] Add a missing '&'.
lhames Oct 19, 2020
7ea775d
[ORC] Move SimpleResourceManager function object inits out of constru…
lhames Oct 19, 2020
4436be1
[ORC] Move MaterializationResponsibility methods to ExecutionSession.
lhames Oct 2, 2020
4cd25b5
[ORC] Move DefinitionGenerator out of JITDylib.
lhames Oct 1, 2020
b356e9a
[ORC] Update Symbol Lookup / DefinitionGenerator system.
lhames Oct 14, 2020
1f4a1fd
[ORC] Fix a memory leak in the OrcV2 C API (and some comment typos).
lhames Oct 1, 2020
703f9e9
[ORC] Add a C API function to set the ExecutionSession error reporter.
lhames Oct 1, 2020
e69bd68
[ORC] Add C API functions to obtain and clear the symbol string pool.
lhames Oct 2, 2020
46febcd
[ORC] Fix C API function name.
lhames Oct 14, 2020
bdd2866
[ORC] Rename LLVMOrcJITDylibDefinitionGeneratorRef.
lhames Oct 14, 2020
338abf1
[ORC] Add basic ResourceTracker support to the OrcV2 C Bindings.
lhames Oct 15, 2020
d81624b
[ORC] Add an OrcV2 ResourceTracker / Removable-code example.
lhames Oct 15, 2020
e2b7d59
[ORC] Add support for custom generators to the C bindings.
lhames Oct 16, 2020
5072a52
[ORC] Add C API support for defining absolute symbols.
lhames Oct 16, 2020
727fc8f
[ORC] Add function to get pool entry string.
lhames Oct 19, 2020
535d19b
[ORC] Break up C-API header Orc.h, and add JITEventListener support.
lhames Oct 16, 2020
c76854e
[ORC] Fix unused variable warning.
lhames Oct 19, 2020
fc29985
[ORC] Fix a missing include.
lhames Oct 19, 2020
68400f3
[ORC] Remove commented out methods accidentally left in in 069919c9ba3.
lhames Oct 20, 2020
ebb299f
Add override to fix -Winconsistent-missing-override warning.
echristo Aug 10, 2020
162a8bc
Merge pull request #2002 from adrian-prantl/unxfail-main
adrian-prantl Oct 21, 2020
3d74427
[lldb] Don't strip LLDB.framework on install
JDevlieghere Oct 21, 2020
f934d3e
Merge pull request #2006 from jimingham/missing_override
jimingham Oct 21, 2020
460ad31
Merge commit 'e66243499b46' from apple/stable/20200714 into swift/main
Oct 21, 2020
e662434
Merge pull request #2009 from JDevlieghere/🍒/bastille/c565f09f4b0d908…
fredriss Oct 21, 2020
bd7991c
Merge commit '8099dc6be2cc' from apple/stable/20200714 into swift/main
Oct 21, 2020
8099dc6
Merge pull request #1999 from aschwaighofer/rdar_67351073
aschwaighofer Oct 21, 2020
08dd9cc
[Clang] Add option to allow marking pass-by-value args as noalias.
fhahn Sep 12, 2020
a81d496
Merge pull request #2001 from apple/compnerd-iso646
compnerd Oct 21, 2020
23b3574
Merge commit '08dd9ccc53e0' from apple/stable/20200714 into swift/main
Oct 21, 2020
46fd0ae
Use the use_dynamic option to determine whether to dynamically resolve
adrian-prantl Oct 21, 2020
202bca8
Remove obsolote early exit. This fixes a regression hidden by 2c911bc…
adrian-prantl Oct 21, 2020
7a5a004
Enable passing tests
adrian-prantl Oct 21, 2020
c6d7adb
Merge pull request #2007 from adrian-prantl/dynamic-main
adrian-prantl Oct 21, 2020
a48c648
Bind generic types in the expression evaluator if dybamic types are r…
adrian-prantl Oct 21, 2020
ee9caf1
Fix various warnings.
adrian-prantl Oct 21, 2020
1a5ae14
[TypeSystemSwiftTypeRef] Collect type info for Builtin.Word
vedantk Oct 21, 2020
c481264
Re-enable change; was disabled to validate the testcase
vedantk Oct 21, 2020
6f82cde
[lldb] Pass --swift-compiler in lldb-dotest
JDevlieghere Oct 22, 2020
639d0aa
Fix .debug_aranges parsing. (#2019)
jasonmolenda Oct 22, 2020
1ddf96c
Merge pull request #2016 from vedantk/stsref-builtin-word
vedantk Oct 22, 2020
7818c62
Merge pull request #2018 from JDevlieghere/swift_compiler
JDevlieghere Oct 22, 2020
34b5645
[lldb] Fix a regression introduced by D75730
JDevlieghere Oct 22, 2020
751719a
Merge pull request #2020 from JDevlieghere/🍒/bastille/826997c46280351…
fredriss Oct 22, 2020
869ac11
[lldb/DWARF] Add support for DW_OP_implicit_value
medismailben Oct 21, 2020
ed01c1a
Merge pull request #2012 from adrian-prantl/nodeforprinting-main
adrian-prantl Oct 22, 2020
2add546
Merge pull request #2014 from adrian-prantl/binding-main
adrian-prantl Oct 22, 2020
6e091c1
[InstCombine] Remove dbg.values describing contents of dead allocas
vedantk Oct 20, 2020
cd56dfb
Merge pull request #2021 from medismailben/apple/stable/20200714
medismailben Oct 22, 2020
df10872
Remove print statement from test that resulted in a non-deterministic…
adrian-prantl Oct 22, 2020
3635cb0
Merge pull request #2017 from lhames/swift-stable-jit-updates
lhames Oct 22, 2020
e548751
Revert "[CodeExtractor] Don't create bitcasts when inserting lifetime…
vedantk Oct 22, 2020
d5be1aa
[test] HotColdSplit: cover use of opaque pointer type
vedantk Oct 22, 2020
986e88d
Merge pull request #2022 from vedantk/eng/PR-66592859
vedantk Oct 22, 2020
1bad10b
Merge pull request #2025 from vedantk/eng/PR-70560161
vedantk Oct 22, 2020
6292d40
[elfabi] Move llvm-elfabi related code to InterfaceStub library
zeroomega Aug 11, 2020
70820c4
Remove unnecessary HEADER_DIRS in lib/InterfaceStub/CMakeLists.txt
zeroomega Aug 13, 2020
e43af04
[llvm] Fix ODRViolations for VersionTuple YAML specializations NFC
cyndyishida Oct 21, 2020
af1f38c
[APINotes] remove out ScalarTraits<VersionTuple>
cyndyishida Oct 22, 2020
56a74d3
Merge commit 'af1f38c88612' from apple/stable/20200714 into swift/main
Oct 24, 2020
d56215d
Merge pull request #2023 from adrian-prantl/70531607
adrian-prantl Oct 22, 2020
bcffc98
Merge commit '639d0aa2f738' from apple/stable/20200714 into swift/main
Oct 23, 2020
44ca486
[lldb][swift] Re-enable TestSwiftUnknownSelf
Teemperor Oct 23, 2020
77608cd
[lldb] Update static bindings
Teemperor Oct 23, 2020
7e8ae7b
[lldb][swift] Use dynamic types as a fallback in AddVariableInfo
Teemperor Oct 23, 2020
f04e63e
Merge pull request #2030 from Teemperor/swift/main-bindings-update
Teemperor Oct 26, 2020
d8ee9f3
Merge pull request #2029 from Teemperor/ReenableTestSwiftUnknownSelf.py
Teemperor Oct 26, 2020
c872dd7
Merge pull request #2031 from Teemperor/FixGenericTypes
Teemperor Oct 26, 2020
46170cc
Merge pull request #1993 from compnerd/coverage
compnerd Oct 26, 2020
adb23f8
Add a TypeSystemSwiftTypeRef::GetTupleElementName() method.
adrian-prantl Oct 27, 2020
a2f7b7f
Fix compilation warnings
adrian-prantl Oct 27, 2020
83139ee
Merge branch 'swift/main' of github.com:apple/llvm-project into swift…
Oct 27, 2020
dcb770b
Merge branch 'swift/tensorflow' of github.com:apple/llvm-project into…
ainu-bot Oct 27, 2020
c7692c0
Merge pull request #2049 from adrian-prantl/tuple-elem
adrian-prantl Oct 27, 2020
60a18b5
Merge pull request #2052 from adrian-prantl/warnings
adrian-prantl Oct 27, 2020
af80886
Merge upstream/swift/main into swift/tensorflow-stage (using imerge)
Oct 27, 2020
6c50663
Merge branch 'swift/main' of github.com:apple/llvm-project into swift…
ainu-bot Oct 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
  •  
  •  
  •  
1 change: 0 additions & 1 deletion clang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
set(LLVM_SHLIB_OUTPUT_INTDIR ${LLVM_LIBRARY_OUTPUT_INTDIR})
endif()

option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON)
option(LLVM_INSTALL_TOOLCHAIN_ONLY
"Only include toolchain files in the 'install' target." OFF)

Expand Down
8 changes: 8 additions & 0 deletions clang/cmake/caches/Apple-stage2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ set(LLVM_TOOLCHAIN_TOOLS
llvm-size
CACHE STRING "")

set(LLVM_BUILD_UTILS ON CACHE BOOL "")
set(LLVM_INSTALL_UTILS ON CACHE BOOL "")
set(LLVM_TOOLCHAIN_UTILITIES
FileCheck
yaml2obj
CACHE STRING "")

set(LLVM_DISTRIBUTION_COMPONENTS
clang
LTO
Expand All @@ -66,6 +73,7 @@ set(LLVM_DISTRIBUTION_COMPONENTS
cxx-headers
Remarks
${LLVM_TOOLCHAIN_TOOLS}
${LLVM_TOOLCHAIN_UTILITIES}
CACHE STRING "")

# test args
Expand Down
3 changes: 3 additions & 0 deletions clang/docs/SourceBasedCodeCoverage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ directory structure will be created. Additionally, the following special

* "%h" expands out to the hostname of the machine running the program.

* "%t" expands out to the value of the ``TMPDIR`` environment variable. On
Darwin, this is typically set to a temporary scratch directory.

* "%Nm" expands out to the instrumented binary's signature. When this pattern
is specified, the runtime creates a pool of N raw profiles which are used for
on-line profile merging. The runtime takes care of selecting a raw profile
Expand Down
4 changes: 4 additions & 0 deletions clang/include/clang/Basic/CodeGenOptions.def
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ CODEGENOPT(KeepStaticConsts, 1, 0)
/// Whether to not follow the AAPCS that enforce at least one read before storing to a volatile bitfield
CODEGENOPT(ForceAAPCSBitfieldLoad, 1, 0)

/// Assume that by-value parameters do not alias any other values.
CODEGENOPT(PassByValueIsNoAlias, 1, 0)


#undef CODEGENOPT
#undef ENUM_CODEGENOPT
#undef VALUE_CODEGENOPT
4 changes: 3 additions & 1 deletion clang/include/clang/Basic/DiagnosticGroups.td
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def ExtraSemi : DiagGroup<"extra-semi", [CXX98CompatExtraSemi,
def GNUFlexibleArrayInitializer : DiagGroup<"gnu-flexible-array-initializer">;
def GNUFlexibleArrayUnionMember : DiagGroup<"gnu-flexible-array-union-member">;
def GNUFoldingConstant : DiagGroup<"gnu-folding-constant">;
def FormatInsufficientArgs : DiagGroup<"format-insufficient-args">;
def FormatExtraArgs : DiagGroup<"format-extra-args">;
def FormatZeroLength : DiagGroup<"format-zero-length">;

Expand Down Expand Up @@ -840,7 +841,8 @@ def FormatPedantic : DiagGroup<"format-pedantic">;
def FormatTypeConfusion : DiagGroup<"format-type-confusion">;
def Format : DiagGroup<"format",
[FormatExtraArgs, FormatZeroLength, NonNull,
FormatSecurity, FormatY2K, FormatInvalidSpecifier]>,
FormatSecurity, FormatY2K, FormatInvalidSpecifier,
FormatInsufficientArgs]>,
DiagCategory<"Format String Issue">;
def FormatNonLiteral : DiagGroup<"format-nonliteral">;
def Format2 : DiagGroup<"format=2",
Expand Down
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/DiagnosticSemaKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -8945,7 +8945,7 @@ def note_array_declared_here : Note<
"array %0 declared here">;

def warn_printf_insufficient_data_args : Warning<
"more '%%' conversions than data arguments">, InGroup<Format>;
"more '%%' conversions than data arguments">, InGroup<FormatInsufficientArgs>;
def warn_printf_data_arg_not_used : Warning<
"data argument not used by format string">, InGroup<FormatExtraArgs>;
def warn_format_invalid_conversion : Warning<
Expand Down
7 changes: 5 additions & 2 deletions clang/include/clang/Driver/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -1457,11 +1457,11 @@ def fno_pch_validate_input_files_content:
Group<f_Group>, Flags<[DriverOption]>;
def fpch_instantiate_templates:
Flag <["-"], "fpch-instantiate-templates">,
Group<f_Group>, Flags<[CC1Option]>,
Group<f_Group>, Flags<[CC1Option, CoreOption]>,
HelpText<"Instantiate templates already while building a PCH">;
def fno_pch_instantiate_templates:
Flag <["-"], "fno-pch-instantiate-templates">,
Group<f_Group>, Flags<[CC1Option]>;
Group<f_Group>, Flags<[CC1Option, CoreOption]>;
defm pch_codegen: OptInFFlag<"pch-codegen", "Generate ", "Do not generate ",
"code for uses of this PCH that assumes an explicit object file will be built for the PCH">;
defm pch_debuginfo: OptInFFlag<"pch-debuginfo", "Generate ", "Do not generate ",
Expand Down Expand Up @@ -4339,6 +4339,9 @@ def fno_signed_wchar : Flag<["-"], "fno-signed-wchar">,
def fcompatibility_qualified_id_block_param_type_checking : Flag<["-"], "fcompatibility-qualified-id-block-type-checking">,
HelpText<"Allow using blocks with parameters of more specific type than "
"the type system guarantees when a parameter is qualified id">;
def fpass_by_value_is_noalias: Flag<["-"], "fpass-by-value-is-noalias">,
HelpText<"Allows assuming by-value parameters do not alias any other value. "
"Has no effect on non-trivially-copyable classes in C++.">, Group<f_Group>;

// FIXME: Remove these entirely once functionality/tests have been excised.
def fobjc_gc_only : Flag<["-"], "fobjc-gc-only">, Group<f_Group>,
Expand Down
16 changes: 0 additions & 16 deletions clang/lib/APINotes/APINotesYAMLCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,22 +429,6 @@ namespace llvm {
}
};

template <>
struct ScalarTraits<VersionTuple> {
static void output(const VersionTuple &value, void*,
llvm::raw_ostream &out) {
out << value;
}
static StringRef input(StringRef scalar, void*, VersionTuple &value) {
if (value.tryParse(scalar))
return "not a version number in the form XX.YY";

return StringRef();
}

static QuotingType mustQuote(StringRef) { return QuotingType::None; }
};

template <>
struct MappingTraits<Param> {
static void mapping(IO &io, Param& p) {
Expand Down
26 changes: 21 additions & 5 deletions clang/lib/AST/ASTImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1743,12 +1743,28 @@ ASTNodeImporter::ImportDeclContext(DeclContext *FromDC, bool ForceImport) {
Decl *ImportedDecl = *ImportedOrErr;
FieldDecl *FieldTo = dyn_cast_or_null<FieldDecl>(ImportedDecl);
if (FieldFrom && FieldTo) {
const RecordType *RecordFrom = FieldFrom->getType()->getAs<RecordType>();
const RecordType *RecordTo = FieldTo->getType()->getAs<RecordType>();
if (RecordFrom && RecordTo) {
RecordDecl *FromRecordDecl = RecordFrom->getDecl();
RecordDecl *ToRecordDecl = RecordTo->getDecl();
RecordDecl *FromRecordDecl = nullptr;
RecordDecl *ToRecordDecl = nullptr;
// If we have a field that is an ArrayType we need to check if the array
// element is a RecordDecl and if so we need to import the defintion.
if (FieldFrom->getType()->isArrayType()) {
// getBaseElementTypeUnsafe(...) handles multi-dimensonal arrays for us.
FromRecordDecl = FieldFrom->getType()->getBaseElementTypeUnsafe()->getAsRecordDecl();
ToRecordDecl = FieldTo->getType()->getBaseElementTypeUnsafe()->getAsRecordDecl();
}

if (!FromRecordDecl || !ToRecordDecl) {
const RecordType *RecordFrom =
FieldFrom->getType()->getAs<RecordType>();
const RecordType *RecordTo = FieldTo->getType()->getAs<RecordType>();

if (RecordFrom && RecordTo) {
FromRecordDecl = RecordFrom->getDecl();
ToRecordDecl = RecordTo->getDecl();
}
}

if (FromRecordDecl && ToRecordDecl) {
if (FromRecordDecl->isCompleteDefinition() &&
!ToRecordDecl->isCompleteDefinition()) {
Error Err = ImportDefinition(FromRecordDecl, ToRecordDecl);
Expand Down
11 changes: 7 additions & 4 deletions clang/lib/AST/DeclObjC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,8 @@ ObjCMethodDecl *ObjCMethodDecl::getNextRedeclarationImpl() {
if (!Redecl && isRedeclaration()) {
// This is the last redeclaration, go back to the first method.
return cast<ObjCContainerDecl>(CtxD)->getMethod(getSelector(),
isInstanceMethod());
isInstanceMethod(),
/*AllowHidden=*/true);
}

return Redecl ? Redecl : this;
Expand Down Expand Up @@ -982,7 +983,8 @@ ObjCMethodDecl *ObjCMethodDecl::getCanonicalDecl() {
if (isRedeclaration()) {
// It is possible that we have not done deserializing the ObjCMethod yet.
ObjCMethodDecl *MD =
cast<ObjCContainerDecl>(CtxD)->getMethod(Sel, isInstanceMethod());
cast<ObjCContainerDecl>(CtxD)->getMethod(Sel, isInstanceMethod(),
/*AllowHidden=*/true);
return MD ? MD : this;
}

Expand Down Expand Up @@ -1299,8 +1301,9 @@ void ObjCMethodDecl::getOverriddenMethods(
const ObjCMethodDecl *Method = this;

if (Method->isRedeclaration()) {
Method = cast<ObjCContainerDecl>(Method->getDeclContext())->
getMethod(Method->getSelector(), Method->isInstanceMethod());
Method = cast<ObjCContainerDecl>(Method->getDeclContext())
->getMethod(Method->getSelector(), Method->isInstanceMethod(),
/*AllowHidden=*/true);
}

if (Method->isOverriding()) {
Expand Down
3 changes: 2 additions & 1 deletion clang/lib/Basic/Targets/OSTargets.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ class LLVM_LIBRARY_VISIBILITY DarwinTargetInfo : public OSTargetInfo<Target> {
MinVersion = llvm::VersionTuple(5U);
break;
default:
llvm_unreachable("Unexpected OS");
// Conservatively return 8 bytes if OS is unknown.
return 64;
}

unsigned Major, Minor, Micro;
Expand Down
12 changes: 8 additions & 4 deletions clang/lib/CodeGen/CGCall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2192,6 +2192,13 @@ void CodeGenModule::ConstructAttributeList(
if (AI.getIndirectByVal())
Attrs.addByValAttr(getTypes().ConvertTypeForMem(ParamType));

auto *Decl = ParamType->getAsRecordDecl();
if (CodeGenOpts.PassByValueIsNoAlias && Decl &&
Decl->getArgPassingRestrictions() == RecordDecl::APK_CanPassInRegs)
// When calling the function, the pointer passed in will be the only
// reference to the underlying object. Mark it accordingly.
Attrs.addAttribute(llvm::Attribute::NoAlias);

CharUnits Align = AI.getIndirectAlign();

// In a byval argument, it is important that the required
Expand Down Expand Up @@ -3746,10 +3753,7 @@ void CodeGenFunction::EmitNonNullArgCheck(RValue RV, QualType ArgType,
}

SanitizerScope SanScope(this);
assert(RV.isScalar());
llvm::Value *V = RV.getScalarVal();
llvm::Value *Cond =
Builder.CreateICmpNE(V, llvm::Constant::getNullValue(V->getType()));
llvm::Value *Cond = EmitNonNullRValueCheck(RV, ArgType);
llvm::Constant *StaticData[] = {
EmitCheckSourceLocation(ArgLoc), EmitCheckSourceLocation(AttrLoc),
llvm::ConstantInt::get(Int32Ty, ArgNo + 1),
Expand Down
7 changes: 7 additions & 0 deletions clang/lib/CodeGen/CGExpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,13 @@ Address CodeGenFunction::EmitPointerWithAlignment(const Expr *E,
return Address(EmitScalarExpr(E), Align);
}

llvm::Value *CodeGenFunction::EmitNonNullRValueCheck(RValue RV, QualType T) {
llvm::Value *V = RV.getScalarVal();
if (auto MPT = T->getAs<MemberPointerType>())
return CGM.getCXXABI().EmitMemberPointerIsNotNull(*this, V, MPT);
return Builder.CreateICmpNE(V, llvm::Constant::getNullValue(V->getType()));
}

RValue CodeGenFunction::GetUndefRValue(QualType Ty) {
if (Ty->isVoidType())
return RValue::get(nullptr);
Expand Down
3 changes: 3 additions & 0 deletions clang/lib/CodeGen/CodeGenFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -3563,6 +3563,9 @@ class CodeGenFunction : public CodeGenTypeCache {
// LValue Expression Emission
//===--------------------------------------------------------------------===//

/// Create a check that a scalar RValue is non-null.
llvm::Value *EmitNonNullRValueCheck(RValue RV, QualType T);

/// GetUndefRValue - Get an appropriate 'undef' rvalue for the given type.
RValue GetUndefRValue(QualType Ty);

Expand Down
17 changes: 15 additions & 2 deletions clang/lib/CodeGen/SwiftCallingConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,24 @@ void SwiftAggLowering::addTypedData(QualType type, CharUnits begin) {
// Just add it all as opaque.
addOpaqueData(begin, begin + CGM.getContext().getTypeSizeInChars(type));

// Everything else is scalar and should not convert as an LLVM aggregate.
// Atomic types.
} else if (const auto *atomicType = type->getAs<AtomicType>()) {
auto valueType = atomicType->getValueType();
auto atomicSize = CGM.getContext().getTypeSizeInChars(atomicType);
auto valueSize = CGM.getContext().getTypeSizeInChars(valueType);

addTypedData(atomicType->getValueType(), begin);

// Add atomic padding.
auto atomicPadding = atomicSize - valueSize;
if (atomicPadding > CharUnits::Zero())
addOpaqueData(begin + valueSize, begin + atomicSize);

// Everything else is scalar and should not convert as an LLVM aggregate.
} else {
// We intentionally convert as !ForMem because we want to preserve
// that a type was an i1.
auto llvmType = CGM.getTypes().ConvertType(type);
auto *llvmType = CGM.getTypes().ConvertType(type);
addTypedData(llvmType, begin);
}
}
Expand Down
Loading