- Jul 20, 2020
-
-
Muhammad Omair Javaid authored
Summary: This patch removes dependence of RegisterContextPOSIX_arm64 on register number enums defined in lldb-arm64-register-enums.h. RegisterContextPOSIX_arm64 makes use of helper functions to access register numbers defined in RegisterInfos_arm64.h via RegisterInfosPOSIX_arm64. Reviewers: labath Reviewed By: labath Subscribers: emaste, kristof.beyls, arphaman, danielkiss, lldb-commits Differential Revision: https://reviews.llvm.org/D83753
-
Balázs Kéri authored
Summary: Report resource leaks with non-fatal error. Report every resource leak. Stream state is cleaned up at `checkDeadSymbols`. Reviewers: Szelethus, baloghadamsoftware, NoQ Reviewed By: Szelethus Subscribers: rnkovacs, xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, gamesh411, Charusso, martong, ASDenysPetrov, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82845
-
Elvina Yakubova authored
This patch changes llvm-readelf (and llvm-readobj for consistency) behavior to print an error when executed with no input files. Reading from stdin can be achieved via a '-' for the input object. Fixes https://bugs.llvm.org/show_bug.cgi?id=46400 Differential Revision: https://reviews.llvm.org/D83704 Reviewed by: jhenderson, MaskRay, sbc, jyknight
-
Elvina Yakubova authored
This patch updates tests using llvm-readobj and llvm-readelf, because soon reading from stdin will be achievable only via a '-' as described here: https://bugs.llvm.org/show_bug.cgi?id=46400. Patch with changes to llvm-readobj behavior is here: https://reviews.llvm.org/D83704 Differential Revision: https://reviews.llvm.org/D83912 Reviewed by: jhenderson, MaskRay, grimar
-
Tim Northover authored
It's useful for a debugger to be able to distinguish an @llvm.debugtrap from a (noreturn) @llvm.trap, so this extends the existing Windows behaviour to other platforms.
-
Georgii Rymar authored
The warning message was updated (https://reviews.llvm.org/rG256aea816da45bd3bc52317cbc89e704095a8991)
-
Petar Avramovic authored
Add narrowScalarFor action. Add narrow scalar for typeIndex == 0 for G_FPTOSI/G_FPTOUI. Legalize using narrowScalarFor as s16->s32 G_FPTOSI/G_FPTOUI followed by s32->s64 G_SEXT/G_ZEXT. Differential Revision: https://reviews.llvm.org/D84010
-
Georgii Rymar authored
There is a strange "feature" of the code: it handles all relocations as `Elf_Rela`. For handling `Elf_Rel` it converts them to `Elf_Rela` and passes `bool IsRela` to specify the real type everywhere. A related issue is that the `decode_relrs` helper in lib/Object has to return `Expected<std::vector<Elf_Rela>>` because of that, though it could return a vector of `Elf_Rel`. I think we should just start using templates for relocation types, it makes the code cleaner and shorter. This patch does it. Differential revision: https://reviews.llvm.org/D83871
-
Raphael Isemann authored
Summary: When modules reference each other (which happens for example with the different modules LLDB loads when debugging -gmodules-compiled binaries), just iterating over the module list once isn't good enough to find all orphans. Any removed modules in the module list will also clear up the shared pointers they hold to other modules, so after any module was removed from the list, LLDB should iterate again and check if any additional modules can no be safely deleted. This is currently causing that many gmodules tests are not cleaning up all allocated modules which causes cleanup asserts to fail (right now these asserts just mark the test as unsupported, but after D83865 the tests will start failing). Reviewers: aprantl, clayborg, JDevlieghere Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D84015
-
Georgii Rymar authored
It fixes/improves the following: 1) Some code was duplicated. 2) A "The .MIPS.abiflags section has a wrong size" error was not reported as a warning, but was printed to stdout for the LLVM style. Also, it was reported as an error for the GNU style. This patch changes the behavior to be consistent and to report warnings. 3) `unwrapOrError()` was used before, now a warning is reported instead. Differential revision: https://reviews.llvm.org/D84033
-
Dmitri Gribenko authored
Summary: In C++11 and later Clang generates an implicit conversion from int to size_t in the AST. Reviewers: ymandel, hokein Reviewed By: hokein Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83966
-
Raphael Isemann authored
This is unused and also calls a non-existent 'Get' overload.
-
Roman Lebedev authored
Common code sinking is already guarded with a (with default-off!) flag, so add a flag for hoisting, too. D84108 will hopefully make hoisting off-by-default too.
-
Roman Lebedev authored
Also, move one test into it's correct place
-
sstefan1 authored
Summary: All tests are updated, except wrapper.ll since it is not working nicely with newly created functions. Reviewers: jdoerfert, uenoku, baziotis, homerdin Subscribers: arphaman, jfb, kuter, bbn, okura, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D84130
-
Xing GUO authored
This patch is trying to fix build failure. Failed tests: http://lab.llvm.org:8011/builders/clang-ppc64le-linux-multistage/builds/12574
-
Lang Hames authored
Virtual function calls are now only made when the pool needs to be grown to accommodate o new request.
-
Raphael Isemann authored
-
Xing GUO authored
This patch is trying to make build bots happy. Failed bots: http://lab.llvm.org:8011/builders/ppc64le-lld-multistage-test/builds/10705 http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-android/builds/33595
-
Lang Hames authored
Identify relocations by (section name, offset) pairs, rather than plain vmaddrs. This makes it easier to cross-reference debugging output for relocations with output from standard object inspection tools (otool, readelf, objdump, etc.).
-
Xing GUO authored
This patch implements the .debug_rnglists section. We are able to produce the .debug_rnglists section by the following syntax. ``` debug_rnglists: - Format: DWARF32 ## Optional Length: 0x1234 ## Optional Version: 5 ## Optional AddressSize: 0x08 ## Optional SegmentSelectorSize: 0x00 ## Optional OffsetEntryCount: 2 ## Optional Offsets: [1, 2] ## Optional Lists: - Entries: - Operator: DW_RLE_base_address Values: [ 0x1234 ] ``` The generated .debug_rnglists is verified by llvm-dwarfdump, except for the operator DW_RLE_startx_endx, since llvm-dwarfdump doesn't support it. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D83624 -
Juneyoung Lee authored
This patch adds support more operations. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D83926
-
sstefan1 authored
-
sstefan1 authored
Summary: This introduces new flag to the update_test_checks and update_cc_test_checks that allows for function attributes to be checked in a check-line. If the flag is not set, the behavior should remain the same. Reviewers: jdoerfert Subscribers: arichardson, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83629
-
Lang Hames authored
When processing a MachO SUBTRACTOR/UNSIGNED pair, if the UNSIGNED target is non-extern then check the r_symbolnum field of the relocation to find the targeted section and use the section's address to find 'ToSymbol'. Previously 'ToSymbol' was found by loading the initial value stored at the fixup location and treating this as an address to search for. This is incorrect, however: the initial value includes the addend and will point to the wrong block if the addend is less than zero or greater than the block size. rdar://65756694
-
Juneyoung Lee authored
-
Jameson Nash authored
The getAllOnesValue can only handle things that are bitcast from a ConstantInt, while here we bitcast through a pointer, so we may see more complex objects (like Array or Struct). Differential Revision: https://reviews.llvm.org/D83870
-
Alex Richardson authored
The function extractArgumentsFromModule() was passing a one-based index to, but replaceFunctionCalls() was expecting a zero-based argument index. This resulted in assertion errors when reducing function call arguments with different types. Additionally, the Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D84099
-
Logan Smith authored
-
Juneyoung Lee authored
This patch - adds `canCreateUndefOrPoison` - refactors `canCreatePoison` so it can deal with constantexprs `canCreateUndefOrPoison` will be used at D83926. Reviewed By: nikic, jdoerfert Differential Revision: https://reviews.llvm.org/D84007
-
Bruno Ricci authored
[clang] Fix the warning for a non-void consteval function without a return value to actually say "consteval". This warning was modified in 796ed03b to use the term "consteval" for consteval functions. However the warning has never worked as intended since the diagnostic's arguments are used in the wrong order. This was unfortunately missed by 796ed03b since no test did exercise this specific warning. Additionally send the NamedDecl* into the diagnostic instead of just the IdentifierInfo* to correctly work with special names and template arguments.
-
Bruno Ricci authored
Hopefully this will make the bot a little less noisy. Rationale for each: AlignTrailingComments: We don't want to force-align the various expected-error and friends. CommentPragmas: Tell clang-format to leave the "// CHECK:" and the "// expected-" alone. AlwaysBreakTemplateDeclarations: Templates in tests often have no break between the template-head and the declaration. Differential Revision: https://reviews.llvm.org/D83901
-
- Jul 19, 2020
-
-
Wenlei He authored
Summary: This change added a new inline advisor that takes optimization remarks from previous inlining as input, and provides the decision as advice so current inlining can replay inline decisions of a different compilation. Dwarf inline stack with line and discriminator is used as anchor for call sites including call context. The change can be useful for Inliner tuning as it provides a channel to allow external input for tweaking inline decisions. Existing alternatives like alwaysinline attribute is per-function, not per-callsite. Per-callsite inline intrinsic can be another solution (not yet existing), but it's intrusive to implement and also does not differentiate call context. A switch -sample-profile-inline-replay=<inline_remarks_file> is added to hook up the new inline advisor with SampleProfileLoader's inline decision for replay. Since SampleProfileLoader does top-down inlining, inline decision can be specialized for each call context, hence we should be able to replay inlining accurately. However with a bottom-up inliner like CGSCC inlining, the replay can be limited due to lack of specialization for different call context. Apart from that limitation, the new inline advisor can still be used by regular CGSCC inliner later if needed for tuning purpose. Subscribers: mgorny, aprantl, hiraditya, llvm-commits Tags: #llvm Resubmit for https://reviews.llvm.org/D84086
-
Aaron Ballman authored
-
Aaron Ballman authored
-
Aaron Ballman authored
-
Sanjay Patel authored
fma reassoc A, B, C --> fadd (fmul A, B), C (when target has no FMA hardware) C/C++ code may use explicit fma() calls (which become LLVM fma intrinsics in IR) but then gets compiled with -ffast-math or similar. For targets that do not have FMA hardware, we don't want to go out to the math library for a precise but slow FMA result. I tried this as a generic DAGCombine, but it caused infinite looping on more than 1 other target, so there's likely some over-reaching fma formation happening. There's also a potential intersection of strict FP with fast-math here. Deferring to current behavior for that case (assuming that strict-ness overrides fast-ness). Differential Revision: https://reviews.llvm.org/D83981
-
Roman Lebedev authored
This reverts commit 4500db8c, which was reverted because lower thresholds exposed a new issue (PR46680). Now that it was resolved by d12ec0f7, we can reinstate lower limits and wait for a new bugreport before reverting this again...
-
Nikita Popov authored
Both users of predicteinfo (NewGVN and SCCP) are interested in getting a cmp constraint on the predicated value. They currently implement separate logic for this. This patch adds a common method for this in PredicateBase. This enables a missing bit of PredicateInfo handling in SCCP: Now the predicate on the condition itself is also used. For switches it means we know that the switched-on value is the same as the case value. For assumes/branches we know that the condition is true or false. Differential Revision: https://reviews.llvm.org/D83640