SuccessChanges

Summary

  1. [clang-scan-deps] strip the --serialize-diagnostics argument (details)
  2. [clang-tidy] Add check for classes missing -hash ⚠️ (details)
  3. gn build: Merge r372445 (details)
  4. Support for 64-bit PC-relative relocations for X86_64 (details)
  5. Improve -Wtautological-overlap-compare (details)
  6. LiveIntervals: Add missing operator!= for segments (details)
  7. AMDGPU/GlobalISel: Allow selection of scalar min/max (details)
  8. avr targetinfo: remove unneeded dep on MC (details)
  9. Revert assertion added by r372394 (details)
  10. Merge and improve code that detects same value in comparisons. (details)
  11. Fix bad APInt compare. (details)
  12. [Clang Interpreter] Fixed Bug 43362, build failure on GCC (details)
  13. [X86] Add test case to show failure to fold load with getmantss due to (details)
  14. [X86] Use sse_load_f32/f64 and timm in patterns for memory form of (details)
  15. Stop tracking atexit/__cxa_atexit/pthread_atfork allocations in (details)
  16. Avoid memory leak in ASan test (details)
  17. Add __lsan::ScopedInterceptorDisabler for strerror(3) (details)
  18. Attempt to fix a windows buildbot failure (details)
  19. [MachinePipeliner] Improve the TargetInstrInfo API (details)
  20. Revert "[SampleFDO] Expose an interface to return the size of a section (details)
  21. [AArch64][GlobalISel] Make <4 x s32> G_ASHR and G_LSHR legal. (details)
  22. [AArch64][GlobalISel] Selection support for G_ASHR of <2 x s64> (details)
  23. [AArch64][GlobalISel] Implement selection for G_SHL of <2 x i64> (details)
  24. [NFC][X86] Adjust check prefixes in bmi.ll (PR43381) (details)
  25. [Docs] Updates sidebar links (details)
  26. [Docs] Bug fix for document not included in toctree (details)
  27. [Support] Add a DataExtractor constructor that takes ArrayRef<uint8_t> (details)
  28. [Attributor] Implement "norecurse" function attribute deduction (details)
  29. Recommit [SampleFDO] Expose an interface to return the size of a section (details)
  30. Test mail. NFC. (details)
  31. SROA: Check Total Bits of vector type (details)
  32. [CodeView] Add pragma push/pop_macro for ARM64_FPSR to enum header (details)
  33. [LLDB] Fix compilation for MinGW, remove redundant class name on inline (details)
  34. [LLDB] Check for the GCC/MinGW compatible arch defines for windows, in (details)
  35. [LLDB] Use LLVM_FALLTHROUGH instead of a custom comment (details)
  36. [LLDB] Use SetErrorStringWithFormatv for cases that use LLVM style (details)
  37. [LLDB] Cast -1 (as invalid socket) to the socket type before comparing (details)
  38. [Docs] Adds new page for Getting Involved articles (details)
  39. [Docs] Updates sidebar links (details)
  40. [NFC][InstSimplify] Add exhaustive test coverage for (details)
  41. [InstSimplify][NFC] Reorganize simplifyUnsignedRangeCheck() to emphasize (details)
  42. [InstSimplify] simplifyUnsignedRangeCheck(): X >= Y && Y == 0  -->  Y == (details)
  43. NFC: Change ObjCQualified*TypesAreCompatible to take (details)
  44. Use _WIN32 instead of _MSC_VER (details)
  45. [X86] Add test memset and memcpy testcases for D67874. NFC (details)
  46. Move classes into anonymous namespaces. NFC. (details)
  47. Clang-format: Add Whitesmiths indentation style (details)
  48. [Cost][X86] Add v2i64 truncation costs (details)
  49. [Hexagon] Don't dereference dyn_cast<ConstantFPSDNode> result. NFCI. (details)
  50. [MIPS] Don't dereference dyn_cast<> Constant results. NFCI. (details)
  51. AMDGPUPrintfRuntimeBinding - silence static analyzer null dereference (details)
  52. [VPlan] Silence static analyzer dyn_cast null dereference warning. NFCI. (details)
  53. [Lanai] LanaiAsmParser - Silence static analyzer dyn_cast null (details)
  54. [NVPTX] NVPTXLowerAggrCopies - Silence static analyzer (details)
  55. gn build: Add build files for llvm/lib/Target/AVR (details)
  56. gn build: Add missing RISCV to llvm_targets_to_build="all" (details)
  57. [AArch64] AArch64StackTagging - Silence static analyzer dyn_cast<> null (details)
  58. Fix uninitialized variable warning. NFCI. (details)
  59. [InstCombine] add tests for icmp fold hindered by min/max; NFC (details)
  60. [InstCombine] allow icmp+binop folds before min/max bailout (PR43310) (details)
  61. [compiler-rt] Fix lint check failure on comments (details)
  62. gn build: consolidate "Nothing to do" branches in targets.gni (details)
Commit 172e8a7a5de1c5aa110272da5483138e9aabc204 by Alex Lorenz
[clang-scan-deps] strip the --serialize-diagnostics argument
This ensures that clang-scan-deps won't write out diagnostics when
scanning dependencies.
llvm-svn: 372444
The file was modifiedclang/tools/clang-scan-deps/ClangScanDeps.cpp
The file was addedclang/test/ClangScanDeps/Inputs/strip_diag_serialize.json
The file was addedclang/test/ClangScanDeps/strip_diag_serialize.cpp
The file was modifiedclang/include/clang/Tooling/ArgumentsAdjusters.h
The file was modifiedclang/lib/Tooling/ArgumentsAdjusters.cpp
Commit 2f6a52816fc33cf24373ce2aaf7df08b95403f44 by mog
[clang-tidy] Add check for classes missing -hash ⚠️
Summary: Apple documentation states that:
"If two objects are equal, they must have the same hash value. This last
point is particularly important if you define isEqual: in a subclass and
intend to put instances of that subclass into a collection. Make sure
you also define hash in your subclass."
https://developer.apple.com/documentation/objectivec/1418956-nsobject/1418795-isequal?language=objc
In many or all versions of libobjc, -[NSObject isEqual:] is a pointer
equality check and -[NSObject hash] returns the messaged object's
pointer. A relatively common form of developer error is for a developer
to override -isEqual: in a subclass without overriding -hash to ensure
that hashes are equal for objects that are equal.
It is assumed that an override of -isEqual: is a strong signal for
changing the object's equality operator to something other than pointer
equality which implies that a missing override of -hash could result in
distinct objects being equal but having distinct hashes because they are
independent instances. This added check flags classes that override
-isEqual: but inherit NSObject's implementation of -hash to warn of the
potential for unexpected behavior.
The proper implementation of -hash is the responsibility of the
developer and the check will only verify that the developer made an
effort to properly implement -hash. Developers can set up unit tests to
verify that their implementation of -hash is appropriate.
Test Notes: Ran check-clang-tools.
Reviewers: aaron.ballman, benhamilton
Reviewed By: aaron.ballman
Subscribers: Eugene.Zelenko, mgorny, xazax.hun, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D67737
llvm-svn: 372445
The file was addedclang-tools-extra/clang-tidy/objc/MissingHashCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/objc/ObjCTidyModule.cpp
The file was modifiedclang-tools-extra/docs/ReleaseNotes.rst
The file was modifiedclang-tools-extra/clang-tidy/objc/CMakeLists.txt
The file was addedclang-tools-extra/docs/clang-tidy/checks/objc-missing-hash.rst
The file was addedclang-tools-extra/test/clang-tidy/objc-missing-hash.m
The file was addedclang-tools-extra/clang-tidy/objc/MissingHashCheck.h
The file was modifiedclang-tools-extra/docs/clang-tidy/checks/list.rst
Commit c96d5545f0c97b3ad88672a09a4feeb7256ce2cb by llvmgnsyncbot
gn build: Merge r372445
llvm-svn: 372446
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clang-tidy/objc/BUILD.gn
Commit 3e6590c45177958030513e6be199fc2d54f13ac7 by apilipenko
Support for 64-bit PC-relative relocations for X86_64
ELF files generated for X86_64 targets may contain 64-bit PC-relative 
relocations. For instance, an exception handler table entry contains the
start  of exception-throwing frame relative to the start of exception
handler. As these  two labels belong to different sections, their
difference and so the relocation  is 64-bit.
An attempt to parse such file, i.e. in DWARFContext::create, results in
"failed  to compute relocation" error.
This fix adds support for such relocations to RelocationResolver.cpp.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D67779
Patch by Oleg Pliss (Oleg.Pliss@azul.com)
llvm-svn: 372447
The file was modifiedllvm/lib/Object/RelocationResolver.cpp
Commit 6541c7988b83b30b2590ca6b3e23585ae04a02a2 by rtrieu
Improve -Wtautological-overlap-compare
Allow this warning to detect a larger number of constant values,
including negative numbers, and handle non-int types better.
Differential Revision: https://reviews.llvm.org/D66044
llvm-svn: 372448
The file was modifiedclang/lib/Analysis/CFG.cpp
The file was modifiedclang/docs/ReleaseNotes.rst
The file was modifiedclang/test/Sema/warn-unreachable.c
The file was modifiedclang/lib/Analysis/ReachableCode.cpp
The file was modifiedclang/test/Analysis/cfg.cpp
The file was modifiedclang/test/SemaCXX/warn-unreachable.cpp
The file was modifiedclang/test/Sema/warn-overlap.c
Commit bd7f2354ccbaa50923b134b223349ae532443aba by Matthew.Arsenault
LiveIntervals: Add missing operator!= for segments
llvm-svn: 372449
The file was modifiedllvm/include/llvm/CodeGen/LiveInterval.h
Commit eb6eb694e42d85541a1abc79f6025425540f8a7c by Matthew.Arsenault
AMDGPU/GlobalISel: Allow selection of scalar min/max
I believe all of the uniform/divergent pattern predicates are redundant
and can be removed. The uniformity bit already influences the register
class, and nothhing has broken when I've removed this and others.
llvm-svn: 372450
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-smax.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-smin.mir
The file was modifiedllvm/lib/Target/AMDGPU/SOPInstructions.td
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-umin.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-umax.mir
Commit d98d3ea9fe382c2fd0beeaf170532bf8e3521d47 by nicolasweber
avr targetinfo: remove unneeded dep on MC
llvm-svn: 372451
The file was modifiedllvm/lib/Target/AVR/TargetInfo/LLVMBuild.txt
Commit 27a8039171817a38f76adf51793f0d22f84dd78e by Yaxun.Liu
Revert assertion added by r372394
The assertion added by r372394 causes CUDA test in test-suite to assert.
The assertion was not there originally, so revert it.
llvm-svn: 372452
The file was modifiedclang/lib/Sema/SemaCUDA.cpp
Commit 4c05de8c1d157f4b5e0091a52dbbcce7242ee485 by rtrieu
Merge and improve code that detects same value in comparisons.
-Wtautological-overlap-compare and self-comparison from
-Wtautological-compare relay on detecting the same operand in different
locations.  Previously, each warning had it's own operand checker.  Now,
both are merged together into one function that each can call.  The
function also now looks through member access and array accesses.
Differential Revision: https://reviews.llvm.org/D66045
llvm-svn: 372453
The file was modifiedclang/include/clang/AST/Expr.h
The file was modifiedclang/test/SemaCXX/self-comparison.cpp
The file was modifiedclang/test/Sema/warn-overlap.c
The file was modifiedclang/docs/ReleaseNotes.rst
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/lib/AST/Expr.cpp
The file was modifiedclang/lib/Analysis/CFG.cpp
The file was modifiedclang/test/Analysis/array-struct-region.cpp
The file was modifiedclang/test/SemaCXX/compare-cxx2a.cpp
Commit 77297f0761d2009e25d5d709cdcb041229f3493c by rtrieu
Fix bad APInt compare.
APInt comparison require both to have the same bitwidth.  Since only the
value is needed, use the compare function APInt::isSameValue instead.
llvm-svn: 372454
The file was modifiedclang/lib/AST/Expr.cpp
The file was modifiedclang/test/SemaCXX/self-comparison.cpp
Commit 10793e791f5b149cbdc4a836cace1552b04fb332 by n
[Clang Interpreter] Fixed Bug 43362, build failure on GCC
free() was not directly included in InterpStack.cpp, added include now.
llvm-svn: 372455
The file was modifiedclang/lib/AST/Interp/InterpStack.cpp
Commit 4fa12ac92ced6dafdaf1e7c7e7a4b86d774e0b83 by craig.topper
[X86] Add test case to show failure to fold load with getmantss due to
isel pattern looking for Constant instead of TargetConstant
The intrinsic has an immarg so its gets created with a TargetConstant
instead of a Constant after r372338. The isel pattern was only updated
for the register form, but not the memory form.
llvm-svn: 372457
The file was modifiedllvm/test/CodeGen/X86/avx512-intrinsics.ll
Commit 04682939eb7e5ff06ec7e50cbe205b5c0069285f by craig.topper
[X86] Use sse_load_f32/f64 and timm in patterns for memory form of
vgetmantss/sd.
Previously we only matched scalar_to_vector and scalar load, but we
should be able to narrow a vector load or match vzload.
Also need to match TargetConstant instead of Constant. The register
patterns were previously updated, but not the memory patterns.
llvm-svn: 372458
The file was modifiedllvm/lib/Target/X86/X86InstrAVX512.td
The file was modifiedllvm/test/CodeGen/X86/avx512-intrinsics.ll
Commit 8827047551570b7ed7088765c3de2a8cce6823b8 by n54
Stop tracking atexit/__cxa_atexit/pthread_atfork allocations in
LSan/NetBSD
Summary: The atexit(3) and __cxa_atexit() calls allocate internally
memory and free on exit, after executing all callback. This causes false
positives as DoLeakCheck() is called from the atexit handler. In the
LSan/ASan tests there are strict checks triggering false positives here.
Intercept all atexit(3) and __cxa_atexit() calls and disable LSan when
calling the real functions.
Stop tracing allocations in pthread_atfork(3) funtions, as there are
performed internal allocations that are not freed for the time of
running StopTheWorld() code. This avoids false-positives.
The same changes have to be replicated in the ASan and LSan runtime.
Non-NetBSD OSs are not tested and this code is restricted to NetBSD
only.
Reviewers: dvyukov, joerg, mgorny, vitalybuka, eugenis
Reviewed By: vitalybuka
Subscribers: jfb, llvm-commits, #sanitizers
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D67331
llvm-svn: 372459
The file was modifiedcompiler-rt/lib/asan/asan_interceptors.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
The file was modifiedcompiler-rt/lib/lsan/lsan_interceptors.cpp
The file was modifiedcompiler-rt/lib/asan/asan_interceptors.cpp
Commit 5fe1e55d35413b1904cfcf16ec15495398921fe5 by n54
Avoid memory leak in ASan test
Summary: Add missing free(3) for the malloc(3) call.
Detected on NetBSD with LSan.
Reviewers: joerg, mgorny, vitalybuka, dvyukov
Reviewed By: vitalybuka
Subscribers: llvm-commits, #sanitizers
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D67330
llvm-svn: 372460
The file was modifiedcompiler-rt/test/asan/TestCases/inline.cpp
Commit 1b58389428ed07a7322ba9c2bcaeec99807f9457 by n54
Add __lsan::ScopedInterceptorDisabler for strerror(3)
Summary: strerror(3) on NetBSD uses internally TSD with a destructor
that is never fired for exit(3). It's correctly called for
pthread_exit(3) scenarios.
This is a case when a leak on exit(3) is expected, unavoidable and
harmless.
Reviewers: joerg, vitalybuka, dvyukov, mgorny
Reviewed By: vitalybuka
Subscribers: dmgreen, kristof.beyls, jfb, llvm-commits, #sanitizers
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D67337
llvm-svn: 372461
The file was modifiedcompiler-rt/lib/asan/asan_interceptors.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
The file was modifiedcompiler-rt/lib/lsan/lsan_interceptors.cpp
Commit c90fda6abe84127a99a8fe4341b6ed7c8abee47e by kristof.umann
Attempt to fix a windows buildbot failure
llvm-svn: 372462
The file was modifiedclang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
Commit 8a74eca398a012a9b3b18b10c2b5aedef203d04b by jmolloy
[MachinePipeliner] Improve the TargetInstrInfo API
analyzeLoop/reduceLoopCount
Recommit: fix asan errors.
The way MachinePipeliner uses these target hooks is stateful - we reduce
trip count by one per call to reduceLoopCount. It's a little overfit for
hardware loops, where we don't have to worry about stitching a loop
induction variable across prologs and epilogs (the induction variable is
implicit).
This patch introduces a new API:
  /// Analyze loop L, which must be a single-basic-block loop, and if
the
/// conditions can be understood enough produce a PipelinerLoopInfo
object.
virtual std::unique_ptr<PipelinerLoopInfo>
analyzeLoopForPipelining(MachineBasicBlock *LoopBB) const;
The return value is expected to be an implementation of the abstract
class:
  /// Object returned by analyzeLoopForPipelining. Allows software
pipelining
/// implementations to query attributes of the loop being pipelined.
class PipelinerLoopInfo {
public:
   virtual ~PipelinerLoopInfo();
   /// Return true if the given instruction should not be pipelined and
should
   /// be ignored. An example could be a loop comparison, or induction
variable
   /// update with no users being pipelined.
   virtual bool shouldIgnoreForPipelining(const MachineInstr *MI) const
= 0;
    /// Create a condition to determine if the trip count of the loop is
greater
   /// than TC.
   ///
   /// If the trip count is statically known to be greater than TC,
return
   /// true. If the trip count is statically known to be not greater
than TC,
   /// return false. Otherwise return nullopt and fill out Cond with the
test
   /// condition.
   virtual Optional<bool>
   createTripCountGreaterCondition(int TC, MachineBasicBlock &MBB,
                                SmallVectorImpl<MachineOperand> &Cond) =
0;
    /// Modify the loop such that the trip count is
   /// OriginalTC + TripCountAdjust.
   virtual void adjustTripCount(int TripCountAdjust) = 0;
    /// Called when the loop's preheader has been modified to
NewPreheader.
   virtual void setPreheader(MachineBasicBlock *NewPreheader) = 0;
    /// Called when the loop is being removed.
   virtual void disposed() = 0;
};
The Pipeliner (ModuloSchedule.cpp) can use this object to modify the
loop while allowing the target to hold its own state across all calls.
This API, in particular the disjunction of creating a trip count check
condition and adjusting the loop, improves the code quality in
ModuloSchedule.cpp.
llvm-svn: 372463
The file was modifiedllvm/include/llvm/CodeGen/TargetInstrInfo.h
The file was modifiedllvm/lib/CodeGen/TargetInstrInfo.cpp
The file was modifiedllvm/lib/Target/Hexagon/HexagonInstrInfo.h
The file was modifiedllvm/lib/Target/Hexagon/HexagonInstrInfo.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrInfo.cpp
The file was modifiedllvm/test/CodeGen/Hexagon/swp-epilog-phi7.ll
The file was modifiedllvm/lib/CodeGen/ModuloSchedule.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrInfo.h
The file was modifiedllvm/lib/CodeGen/MachinePipeliner.cpp
The file was modifiedllvm/include/llvm/CodeGen/ModuloSchedule.h
Commit 3bb56fa4789095631074d42dc61e1c1536342f8c by aemerson
Revert "[SampleFDO] Expose an interface to return the size of a section
or the size"
This reverts commit f118852046a1d255ed8c65c6b5db320e8cea53a0.
Broke the macOS build/greendragon bots.
llvm-svn: 372464
The file was modifiedllvm/include/llvm/ProfileData/SampleProf.h
The file was modifiedllvm/include/llvm/ProfileData/SampleProfReader.h
The file was modifiedllvm/tools/llvm-profdata/llvm-profdata.cpp
The file was removedllvm/test/tools/llvm-profdata/show-prof-size.test
The file was modifiedllvm/lib/ProfileData/SampleProfReader.cpp
Commit fae979bc682bdb21a9bdf2e4170ee54afabee5c7 by aemerson
[AArch64][GlobalISel] Make <4 x s32> G_ASHR and G_LSHR legal.
llvm-svn: 372465
The file was modifiedllvm/lib/Target/AArch64/AArch64LegalizerInfo.cpp
The file was addedllvm/test/CodeGen/AArch64/GlobalISel/legalize-vector-shift.mir
Commit a59a886832bd223127f5c7edf2cf729ba6857fe7 by aemerson
[AArch64][GlobalISel] Selection support for G_ASHR of <2 x s64>
Just add an extra case to the existing selection logic.
llvm-svn: 372466
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/select-vector-shift.mir
The file was modifiedllvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
Commit 9c7d599dec9c9b028dc56ac65e8154452fc2c77a by aemerson
[AArch64][GlobalISel] Implement selection for G_SHL of <2 x i64>
Simple continuation of existing selection support.
llvm-svn: 372467
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/select-vector-shift.mir
The file was modifiedllvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
Commit 854b0f0f0030718af4257bb0a3c7620cf10a035c by lebedev.ri
[NFC][X86] Adjust check prefixes in bmi.ll (PR43381)
llvm-svn: 372468
The file was modifiedllvm/test/CodeGen/X86/bmi.ll
Commit 75d2c2692112a4bd9327eb5bede0f96be9ea7a47 by d4m1887
[Docs] Updates sidebar links
Adds additional links to sidebar. Also removes Glossary and FAQ from
LLVM Design & Overview section. (These links now reside on the sidebar.)
llvm-svn: 372469
The file was modifiedllvm/docs/_templates/indexsidebar.html
The file was modifiedllvm/docs/index.rst
Commit e75c6b6d48d857a95750f63923ea7d26c220a9a4 by d4m1887
[Docs] Bug fix for document not included in toctree
Fixes 'document not included in toctree' bug for FAQ and Lexicon topics.
llvm-svn: 372470
The file was modifiedllvm/docs/index.rst
Commit 9ec7117506355771a8410b6c92c94bc6f6754ffb by maskray
[Support] Add a DataExtractor constructor that takes ArrayRef<uint8_t>
The new constructor can simplify some llvm-readobj call sites.
Reviewed By: grimar, dblaikie
Differential Revision: https://reviews.llvm.org/D67797
llvm-svn: 372473
The file was modifiedllvm/include/llvm/Support/DataExtractor.h
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
The file was modifiedllvm/tools/llvm-readobj/DwarfCFIEHPrinter.h
Commit 63f6066b53d5094945fc47f382480290520b1605 by uenoku.tokotoko
[Attributor] Implement "norecurse" function attribute deduction
Summary: This patch introduces `norecurse` function attribute deduction.
`norecurse` will be deduced if the following conditions hold:
* The size of SCC in which the function belongs equals to 1.
* The function doesn't have self-recursion.
* We have `norecurse` for all call site.
To avoid a large change, SCC is calculated using scc_iterator in
InfoCache initialization for now.
Reviewers: jdoerfert, sstefan1
Reviewed By: jdoerfert
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67751
llvm-svn: 372475
The file was modifiedllvm/test/Transforms/FunctionAttrs/willreturn.ll
The file was modifiedllvm/lib/Transforms/IPO/Attributor.cpp
The file was modifiedllvm/include/llvm/Transforms/IPO/Attributor.h
The file was modifiedllvm/test/Transforms/FunctionAttrs/norecurse.ll
Commit eee532cd5f908f1ade1752781ce82abbde74047b by wmi
Recommit [SampleFDO] Expose an interface to return the size of a section
or the size of the profile for profile in ExtBinary format.
Fix a test failure on Mac.
[SampleFDO] Expose an interface to return the size of a section or the
size of the profile for profile in ExtBinary format.
Sometimes we want to limit the size of the profile by stripping some
functions with low sample count or by stripping some function names with
small text size from profile symbol list. That requires the profile
reader to have the interfaces returning the size of a section or the
size of total profile. The patch add those interfaces.
At the same time, add some dump facility to show the size of each
section.
Differential revision: https://reviews.llvm.org/D67726
llvm-svn: 372478
The file was modifiedllvm/include/llvm/ProfileData/SampleProfReader.h
The file was addedllvm/test/tools/llvm-profdata/show-prof-size.test
The file was modifiedllvm/lib/ProfileData/SampleProfReader.cpp
The file was modifiedllvm/include/llvm/ProfileData/SampleProf.h
The file was modifiedllvm/tools/llvm-profdata/llvm-profdata.cpp
Commit c62136e6748f1d4f5d94f188203fd998bbb9f588 by quic_ssarda
Test mail. NFC.
Testing commit acces. NFC.
llvm-svn: 372479
The file was modifiedllvm/lib/Transforms/Scalar/SROA.cpp
Commit cd629ea0a8ef55458e1a75a3ef8e43ad68974479 by quic_ssarda
SROA: Check Total Bits of vector type
While Promoting alloca instruction of Vector Type,  Check total size in
bits of its slices too. If they don't match, don't promote the alloca
instruction.
Bug : https://bugs.llvm.org/show_bug.cgi?id=42585
llvm-svn: 372480
The file was addedllvm/test/Transforms/SROA/vector-promotion-different-size.ll
The file was modifiedllvm/lib/Transforms/Scalar/SROA.cpp
Commit 1bfdab52a76bf667aa345b5026f1d524ed6d4ac8 by martin
[CodeView] Add pragma push/pop_macro for ARM64_FPSR to enum header
This fixes (one aspect of) compilation of LLDB with MSVC for ARM64.
LLDB source files include intrin.h, and the MSVC intrin.h transitively
includes arm64intr.h, which has an ARM64_FPSR define, which clashes with
the enum declaration.
Differential Revision: https://reviews.llvm.org/D67864
llvm-svn: 372481
The file was modifiedllvm/include/llvm/DebugInfo/CodeView/CodeViewRegisters.def
Commit f4deacf995c73045a2172f35cbaf289fa97e7abc by martin
[LLDB] Fix compilation for MinGW, remove redundant class name on inline
member
This fixes build errors like these:
NativeRegisterContextWindows.h:22:33: error: extra qualification on
member 'NativeRegisterContextWindows'
NativeRegisterContextWindows::NativeRegisterContextWindows(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Differential Revision: https://reviews.llvm.org/D67856
llvm-svn: 372482
The file was modifiedlldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows.h
Commit 2e25c44dc3fa97defe03e4b5d813344577d6b5fb by martin
[LLDB] Check for the GCC/MinGW compatible arch defines for windows, in
addition to MSVC defines
This matches how it is done in all other similar ifdefs throughout lldb.
Differential Revision: https://reviews.llvm.org/D67858
llvm-svn: 372483
The file was modifiedlldb/source/Plugins/Process/Windows/Common/RegisterContextWindows.cpp
The file was modifiedlldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp
Commit 5c38730dbd002a9f669bf3fb3c0a8b19e84bdd97 by martin
[LLDB] Use LLVM_FALLTHROUGH instead of a custom comment
This fixes a warning when built with Clang in MinGW mode.
Differential Revision: https://reviews.llvm.org/D67860
llvm-svn: 372484
The file was modifiedlldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp
Commit ed78dc8e4371b573e3daca3ee6d39231df218918 by martin
[LLDB] Use SetErrorStringWithFormatv for cases that use LLVM style
format strings
SetErrorStringWithFormat only supports normal printf style format
strings.
Differential Revision: https://reviews.llvm.org/D67862
llvm-svn: 372485
The file was modifiedlldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
The file was modifiedlldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp
Commit 5534a6750087ef4290c58238337b0dad29397f46 by martin
[LLDB] Cast -1 (as invalid socket) to the socket type before comparing
This silences warnings about comparison of integers between unsigned
long long (which is what the Windows SOCKET type is) and signed int when
building in MinGW mode.
Differential Revision: https://reviews.llvm.org/D67863
llvm-svn: 372486
The file was modifiedlldb/tools/lldb-vscode/lldb-vscode.cpp
The file was modifiedlldb/source/Host/common/Socket.cpp
Commit c1b0873d4218f4b3fedd9a38961c26ee2e877e8a by d4m1887
[Docs] Adds new page for Getting Involved articles
Adds a new page for existing Getting Involved, Development Process, and
Community Proposals articles. Also moves Mailing Lists, Meetups and
social events, and IRC sections.
llvm-svn: 372487
The file was addedllvm/docs/GettingInvolved.rst
The file was modifiedllvm/docs/index.rst
Commit 4f86528fc1ce4a3303ec668c1d998b081fedc7f8 by d4m1887
[Docs] Updates sidebar links
Adds sidebar links to mailing lists, IRC, and meetups and social events.
llvm-svn: 372488
The file was modifiedllvm/docs/_templates/indexsidebar.html
Commit ac4dda805217f076e8dda009e7433dd278d7113e by lebedev.ri
[NFC][InstSimplify] Add exhaustive test coverage for
simplifyUnsignedRangeCheck().
One case is not handled.
llvm-svn: 372489
The file was addedllvm/test/Transforms/InstSimplify/unsigned-range-checks.ll
Commit e94f156f778cdc1d20cd836cfc5d6df0b77761e1 by lebedev.ri
[InstSimplify][NFC] Reorganize simplifyUnsignedRangeCheck() to emphasize
and/or symmetry
Only a single `X >= Y && Y == 0  -->  Y == 0` fold appears to be
missing.
llvm-svn: 372490
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp
Commit baf809811b066eede7c1093b5c9941e428d6bd5f by lebedev.ri
[InstSimplify] simplifyUnsignedRangeCheck(): X >= Y && Y == 0  -->  Y ==
0
https://rise4fun.com/Alive/v9Y4
llvm-svn: 372491
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp
The file was modifiedllvm/test/Transforms/InstSimplify/unsigned-range-checks.ll
Commit c2ca003baffbdb58b4a2e5c9c5163122844a82d3 by jyknight
NFC: Change ObjCQualified*TypesAreCompatible to take
ObjCObjectPointerType arguments.
All callers already had one, just creating a QualType to pass, after
which the function cast it right back.
llvm-svn: 372492
The file was modifiedclang/lib/Sema/SemaDeclObjC.cpp
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/lib/AST/ASTContext.cpp
The file was modifiedclang/include/clang/AST/ASTContext.h
Commit 5c82608d200e88f4c06b085bef132f7604a39782 by hhb
Use _WIN32 instead of _MSC_VER
Summary: This way it works better with MinGW.
Subscribers: mstorsjo, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D67887
llvm-svn: 372493
The file was modifiedlldb/source/Core/IOHandler.cpp
Commit 38014c553f0d8aa8b5db4fe7b0a2d98c044580f3 by craig.topper
[X86] Add test memset and memcpy testcases for D67874. NFC
llvm-svn: 372494
The file was modifiedllvm/test/CodeGen/X86/memset-nonzero.ll
The file was modifiedllvm/test/CodeGen/X86/memset-zero.ll
The file was modifiedllvm/test/CodeGen/X86/memcpy.ll
Commit 1b38002c7dae02ab8b97f3d3b076e3e5f58c136f by benny.kra
Move classes into anonymous namespaces. NFC.
llvm-svn: 372495
The file was modifiedllvm/lib/Target/Hexagon/HexagonInstrInfo.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrInfo.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp
The file was modifiedclang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
Commit a506ed256aeba5f3d71d1cf58f8d193444a3c694 by mydeveloperday
Clang-format: Add Whitesmiths indentation style
Summary: This patch adds support for the Whitesmiths indentation style
to clang-format. It’s an update to a patch submitted in 2015 (D6833),
but reworks it to use the newer API.
There are still some issues with this patch, primarily around `switch`
and `case` support. The added unit test won’t currently pass because of
the remaining issues.
Reviewers: mboehme, MyDeveloperDay, djasper
Reviewed By: MyDeveloperDay
Subscribers: krasimir, MyDeveloperDay, echristo, cfe-commits
Patch By: @timwoj (Tim Wojtulewicz)
Tags: #clang
Differential Revision: https://reviews.llvm.org/D67627
llvm-svn: 372497
The file was modifiedclang/unittests/Format/FormatTest.cpp
The file was modifiedclang/lib/Format/Format.cpp
The file was modifiedclang/docs/ClangFormatStyleOptions.rst
The file was modifiedclang/lib/Format/ContinuationIndenter.cpp
The file was modifiedclang/include/clang/Format/Format.h
The file was modifiedclang/lib/Format/UnwrappedLineFormatter.cpp
Commit 665ccbff60ff35b750002e28e8ac85cbaf1821c7 by llvm-dev
[Cost][X86] Add v2i64 truncation costs
We are missing costs for a lot of truncation cases, I'm hoping to
address all the 'zero cost' cases in trunc.ll
I thought this was a vector widening side effect, but even before this
we had some interesting LV decisions (notably over indvars) being made
due to these zero costs.
llvm-svn: 372498
The file was modifiedllvm/test/Analysis/CostModel/X86/arith-overflow.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/arith-fix.ll
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
The file was modifiedllvm/test/Analysis/CostModel/X86/arith-fix.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/trunc.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/cast.ll
Commit 0b68a825ac1a3af837b9bec4dcaadbd3e15ec4ce by llvm-dev
[Hexagon] Don't dereference dyn_cast<ConstantFPSDNode> result. NFCI.
The static analyzer is warning about potential null dereference, but we
should be able to use cast<ConstantFPSDNode> directly and if not assert
will fire for us.
llvm-svn: 372499
The file was modifiedllvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
Commit eb2941f10d06e7594a02c7b8749db3659ba13877 by llvm-dev
[MIPS] Don't dereference dyn_cast<> Constant results. NFCI.
The static analyzer is warning about potential null dereferences, but we
should be able to use cast<> directly and if not assert will fire for
us.
llvm-svn: 372500
The file was modifiedllvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
Commit 2de9b107facc2a0320e081787e8dfae43be83008 by llvm-dev
AMDGPUPrintfRuntimeBinding - silence static analyzer null dereference
warnings. NFCI.
llvm-svn: 372501
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
Commit a56bd6c51e9fbbc88a63fbec442964b5ebd8c3a0 by llvm-dev
[VPlan] Silence static analyzer dyn_cast null dereference warning. NFCI.
llvm-svn: 372502
The file was modifiedllvm/lib/Transforms/Vectorize/VPlanHCFGTransforms.cpp
Commit 837959077001fabc556dbfe553e96dcfa8b8a9b8 by llvm-dev
[Lanai] LanaiAsmParser - Silence static analyzer dyn_cast null
dereference warnings. NFCI.
We were already doing this dyn_cast && isa<> && cast<> pattern for some
add*Operands methods, just do this more consistently to stop clang
static analyzer warning so much.
llvm-svn: 372503
The file was modifiedllvm/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
Commit a75b947014ad3f38da7195aa7e2e7adb8e7e4bde by llvm-dev
[NVPTX] NVPTXLowerAggrCopies - Silence static analyzer
dyn_cast<StoreInst> null dereference warning. NFCI.
llvm-svn: 372504
The file was modifiedllvm/lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp
Commit 2e8d5d73992c3eece02b6a6a5f45b42df2ac65d0 by nicolasweber
gn build: Add build files for llvm/lib/Target/AVR
Differential Revision: https://reviews.llvm.org/D67872
llvm-svn: 372505
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Target/targets.gni
The file was addedllvm/utils/gn/secondary/llvm/lib/Target/AVR/Disassembler/BUILD.gn
The file was modifiedllvm/utils/gn/TODO.txt
The file was addedllvm/utils/gn/secondary/llvm/lib/Target/AVR/AsmParser/BUILD.gn
The file was addedllvm/utils/gn/secondary/llvm/lib/Target/AVR/TargetInfo/BUILD.gn
The file was addedllvm/utils/gn/secondary/llvm/lib/Target/AVR/MCTargetDesc/BUILD.gn
The file was addedllvm/utils/gn/secondary/llvm/lib/Target/AVR/BUILD.gn
Commit 597ec24c14575f7857f260a4d9257c1d6f14fe7c by nicolasweber
gn build: Add missing RISCV to llvm_targets_to_build="all"
llvm-svn: 372506
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Target/targets.gni
Commit 62ed3fea67072724e825101188a77e6cd2b57669 by llvm-dev
[AArch64] AArch64StackTagging - Silence static analyzer dyn_cast<> null
dereference warning. NFCI.
The static analyzer is warning about potential null dereferences, but we
should be able to use cast<> directly and if not assert will fire for
us.
llvm-svn: 372507
The file was modifiedllvm/lib/Target/AArch64/AArch64StackTagging.cpp
Commit 8bfea8178038d3115e172e518af40db5b580e44b by llvm-dev
Fix uninitialized variable warning. NFCI.
llvm-svn: 372508
The file was modifiedllvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
Commit d2a524288d11b760138199d8a63175c49ab8376a by spatel
[InstCombine] add tests for icmp fold hindered by min/max; NFC
llvm-svn: 372509
The file was modifiedllvm/test/Transforms/InstCombine/icmp.ll
Commit eb8d39e11315e689c2ce17b6fc8bcc717a544478 by spatel
[InstCombine] allow icmp+binop folds before min/max bailout (PR43310)
This has the potential to uncover missed analysis/folds as shown in the
min/max code comment/test, but fewer restrictions on icmp folds should
be better in general to solve cases like:
https://bugs.llvm.org/show_bug.cgi?id=43310
llvm-svn: 372510
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
The file was modifiedllvm/test/Transforms/InstCombine/icmp.ll
The file was modifiedllvm/test/Transforms/InstCombine/minmax-fold.ll
Commit e2af0e5ee830693fee0ddf609885508df1e06f45 by Jinsong Ji
[compiler-rt] Fix lint check failure on comments
This fixes buildbot failures for https://reviews.llvm.org/rL372459.
(at least on PowerPC/Z )
The fix is generated by running clang-format on the error lines only.
llvm-svn: 372511
The file was modifiedcompiler-rt/lib/lsan/lsan_interceptors.cpp
The file was modifiedcompiler-rt/lib/asan/asan_interceptors.cpp
Commit 44b6e02f35702c4984aa66655fd4018ac9810878 by nicolasweber
gn build: consolidate "Nothing to do" branches in targets.gni
No behavior change.
llvm-svn: 372512
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Target/targets.gni

Summary

  1. [LNT] Python 3 support: import reduce from functools Import reduce from functools since it was removed as a builtin in Python 3. reduce was added to functools in Python 2.6. This was produced by running futurize's stage1 lib2to3.fixes.fix_reduce. Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls Reviewed By: hubert.reinterpretcast Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D67810
  2. [LNT] Python 3 support: use Python 3 idioms Replace Python 2 idioms for their Python 3 counterparts. These includes: - replace calls to X.sort() optionally followed by .reverse() by calls to sorted(X) - replace while 1 by while True This was produced by running futurize's stage1 lib2to3.fixes.fix_idioms. Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls Reviewed By: hubert.reinterpretcast Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D67809
  3. [LNT] Python 3 support: Fix exec syntax Replace python2-specific exec statements with calls to exec builtins. This was produced by running futurize's stage1 lib2to3.fixes.fix_exec. Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls Reviewed By: hubert.reinterpretcast Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D67808
  4. [LNT] Python 3 support: Fix except with named exception Use Python 3 syntax for except statement with named exception. This was produced by running futurize's stage1 lib2to3.fixes.fix_except. Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls Reviewed By: hubert.reinterpretcast Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D67807
  5. [LNT] Python 3 support: get rid of apply builtin function Replace calls to deprecated python2-specific apply builtin by direct function calls with explicit argument list unpacking. This was produced by running futurize's stage1 lib2to3.fixes.fix_apply. Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls Reviewed By: hubert.reinterpretcast Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D67806
Revision 372477 by thopre:
[LNT] Python 3 support: import reduce from functools

Import reduce from functools since it was removed as a builtin in Python
3. reduce was added to functools in Python 2.6. This was produced by
running futurize's stage1 lib2to3.fixes.fix_reduce.

Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls

Reviewed By: hubert.reinterpretcast

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D67810
Change TypePath in RepositoryPath in Workspace
The file was modified/lnt/trunk/lnt/util/stats.pylnt/util/stats.py
Revision 372476 by thopre:
[LNT] Python 3 support: use Python 3 idioms

Replace Python 2 idioms for their Python 3 counterparts. These includes:
- replace calls to X.sort() optionally followed by .reverse() by calls to
  sorted(X)
- replace while 1 by while True
This was produced by running futurize's stage1 lib2to3.fixes.fix_idioms.

Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls

Reviewed By: hubert.reinterpretcast

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D67809
Change TypePath in RepositoryPath in Workspace
The file was modified/lnt/trunk/lnt/external/stats/pstat.pylnt/external/stats/pstat.py
The file was modified/lnt/trunk/lnt/external/stats/stats.pylnt/external/stats/stats.py
The file was modified/lnt/trunk/lnt/server/db/testsuitedb.pylnt/server/db/testsuitedb.py
The file was modified/lnt/trunk/lnt/server/ui/util.pylnt/server/ui/util.py
The file was modified/lnt/trunk/lnt/server/ui/views.pylnt/server/ui/views.py
The file was modified/lnt/trunk/lnt/util/stats.pylnt/util/stats.py
The file was modified/lnt/trunk/lnt/util/wsgi_restart.pylnt/util/wsgi_restart.py
Revision 372474 by thopre:
[LNT] Python 3 support: Fix exec syntax

Replace python2-specific exec statements with calls to exec builtins.
This was produced by running futurize's stage1 lib2to3.fixes.fix_exec.

Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls

Reviewed By: hubert.reinterpretcast

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D67808
Change TypePath in RepositoryPath in Workspace
The file was modified/lnt/trunk/lnt/tests/nt.pylnt/tests/nt.py
Revision 372472 by thopre:
[LNT] Python 3 support: Fix except with named exception

Use Python 3 syntax for except statement with named exception. This was
produced by running futurize's stage1 lib2to3.fixes.fix_except.

Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls

Reviewed By: hubert.reinterpretcast

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D67807
Change TypePath in RepositoryPath in Workspace
The file was modified/lnt/trunk/lnt/tests/compile.pylnt/tests/compile.py
Revision 372471 by thopre:
[LNT] Python 3 support: get rid of apply builtin function

Replace calls to deprecated python2-specific apply builtin by direct
function calls with explicit argument list unpacking. This was produced
by running futurize's stage1 lib2to3.fixes.fix_apply.

Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls

Reviewed By: hubert.reinterpretcast

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D67806
Change TypePath in RepositoryPath in Workspace
The file was modified/lnt/trunk/lnt/external/stats/stats.pylnt/external/stats/stats.py