Skip to content
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

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

Merged
merged 418 commits into from Nov 3, 2020

Conversation

texasmichelle
Copy link
Collaborator

No description provided.

slavapestov and others added 30 commits October 7, 2020 16:24
…wift

[lldb][swift] Only run Swift API tests when Swift support is enabled
…/tensorflow-stage

* 'swift/main' of github.com:apple/llvm-project:
  [lldb][swift] Only run Swift API tests when Swift support is enabled
…ftEnabled

[lldb][swift] Only run Swift Shell tests when Swift support is enabled
…a13cbe273500b020c4fad1252

[dwarfdump] Warn for tags with DW_CHILDREN_yes but no children.
Check that ModuleNamesBuffer is valid before attempting to read strings
from it to avoid possible segfaults. Wasn't able to come up with a test
case, but this does happen based on reported crashes.

Also use StringRef.substr, which returns an empty string if the index is
out of bounds, for even further safety.

Resolves rdar://69809414
[clang][Index] Add guard to IndexUnitReader module name reading
[Swift] Synthesized type alias should be implicit to avoid upsetting ASTScope
The swiftTest decorator should be on all Swift tests to make sure they are only
run in configurations where Swift is supported. Otherwise these tests are still
run and will fail when the Swift plugin is disabled.
Rename test to give it a unique name
ObjCContainerDecl.getMethod returns a nullptr by default when the
container is a hidden prototype. Callsites where the method is being
looked up on the redeclaration's own container should skip this check
since they (rightly) expect a valid method to be found.

Resolves rdar://69444243

Reviewed By: akyrtzi

Differential Revision: https://reviews.llvm.org/D89024
Restore unix signal table to its original glory and mark it as not to be
clang-formatted.

(cherry picked from commit 0fcacef)
Except for the few people actually debugging shells, stopping on a
SIGCONT doesn't add any value.  And for people trying to run tests
under the debugger, stopping here is actively inconvenient.  So this
patch switches the default behavior to not stop.

Differential Revision: https://reviews.llvm.org/D89019

(cherry picked from commit a68ffb1)
Restore the signal tables to its original glory and mark it as not to be
clang-formatted.

(cherry picked from commit 9d7b08b)
[AST] Fix crashes caused by redeclarations in hidden prototypes
[lldb][swift] Add missing swiftTest decorators
…80dc040f4f055db6df695ac12+a68ffb19d392c6d52f6e42925217a77b4cd71cee+9d7b08bd0657688c186b5b3d39512c484e8c37f5

Change the default handling of SIGCONT to nosuppress/nostop/notify
Transform() recursively transforms a demangle tree by doing a
post-order traversal and replacing each node with fn(node).

In most cases this utility will do less work than the ad-hoc
implementation it is replacing because we now only recreate nodes that
actually changed.
vedantk and others added 23 commits October 22, 2020 14:45
Revert "[CodeExtractor] Don't create bitcasts when inserting lifetime markers (NFCI)"
This change moves elfabi related code to llvm/InterfaceStub library
so it can be shared by multiple llvm tools without causing cyclic
dependencies.

Differential Revision: https://reviews.llvm.org/D85678
This change removes unnecessary HEADER_DIRS from //llvm/lib/
InterfaceStub/CMakeLists.txt file.

Differential Revision: https://reviews.llvm.org/D85936
It appears for Swift there was confusing errors when trying to parse APINotes, when libAPINotes and libInterfaceStub are linked, they both export symbol
`__ZN4llvm4yaml7yamlizeINS_12VersionTupleEEENSt3__19enable_ifIXsr16has_ScalarTraitsIT_EE5valueEvE4typeERNS0_2IOERS5_bRNS0_12EmptyContextE`, and discovered
same symbol defined within llvm-ifs.

This consolidates the boilerplate into YAMLTraits and defers the specific validation in reading the whole input.
fixes: rdar://problem/70450563

Reviewed By: phosek, dblaikie

Differential Revision: https://reviews.llvm.org/D89764
* Its now defined in YAMLTraits, to avoid ODR violation.
 Remove print statement from test that resulted in a non-deterministic…
This was skipped as it apparently regressed while the swiftTests were
unintentionally disabled. I can't reproduce this failure anymore and it
seems to consistently pass, so let's re-enable it.
Since commit eaceb46 AddVariableInfo is
always using the dynamic type if requested. The dynamic types appear
to not always be usable and caused a few tests to fail(1), but as the swiftTest
decorator was always skipping all Swift tests since commit
2c911bc this wasn't discovered before landing.

This patch restores the old behaviour where possible by first trying the
non-dynamic type and falling back to the dynamic type in case the non-dynamic
type can't be fully realized.

(1) All the failures seem to be related to us reading corrupt data from memory
when using the dynamic type in the expression parser. The dynamic types itself
appear to be perfectly fine, so it's not clear why the new behaviour doesn't work.
[lldb][swift] Re-enable TestSwiftUnknownSelf
[lldb][swift] Use dynamic types as a fallback in AddVariableInfo
TypeSystem: silence some errors identified by MSVC
…/tensorflow-stage

* 'swift/main' of github.com:apple/llvm-project:
  [lldb][swift] Only run Swift API tests when Swift support is enabled
… swift/tensorflow-stage

* 'swift/tensorflow' of github.com:apple/llvm-project:
  Remove ISO646 include
Add a TypeSystemSwiftTypeRef::GetTupleElementName() method.
…/tensorflow-stage

* 'swift/main' of github.com:apple/llvm-project:
  Fix compilation warnings
  Add a TypeSystemSwiftTypeRef::GetTupleElementName() method.
@texasmichelle texasmichelle merged commit 8567332 into swift/tensorflow Nov 3, 2020
@texasmichelle texasmichelle deleted the swift/tensorflow-merge branch November 3, 2020 16:19
swift-ci pushed a commit that referenced this pull request Dec 5, 2023
When all the large const offsets masked with the same value from bit-12 to bit-23.
Fold
  add     x8, x0, #2031, lsl #12
  add     x8, x8, #960
  ldr     x9, [x8, x8]
  ldr     x8, [x8, #2056]

into
  add     x8, x0, #2031, lsl #12
  ldr     x9, [x8, #960]
  ldr     x8, [x8, #3016]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet