-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove few LLVMRust...() methods instead use LLVM C-API. #67353
Conversation
LLVMRustBuildCleanupPad() LLVMRustBuildCleanupRet() LLVMRustBuildCatchPad() LLVMRustBuildCatchRet() LLVMRustBuildCatchSwitch() from llvmrust/RustWrapper.cpp as after https://reviews.llvm.org/D45100 requied C API are avaliable in LLVM. r? @alexcrichton
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
LGTM, thanks! For the record: D45100 is in LLVM 7 (see llvm/llvm-project@478fce9) which is our current minimum supported LLVM version. @bors r+ |
📌 Commit 7ec9dc7 has been approved by |
🌲 The tree is currently closed for pull requests below priority 100, this pull request will be tested once the tree is reopened |
The comparison can be performed on the raw bytes, as the chars can only match if their UTF8 encoding matches. This avoids the `is_char_boundary` checks and translates to a straight `u8` slice comparison which is optimized to a memcmp or inline comparison where appropriate.
This enables constant folding when matching a literal char. Fixes rust-lang#41993.
.gitignore should not ignore files that exist in the repository. The ignore of .cargo applies to the committed .cargo directory used in an example: $ git ls-files --exclude-standard --ignored src/test/run-make/thumb-none-qemu/example/.cargo/config Explicitly un-ignore that file.
This avoids the problems of high thread counts (i.e., contention in the kernel on the jobserver pipe due to thundering herd of readers) while stil giving rustc some parallelism to work with.
This also removes the unused NO_PARALLEL_COMPILER flag; if we want that functionality we can readd it but this makes sure we really are parallel everywhere. This also patches a test that has differing output in the parallel case (hopefully deterministically so!).
These depend on rustc being bug-free and it looks like that's not currently entirely the case (e.g., we know of at least one bug that introduces nondeterminism).
…, r=alexcrichton" This reverts commit 3ed3b8b, reversing changes made to 99b8953. We will reland a similar patch at a future date but for now we should get a nightly released in a few hours with the parallel patch, so this should be reverted to make sure that the next nightly is not parallel-enabled.
I messed this PR while creating a new PR. I will recreate this PR, sorry for inconvenience. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Remove following methods
LLVMRustBuildCleanupPad()
LLVMRustBuildCleanupRet()
LLVMRustBuildCatchPad()
LLVMRustBuildCatchRet()
LLVMRustBuildCatchSwitch()
from llvmrust/RustWrapper.cpp as after https://reviews.llvm.org/D45100
requied C API are avaliable in LLVM.
r? @alexcrichton
#46437