- Apr 01, 2022
-
-
Jason Molenda authored
Many callers of SendPacket() in RNBRemote.cpp have a local std::string object, call c_str() on it to pass a c-string, which is then copied into a std::string temporary object. Also free JSONGenerator objects once we've formatted them into ostringstream and don't need the objects any longer, to reduce max memory use in debugserver. Differential Revision: https://reviews.llvm.org/D122848 rdar://91117263
-
Mehdi Amini authored
Inadvertently removed `populateWithGenerated` while testing native patterns.
-
Chuanqi Xu authored
This solves the multiple defintiion issue https://github.com/llvm/llvm-project/issues/54269. I think the cause of the bug might be an oversight. We just forget to edit this when implementing partitions. And it should be a good fix. Reviewed By: iains Differential Revision: https://reviews.llvm.org/D121271
-
Kees Cook authored
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=CSKY -DLLVM_ENABLE_ASSERTIONS=OFF builds will fail to link due to undefined `llvm::MCInst::dump() const` ``` ld.lld: error: undefined symbol: llvm::MCInst::dump() const >>> referenced by CSKYAsmBackend.cpp >>> /home/kees/src/built-compilers/llvm/stage2-prof-gen/lto.cache/llvmcache-0656FC38C728A7FE0F767D10CD84C7F820114C46:(llvm::CSKYAsmBackend::relaxInstruction(llvm::MCInst&, llvm::MCSubtargetInfo const&) const) ``` Wrap it in LLVM_DEBUG(). Fixes https://github.com/llvm/llvm-project/issues/54684 Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D122854
-
Mehdi Amini authored
This shows that pushing constant to the right in a commutative op leads to `applyPatternsAndFoldGreedily` to converge without applying all the patterns. Differential Revision: https://reviews.llvm.org/D122870
-
Mehdi Amini authored
Revert "[GreedPatternRewriter] Preprocess constants while building worklist when not processing top down" This reverts commit 59bbc7a0. This exposes an issue breaking the contract of `applyPatternsAndFoldGreedily` where we "converge" without applying remaining patterns.
-
Fangrui Song authored
This approach is used by AArch64/RISCV to make frame-setup/frame-destroy instructions contiguous instead of being interleaved by CFI instructions. Code checking `MBBI->getFlag(MachineInstr::FrameSetup) || MBBI->isCFIInstruction()` can be simplified to just check FrameSetup. This helps locate all CFI instructions in the prologue, which can be handy to use .cfi_remember_state/.cfi_restore_state to decrease unwind table size (D114545). Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D122541
-
Kai Luo authored
-
Vitaly Buka authored
This UB detected by -fsanitize-memory-use-after-dtor in tensorflow/MLIR.
-
Tan Jinhua authored
Add test cases for coverage_watermark in llvm-cov, also refer to https://reviews.llvm.org/D116876 Differential Revision: https://reviews.llvm.org/D122785
-
Jake Vossen authored
Replace forward slash with backward slash. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D120930
-
Lian Wang authored
Reviewed By: jacquesguan Differential Revision: https://reviews.llvm.org/D122720
-
Richard Smith authored
lexically contains a mention of the pack. Systematically distinguish between syntactic and semantic references to packs, especially when propagating dependence from a type into an expression. We should consult the type-as-written when computing syntactic dependence and should consult the semantic type when computing semantic dependence. Fixes #54402.
-
yanming authored
Add vp.fptoui, vp.uitofp, vp.fptrunc, vp.fpext, vp.trunc, vp.zext, vp.sext, vp.ptrtoint, vp.inttoptr intrinsic and docs. Reviewed By: frasercrmck, craig.topper Differential Revision: https://reviews.llvm.org/D122291
-
Hongtao Yu authored
[llvm-profgen] Fixing a context attribure update issue due to a non-derministic processing order on different platforms. A context can be created by invoking the `getFunctionProfileForContext` function in two ways: - by using a probe and its calling context. - by removing the leaf frame from an existing contexts. The first way is used when generating a function profile for a given LBR range, and the input `WasLeafInlined` is computed depending on the actually probe in the LBR range. The second way is used when using the entry count of an inlinee function profile to update its inliner callsite count, so `WasLeafInlined` is unknown for the inliner frame. The two invocations can happen in different order on different platforms, since the lbr ranges are stored in an unordered_map, and we are making sure `ContextWasInlined` is always set correctly. This should fix the random test failure introduced by D121655 Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D122844
-
Artur Pilipenko authored
Fix for https://github.com/llvm/llvm-project/issues/51257. Differential Revision: https://reviews.llvm.org/D122601
-
Leonard Grey authored
Differential Revision: https://reviews.llvm.org/D122843
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
Avoids use of the default address space parameter, and avoids some assumptions about the incoming address space.
-
Matt Arsenault authored
Use the contextually appropriate value instead of relying on the default address space default parameters. Usually you should be reusing a pre-existing type.
-
LLVM GN Syncbot authored
-
- Mar 31, 2022
-
-
Zequan Wu authored
-
Jorge Gorbe Moya authored
This reverts commit 46774df3.
-
Luboš Luňák authored
Needed at least for -DLLVM_ENABLE_MODULES=On.
-
Shivam authored
-
Julian Lettner authored
On Darwin, we want to limit the parallelism during test execution for sanitizer tests that use shadow memory. The reason is explained by this existing comment: > Only run up to 3 processes that require shadow memory simultaneously > on 64-bit Darwin. Using more scales badly and hogs the system due to > inefficient handling of large mmap'd regions (terabytes) by the > kernel. Previously we detected 3 cases: * on-device: limit to 1 process * 64-bit: macOS & simulators, limit to 3 processes * others (32-bit): no limitation We checked for the 64-bit case like this: `if arch in ['x86_64', 'x86_64h']` which misses macOS running on AS. Additionally, we don't care about 32-bit anymore, so I've simplified this to 2 cases: on-device and everything else. Differential Revision: https://reviews.llvm.org/D122751
-
Jim Ingham authored
Protecting against accidental overwriting of commands is good, but having to pass a flag to overwrite the command when developing your commands is pretty annoying. This adds a setting to defeat the protection so you can do this once at the start of your session and not have to worry about it again. Differential Revision: https://reviews.llvm.org/D122680
-
Artem Belevich authored
Otherwise we may crash because the special member has not been sufficiently set up yet. Fixes https://github.com/llvm/llvm-project/issues/54537 Differential Revision: https://reviews.llvm.org/D122846
-
Matt Arsenault authored
Avoid using getPointerSize and pass through the original value type.
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Simon Pilgrim authored
-
Shafik Yaghmour authored
Applied modernize-use-equals-default clang-tidy check over LLDB. This check is already present in the lldb/.clang-tidy config. Differential Revision: https://reviews.llvm.org/D121844
-
Stefan Pintilie authored
To store a byval parameter the existing code would store as many 8 byte elements as was required to store the full size of the byval parameter. For example, a paramter of size 16 would store two element of 8 bytes. A paramter of size 12 would also store two elements of 8 bytes. This would sometimes store too many bytes as the size of the paramter is not always a factor of 8. This patch fixes that issue and now byval paramters are stored with the correct number of bytes. Reviewed By: nemanjai, #powerpc, quinnp, amyk Differential Revision: https://reviews.llvm.org/D121430
-
Vy Nguyen authored
(Orignal phab: https://reviews.llvm.org/D116787)
-
Valentin Clement authored
Re-introduce a fully qualified type on teh fir.freemem operation. Since this is the only operation where the prefix gets elided in fir, this patch make it fully qualified so the dialect syntax feels more consistent. Reviewed By: vdonaldson Differential Revision: https://reviews.llvm.org/D122839
-