- Aug 11, 2020
-
-
Gongyu Deng authored
[lldb] watchpoint ID common completion for commands `watchpoint delete/enable/disable/modify/ignore` 1. Added a common completion WatchPointIDs to complete with a list of the IDs of the current watchpoints; 2. Applied the completion to these commands: watchpoint delete/enable/disable/modify/ignore; 3. Added a correlated test case. Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D84104
-
Florian Hahn authored
This is the max version of D85046. This change causes binary changes in 44 out of 237 benchmarks (out of MultiSource/SPEC2000/SPEC2006) Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D85189
-
Georgii Rymar authored
It turns that gnu-ifunc-plt-i386.s and gnu-ifunc-plt.s tests are broken. Initially they were implemented in D27581 and tested that `IRELATIVE` relocations are placed after other relocations in `.rel.plt`. Later, we started to place `IRELATIVE` relocations to `.rela.dyn` (D65651). Also, at some point `.plt` was renamed to `.iplt` (D71520). Now, `gnu-ifunc*` tests mentioned do not test what they intended to test initially: they should test that `IRELATIVE` relocations are placed after other ones in `.rela.dyn`. Also, comments needs to be updated accordingly after changes performed. This patch updates them. Differential revision: https://reviews.llvm.org/D85642
-
Kerry McLaughlin authored
When the result type of insertelement needs to be split, SplitVecRes_INSERT_VECTOR_ELT will try to store the vector to a stack temporary, store the element at the location of the stack temporary plus the index, and reload the Lo/Hi parts. This patch does the following to ensure this works for scalable vectors: - Sets the StackID with getStackIDForScalableVectors() in CreateStackTemporary - Adds an IsScalable flag to getMemBasePlusOffset() and scales the offset by VScale when this is true - Ensures the immediate is clamped correctly by clampDynamicVectorIndex so that we don't try to use an out of range index Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D84874 -
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Haojian Wu authored
If a functionDecl is invalid (e.g. return type cannot be formed), int is use as he fallback type, which may lead to some bogus diagnostics. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D85714
-
David Stenberg authored
Allow the GNU .debug_macro extension to be parsed and printed by llvm-dwarfdump. In an upcoming patch support will be added for emitting that format also. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D82974
-
David Stenberg authored
This is a preparatory patch for allowing the GNU .debug_macro extension, which is a precursor to the DWARF 5 format, to be emitted by LLVM for earlier DWARF versions. The entries share the same encoding and behavior as in DWARF5; there are just more entries in the DWARF 5 format. Therefore, we could have used those existing DWARF 5 entries, but I think that explicitly referring to the GNU macro variants makes the code more clear. The defines that this patch introduces can be found in GCC in the dwarf2.h header: https://gcc.gnu.org/git/?p=gcc.git;a=blob; f=include/dwarf2.h; h=0b6facfd4cf4c02320c7328114231b128ab42d5e; hb=dccbf1e2a6e544f71b4a5795f0c79015db019fc3#l425 Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D82972
-
David Stenberg authored
Move the Dwarf version checks that determine if the .debug_macro section should be emitted, into a DwarfDebug member. This is a preparatory refactoring for allowing the GNU .debug_macro extension, which is a precursor to the DWARF 5 format, to be emitted by LLVM for earlier DWARF versions. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D82971
-
Gongyu Deng authored
1. Added a common completion completing with a list of the threads of the current process; 2. Apply the common completion above to these commands: thread continue/info/exception/select/step-in/step-inst/step-inst-over/step-out/step-over/step-script 3. Correlated test case test_common_completion_thread_index. Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D84088
-
Kirill Bobyrev authored
Reviewed By: hokein Differential Revision: https://reviews.llvm.org/D85711
-
Benjamin Kramer authored
No need to set the name on an instruction that's going away, just move it from the old instruction to the new one.
-
Kerry McLaughlin authored
Changes the Offset arguments to both functions from int64_t to TypeSize & updates all uses of the functions to create the offset using TypeSize::Fixed() Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D85220
-
Gongyu Deng authored
1. Added a common completion StopHookIDs to provide completion with a list of stop hook ids; 2. Applied the common completion to commands: `target stop-hook delete/enable/disable'; 3. Added an related test case. Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D84123
-
Benjamin Kramer authored
Found by asan!
-
Raphael Isemann authored
Just implementing the default case that emits an error to supress the compiler warning.
-
Rainer Orth authored
Two ubsan tests FAIL on Sparc: UBSan-Standalone-sparc :: TestCases/TypeCheck/misaligned.cpp UBSan-Standalone-sparcv9 :: TestCases/TypeCheck/misaligned.cpp I've reported the details in Bug 47015, but it boils down to the fact that the `s1` subtest actually incurs a fault on strict-alignment targets like Sparc which UBSan doesn't expect. This can be fixed like the `w1` subtest by compiling with `-fno-sanitize-recover=alignment`. Tested on `sparcv9-sun-solaris2.11`, `amd64-pc-solaris2.11`, and `x86_64-pc-linux-gnu`. Differential Revision: https://reviews.llvm.org/D85433
-
Kazushi (Jam) Marukawa authored
Change bitreverse/bswap/ctlz/ctpop/cttz regression tests to support i128 and signext/zeroext i32 types. This patch also change the way to support i32 types using 64 bits VE instructions. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D85712
-
Paul Walker authored
These are useful instructions when lowering fixed length vector extends, so I've broken this patch out as kind of NFC like work. Differential Revision: https://reviews.llvm.org/D85546
-
Simon Pilgrim authored
The plan is to use this for (F)HADD/SUB opcodes as well as PACKs - similar to how we use combineShuffleWithHorizOp
-
Simon Pilgrim authored
Fixes PR47070
-
Gongyu Deng authored
1. Added a common completion ModuleUUIDs to provide a list of the UUIDs of modules for completion; 2. Added a new enumeration item eArgTypeModuleUUID to CommandArgumentType which is set as the option argument type of OptionGroupUUID; 3. Applied the module UUID completion to the argument of the type eArgTypeModuleUUID in lldb/source/Interpreter/CommandObject.cpp; 4. Added an related test case in lldb/test/API/functionalities/completion/TestCompletion.py.
-
Paul Walker authored
Differential Revision: https://reviews.llvm.org/D85665
-
Gongyu Deng authored
[lldb] move the frame index completion into a common completion and apply it to `thread backtrace -s` Commands frame select and thread backtrace -s can be completed in the same way. Moved the dedicated completion of frame select into a common completion and apply it to the both commands, along with the test modified.
-
David Zarzycki authored
Caught with a build-system that remounts the source directory read-only.
-
Gongyu Deng authored
Dedicated completion for the command `target modules search-paths insert` with a test case. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D83309
-
Kai Nacke authored
Twelvth -> Twelfth
-
Kai Nacke authored
Adds the binary format goff and the operating system zos to the triple class. goff is selected as default binary format if zos is choosen as operating system. No further functionality is added. Reviewers: efriedma, tahonermann, hubert.reinterpertcast, MaskRay Reviewed By: efriedma, tahonermann, hubert.reinterpertcast Differential Revision: https://reviews.llvm.org/D82081
-
Dávid Bolvanský authored
-
Florian Hahn authored
The entries in VectorizableTree are not necessarily ordered by their position in basic blocks. Collect them and order them by dominance so later instructions are guaranteed to be visited first. For instructions in different basic blocks, we only scan to the beginning of the block, so their order does not matter, as long as all instructions in a basic block are grouped together. Using dominance ensures a deterministic order. The modified test case contains an example where we compute a wrong spill cost (2) without this patch, even though there is no call between any instruction in the bundle. This seems to have limited practical impact, .e.g on X86 with a recent Intel Xeon CPU with -O3 -march=native -flto on MultiSource,SPEC2000,SPEC2006 there are no binary changes. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D82444
-
Gongyu Deng authored
1. Added a new common completion TypeLanguages to provide a list of supporting languages; 2. Bound the completion to eArgTypeLanguage; 3. Added a related test case.
-
Dávid Bolvanský authored
Proof: https://alive2.llvm.org/ce/z/4xharr Solves PR47051 Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D85593
-
Florian Hahn authored
SCEVExpander already tracks which instructions have been inserted n InsertedValues/InsertedPostIncValues. This patch adds an additional vector to collect the instructions in insertion order. This can then be used to remove exactly the instructions inserted by the expander. This replaces ExpandedValuesCleaner, which in some cases might remove values not inserted by the expander (e.g. if a value was dead before insertion and is then used during expansion). Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D84327
-
Gongyu Deng authored
Provided dedicated tab completions for `command delete/unalias`. Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D81128
-
Raphael Isemann authored
-
Gongyu Deng authored
Dedicated completion for the command `thread plan discard` with a corresponding test case. Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D83234
-
Balázs Kéri authored
Report undefined pointer dereference in similar way as null pointer dereference. Reviewed By: NoQ Differential Revision: https://reviews.llvm.org/D84520
-
Raphael Isemann authored
No one is calling this function it seems and according to https://bugs.llvm.org/show_bug.cgi?id=47088 this can leak memory, so let's just remove it: Quote from the bug report: > Before return on line 146, the memory allocated on line 130 is not freed. Reviewed By: amccarth Differential Revision: https://reviews.llvm.org/D85633
-
Sam Parker authored
We skip debug instructions in RDA so we cannot attempt to look them up in our instruction map without causing a crash. But some of the methods select the last instruction in the block and this instruction may be a debug instruction... So, use getLastNonDebugInstr instead of calling back on a MachineBasicBlock. MachineBasicBlock iterators have also been updated to use instructionsWithoutDebug so we can avoid the manual checks for debug instructions. Differential Revision: https://reviews.llvm.org/D85658
-