Skip to content

[pull] swift/main from apple:swift/main #1113

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 24 commits into from
Feb 5, 2021

Conversation

pull[bot]
Copy link

@pull pull bot commented Feb 5, 2021

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

medismailben and others added 24 commits February 1, 2021 14:39
This patch adds an `SBTarget::IsLoaded(const SBModule&) const` endpoint
to lldb's Scripting Bridge API. As the name suggests, it will allow the
user to know if the module is loaded in a specific target.

rdar://37957625

Differential Review: https://reviews.llvm.org/D95686

Signed-off-by: Med Ismail Bennani <[email protected]>
This patch skips the test for the SBTarget::IsLoaded method on windows
since the logic is different.

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

Signed-off-by: Med Ismail Bennani <[email protected]>
[lldb/API] Expose Module::IsLoadedInTarget() to SB API (NFC)
…cad5c79ee45a273019

[lldb] Use the host architecture in TestAppleSimulatorOSType.py
Convert `assertTrue(a == b)` to `assertEqual(a, b)` to produce better failure messages.

These were mostly done via regex search & replace, with some manual fixes.

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

(cherry picked from commit 619e2e0)
…vertingCond

If the G_BR + G_BRCOND in this combine use the same MBB, then it will infinite
loop. Don't allow that to happen.

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

(cherry picked from commit 02d4b36)

rdar://73842004
It seems that recording fundamental return type is bogus.

This can trigger asserts when running a test with reproducers so this
patch updates the `SBTarget::IsLoaded` test to stop recording them.

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

Signed-off-by: Med Ismail Bennani <[email protected]>
[GlobalISel] Check if branches use the same MBB in matchOptBrCondByInvertingCond
…sertEqual-a-b

[lldb] Convert assertTrue(a == b) to assertEqual(a, b)
[lldb/test] Stop recording fundamental return types (NFC)
…aea+ec6815a72dfc+39047f6c2e5e

🍒/ganymede/870a58a75889+9a62b7242aea+ec6815a72dfc+39047f6c2e5e
…3294c0d18e0d21373a

[lldb] Fix debugserver-entitlements.plist path
CodeGenModule::EmitNullConstant() creates constants with their "in memory"
type, not their "in vregs" type. The one place where this difference matters is
when the type is _Bool, as that is an i1 when in vregs and an i8 in memory.

Fixes: rdar://73361264
The guaranteed alignment is 16 bytes on Darwin.

rdar://73431623

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

(cherry picked from commit aade0ec)
Honor the CPU type (and subtype) when launching the inferior on macOS.

Part of this functionality was thought to be no longer needed and
removed in 85bd436, however it's still
needed, for example to launch binaries under Rosetta 2 on Apple Silicon.

This patch will use posix_spawnattr_setarchpref_np if available and
fallback to posix_spawnattr_setbinpref_np if not.

Differential revision: https://reviews.llvm.org/D95922

(cherry picked from commit 98e50a7)
Fix the guaranteed alignment of memory returned by malloc/new on Darwin
…55cbb2e1f89a802e28

[lldb] Honor the CPU type & subtype when launching on macOS
@pull pull bot merged commit 73229a9 into swiftwasm:swift/main Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants