SuccessChanges

Summary

  1. gn build: Revert 373554 "gn build: (manually) merge r373551" (details)
  2. [llvm-readobj][mips] Do not show an error if GOT is missed (details)
  3. [llvm-readobj][mips] Display MIPS specific info under --arch-specific (details)
  4. [mips] Use llvm-readobj `-A` flag in test cases. NFC (details)
  5. [llvm-readobj][mips] Remove non-standard --misp-xxx flags (details)
  6. [mips] Push `fixup_Mips_LO16` fixup for `jialc` and `jic` instructions (details)
  7. [Alignment][Clang][NFC] Add CharUnits::getAsAlign (details)
  8. [libTooling] Add various Stencil combinators for expressions. (details)
  9. [llvm-readobj] - Stop using a precompiled binary in all.test (details)
  10. [Alignment][NFC] Remove StoreInst::setAlignment(unsigned) (details)
  11. [llvm-locstats] Copy the script only when needed; NFC (details)
  12. [NFC][InstCombine] Some tests for sub-of-negatible pattern (details)
  13. [yaml2obj/obj2yaml] - Add support for SHT_LLVM_ADDRSIG sections. (details)
  14. Revert r373598 "[yaml2obj/obj2yaml] - Add support for SHT_LLVM_ADDRSIG (details)
  15. [AArch64][SVE] Adding patterns for floating point SVE add instructions. (details)
  16. [PGO] Refactor Value Profiling into a plugin based oracle and create a (details)
  17. [libc++abi] Do not export some implementation-detail functions (details)
  18. gn build: Merge r373601 (details)
  19. [UpdateTestChecks] add basic support for parsing msp430 asm (details)
  20. Recommit r373598 "[yaml2obj/obj2yaml] - Add support for SHT_LLVM_ADDRSIG (details)
  21. [MSP430] add tests for unwanted shift codegen; NFC (PR43542) (details)
  22. Test commit. (details)
  23. [yaml2obj] - Add a Size tag support for SHT_LLVM_ADDRSIG sections. (details)
  24. Remove duplicate P->getAs<PointerType>() call. NFCI. (details)
  25. ExprConstant - silence static analyzer getAs<> null dereference (details)
  26. Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" (details)
  27. [Diagnostics] Bitwise negation of a boolean expr always evaluates to (details)
  28. [NFC] Added missing changes for rL373614 (details)
  29. [RISCV] Add obsolete aliases of fscsr, frcsr (fssr, frsr) (details)
  30. Revert "[Alignment][NFC] Allow constexpr Align" (details)
  31. [OPENMP]Improve diagnostics for not found declare target entries. (details)
  32. [BPF] Handle offset reloc endpoint ending in the middle of chain (details)
  33. [dsymutil] Tablegenify option parsing (details)
  34. [dsymutil] Improve consistency by removing redundant namespaces (NFC) (details)
  35. [OPENMP]Fix emission of the declare target variables in device mode. (details)
  36. [libc++] Add missing revision number in ABI changelog (details)
  37. DeclBase/DeclCXX/DeclTemplate - silence static analyzer getAs<> null (details)
  38. gn build: (manually) merge r373622 (details)
  39. [libunwind] Adjust libunwind_01.pass.cpp test for ARM EHABI (details)
  40. [ModuloSchedule] removeBranch() *before* creating the trip count (details)
  41. AMDGPU/SILoadStoreOptimizer: Optimize scanning for mergeable (details)
  42. [libc++] Add a per-target flag to include the generated config_site (details)
  43. compiler-rt: move all __GLIBC_PREREQ into own header file (details)
  44. Fix build failure with GCC on identifier reusing. (details)
  45. [HIP] Enable specifying different default gpu arch for HIP/CUDA. (details)
  46. AMDGPU/GlobalISel: Fix mutationIsSane assert v8s8 and (details)
  47. AMDGPU/GlobalISel: Add some more tests for G_INSERT legalization (details)
  48. AMDGPU/GlobalISel: Allow VGPR to index SGPR register (details)
  49. AMDGPU/GlobalISel: Split 64-bit vector extracts during RegBankSelect (details)
  50. AMDGPU/GlobalISel: Handle RegBankSelect of G_INSERT_VECTOR_ELT (details)
  51. [dsymutil] Don't overload LinkOptions. (details)
  52. [X86] matchShuffleWithSHUFPD - use Zeroable element mask directly. NFCI. (details)
  53. [compiler-rt] More optimization levels in signal_line.cpp test (details)
  54. PR43547: substitute into the type of a non-type template parameter if (details)
  55. [Host] Return the user's shell from GetDefaultShell (details)
  56. [X86] Add v32i8 shuffle lowering strategy to recognize two v4i64 vectors (details)
  57. [NFC] Fix unused variable in release builds (details)
  58. [clang-format] Add ability to wrap braces after multi-line control (details)
  59. Check for qualified function types after substituting into the operand (details)
  60. [HIP] Use option -nogpulib to disable linking device lib (details)
  61. Attempt to remove linker workaround on the buildbots. (details)
  62. [gicombiner] Add a CodeExpander to handle C++ fragments with variable (details)
  63. [PowerPC] Adjust the naming and operand order of fnmsub patterns (details)
  64. Attempt to remove linker workaround on the buildbots: Attempt 2 (details)
  65. Reland "gn build: (manually) merge r373551" (details)
  66. [AArch64InstPrinter] prefer bfi to bfc for < armv8.2-a (details)
  67. [JSON] Don't wrap json::Array in a value (NFC) (details)
  68. [AArch64][SVE] Move the testcase into CodeGen dir (details)
  69. [Test] Fix inconsistency in alignment in test case (details)
  70. [Tests] Add a unordered atomic load combine test (details)
  71. gn build: (manually) merge 373651 better (details)
  72. [OPENMP50]Codegen support for scores in context selectors. (details)
  73. [test] Disable TestCustomShell on Linux (details)
  74. DebugInfo: Generalize rnglist emission as a precursor to reusing it for (details)
  75. Reland r349624: Let TableGen write output only if it changed, instead of (details)
  76. OverloadCandidate::getNumParams - silence static analyzer (details)
  77. [DAGCombiner] add operation legality checks before creating shift ops (details)
  78. ASTContext - silence static analyzer getAs<> null dereference warnings. (details)
  79. [lldb] Calculate relative path for symbol links (details)
  80. [lldb] Remove unused variables. (details)
  81. [process list] make the TRIPLE column wider (details)
  82. [llvm-objdump] Further rearrange llvm-objdump sections for compatability (details)
  83. [OPENMP]Fix the test on Windows, NFC. (details)
  84. Break out the Python class & key/value options into a separate (details)
  85. [MemorySSA] Don't hoist stores if interfering uses (as calls) exist. (details)
  86. Pass an SBStructuredData to scripted ThreadPlans on use. (details)
  87. [llvm-objdump][test] Move test to X86 dir to avoid errors disassembling (details)
  88. Forgot to change the header guards on OptionGroupPythonClassWithDict. (details)
  89. LowerTypeTests: Rename local functions to avoid collisions with (details)
  90. Python3 doesn't seem to allow you to tell whether an object is a class (details)
  91. Explicitly set entry point arch when it's thumb (details)
  92. compiler-rt: use __GLIBC_PREREQ for SANITIZER_INTERCEPT_GETRANDOM (details)
  93. [compiler-rt] Remove O2, O3 from signal_line test for fix android tests (details)
  94. [dsymutil] Fix stack-use-after-scope (details)
  95. [compiler-rt] Fix signal_line.cpp test (details)
  96. Properly handle instantiation-dependent array bounds. (details)
  97. [Python] Remove unused variable (details)
  98. Revert "Explicitly set entry point arch when it's thumb" (details)
  99. [RISCV] Split SP adjustment to reduce the offset of callee saved (details)
  100. [JITLink] Switch from an atom-based model to a "blocks and symbols" (details)
  101. gn build: Merge r373689 (details)
  102. Make libc++ gdb pretty printer Python 3 compatible (details)
  103. [JITLink] Fix an unused variable warning. (details)
  104. [JITLink] Explicitly destroy bumpptr-allocated blocks to avoid a memory (details)
  105. [clang-tools-extra] [cmake] Use add_clang_tool() to install tools (details)
  106. [clang] [cmake] Add distribution install targets for remaining (details)
  107. [JITLink] Remove a redundant semicolon, silencing -Wpedantic warnings (details)
  108. [test] Remove a needless declaration of REQUIRES: target-windows (details)
  109. [Symbolize] Use the local MSVC C++ demangler instead of relying on (details)
  110. [AMDGPU][SILoadStoreOptimizer] NFC: Refactor code (details)
  111. [test] Remove locale dependency for mri-utf8.test (details)
  112. Revert "[Symbolize] Use the local MSVC C++ demangler instead of relying (details)
  113. [compiler-rt] Remove O1 tests from signal_line.cpp (details)
  114. Revert r371729: lld-link: Make /linkrepro: take a filename, not a (details)
  115. Add /reproduce option to lld/COFF (details)
  116. [MinGW] Add --reproduce option (details)
  117. [X86] Enable inline memcmp() to use AVX512 (details)
  118. [clang-format] [PR43333] Fix C# breaking before function name when using (details)
  119. [ELF] Use union-find set and doubly linked list in Call-Chain Clustering (details)
  120. [clang-format] [PR43338] C# clang format has space issues betweern C# (details)
  121. [CodeComplete] Ensure object is the same in compareOverloads() (details)
  122. [lldb][modern-type-lookup] No longer import temporary declarations into (details)
  123. [Driver] NFC: Remove duplicate call to getLibGccType (details)
  124. Revert r371732: "lld-link: Fix tests that do not run on macOS after (details)
  125. AMDGPU/GlobalISel: Support wave32 waterfall loops (details)
  126. AMDGPU/GlobalISel: Select G_PTRTOINT (details)
  127. AMDGPU/GlobalISel: Fix using wrong addrspace for aperture (details)
  128. [NFC] [FileCheck] Fix init of stack objects in unit tests (details)
  129. [TableGen] Introduce a generic automaton (DFA) backend (details)
  130. [lldb] Fix typo in r373675 (details)
  131. [DebugInfo] LiveDebugValues: defer DBG_VALUE creation during analysis (details)
  132. [lldb] Fix -Wreorder-ctor in r373673 (details)
  133. Revert "[NFC] [FileCheck] Fix init of stack objects in unit tests" (details)
  134. [lldb] Fix that 'ninja clean' breaks the build by deleting (details)
  135. [Format] Fix docs after r373439 (details)
  136. [lldb] Get the TargetAPI lock in (details)
  137. gn build: (manually) merge r373718 (details)
  138. [DebugInfo] LiveDebugValues: move DBG_VALUE creation into VarLoc class (details)
  139. Revert [test] Remove locale dependency for mri-utf8.test (details)
  140. Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" (details)
  141. Fix MSVC "not all control paths return a value" warning. NFCI. (details)
Commit ead8577aff2e1a8247a8181b38d5a4b753c21860 by nicolasweber
gn build: Revert 373554 "gn build: (manually) merge r373551"
r373551 was reverted in r373581.
llvm-svn: 373586
The file was modifiedllvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
The file was removedllvm/utils/gn/secondary/llvm/utils/TableGen/GlobalISel/BUILD.gn
The file was removedllvm/utils/gn/secondary/llvm/unittests/TableGen/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/BUILD.gn
Commit 8c6bed43969a851b268cce69e5dd876d7df1a516 by simon
[llvm-readobj][mips] Do not show an error if GOT is missed
It is not an error if a file does not contain GOT.
llvm-svn: 373587
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
The file was modifiedllvm/test/tools/llvm-readobj/mips-got.test
Commit 952d71b7945650184562c0b09c59e3c81c8301e1 by simon
[llvm-readobj][mips] Display MIPS specific info under --arch-specific
flag
Old options `--mips-plt-got`, `--mips-abi-flags`, '--mips-reginfo`, and
`--mips-options` wiil be deleted in a separate patch.
llvm-svn: 373588
The file was modifiedllvm/test/tools/llvm-readobj/mips-options-sec.test
The file was modifiedllvm/test/tools/llvm-readobj/mips-plt.test
The file was modifiedllvm/tools/llvm-readobj/llvm-readobj.cpp
The file was modifiedllvm/test/tools/llvm-readobj/mips-got-overlapped.test
The file was modifiedllvm/test/tools/llvm-readobj/mips-got.test
The file was modifiedllvm/test/tools/llvm-readobj/mips-reginfo.test
Commit afe7197f13363d8ff1d6246895dd58489c8d1404 by simon
[mips] Use llvm-readobj `-A` flag in test cases. NFC
llvm-svn: 373589
The file was modifiedllvm/test/MC/Mips/mt/abiflag.s
The file was modifiedlld/test/ELF/mips-got-string.s
The file was modifiedllvm/test/MC/Mips/module-hardfloat.s
The file was modifiedlld/test/ELF/mips-64-got.s
The file was modifiedlld/test/ELF/mips-tls-64.s
The file was modifiedllvm/test/MC/Mips/mips_abi_flags_xx_set.s
The file was modifiedllvm/test/MC/Mips/mips_abi_flags_xx.s
The file was modifiedllvm/test/MC/Mips/module-softfloat.s
The file was modifiedlld/test/ELF/mips-got16.s
The file was modifiedllvm/test/MC/Mips/crc/module-crc.s
The file was modifiedlld/test/ELF/mips-call-hilo.s
The file was modifiedlld/test/ELF/mips-call16.s
The file was modifiedlld/test/ELF/mips-got-page.s
The file was modifiedlld/test/ELF/mips-sto-plt.s
The file was modifiedllvm/test/MC/Mips/virt/module-virt.s
The file was modifiedlld/test/ELF/mips-merge-abiflags.s
The file was modifiedllvm/test/MC/Mips/mt/module-directive.s
The file was modifiedlld/test/ELF/mips-got-page-script.s
The file was modifiedlld/test/ELF/mips-64-got-overflow.s
The file was modifiedlld/test/ELF/mips-micro-plt.s
The file was modifiedlld/test/ELF/mips-options.s
The file was modifiedlld/test/ELF/mips-gprel32-relocs-gp0.s
The file was modifiedllvm/test/CodeGen/Mips/micromips-ase-function-attribute.ll
The file was modifiedlld/test/ELF/mips-micro-got.s
The file was modifiedllvm/test/tools/llvm-readobj/mips-abiflags.test
The file was modifiedlld/test/ELF/mips-got-and-copy.s
The file was modifiedlld/test/ELF/mips-tls-hilo.s
The file was modifiedlld/test/ELF/mips-abs-got.s
The file was modifiedlld/test/ELF/mips-got-hilo.s
The file was modifiedllvm/test/MC/Mips/mt/set-directive.s
The file was modifiedlld/test/ELF/mips-got-extsym.s
The file was modifiedlld/test/ELF/mips-non-zero-gp0.s
The file was modifiedlld/test/ELF/mips-got-relocs.s
The file was modifiedlld/test/ELF/mips-32.s
The file was modifiedlld/test/ELF/mips-64.s
The file was modifiedllvm/test/Object/Mips/abi-flags.yaml
The file was modifiedlld/test/ELF/mips-26.s
The file was modifiedllvm/test/MC/Mips/ginv/module-noginv.s
The file was modifiedllvm/test/MC/Mips/crc/module-nocrc.s
The file was modifiedlld/test/ELF/mips-mgot.s
The file was modifiedlld/test/ELF/mips-xgot-order.s
The file was modifiedlld/test/ELF/mips-got-script.s
The file was modifiedlld/test/ELF/mips-got-redundant.s
The file was modifiedlld/test/ELF/mips-64-disp.s
The file was modifiedlld/test/ELF/mips-micro-jal.s
The file was modifiedlld/test/ELF/mips-plt-copy.s
The file was modifiedllvm/test/MC/Mips/virt/module-novirt.s
The file was modifiedlld/test/ELF/mips-got-weak.s
The file was modifiedlld/test/ELF/mips-reginfo.s
The file was modifiedllvm/test/MC/Mips/ginv/module-ginv.s
The file was modifiedlld/test/ELF/mips-elf-flags.s
The file was modifiedlld/test/ELF/mips-tls.s
The file was modifiedllvm/test/MC/Mips/micromips-ase-directive.s
Commit bf333421da2368ffafc97169191e54296b1d0df9 by simon
[llvm-readobj][mips] Remove non-standard --misp-xxx flags
llvm-readobj "non-standard" flags `--mips-plt-got`, `--mips-abi-flags`,
`--mips-reginfo`, and `--mips-options` are superseded by the
`--arch-specific` flag and can be removed now.
llvm-svn: 373590
The file was modifiedllvm/tools/llvm-readobj/llvm-readobj.cpp
Commit f6551ddfceb676d2fb09e509ed39051c003927db by simon
[mips] Push `fixup_Mips_LO16` fixup for `jialc` and `jic` instructions
llvm-svn: 373591
The file was modifiedllvm/test/MC/Mips/micromips32r6/relocations.s
The file was modifiedllvm/test/MC/Mips/mips32r6/relocations.s
The file was modifiedllvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
The file was modifiedllvm/test/MC/Mips/mips64r6/relocations.s
Commit c79099e0f44d0f85515fd30c83923d9d9dc1679b by gchatelet
[Alignment][Clang][NFC] Add CharUnits::getAsAlign
Summary: This is a prerequisite to removing
`llvm::GlobalObject::setAlignment(unsigned)`. This is patch is part of a
series to introduce an Alignment type. See this thread for context:
http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this
patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: jholewinski, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68274
llvm-svn: 373592
The file was modifiedclang/lib/CodeGen/CoverageMappingGen.cpp
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was modifiedclang/lib/CodeGen/CGDecl.cpp
The file was modifiedclang/lib/CodeGen/CGCall.cpp
The file was modifiedclang/include/clang/AST/CharUnits.h
The file was modifiedclang/lib/CodeGen/CGExpr.cpp
The file was modifiedclang/lib/CodeGen/CGObjCGNU.cpp
The file was modifiedclang/lib/CodeGen/CGObjCMac.cpp
The file was modifiedclang/lib/CodeGen/ItaniumCXXABI.cpp
The file was modifiedclang/lib/CodeGen/CGCleanup.cpp
The file was modifiedclang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
The file was modifiedclang/lib/CodeGen/CGCUDANV.cpp
The file was modifiedclang/lib/CodeGen/CodeGenFunction.cpp
The file was modifiedclang/lib/CodeGen/CodeGenFunction.h
The file was modifiedclang/lib/CodeGen/MicrosoftCXXABI.cpp
The file was modifiedclang/lib/CodeGen/CGExprConstant.cpp
The file was modifiedclang/lib/CodeGen/ConstantInitBuilder.cpp
The file was modifiedclang/lib/CodeGen/CGExprAgg.cpp
The file was modifiedclang/lib/CodeGen/CGExprCXX.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
Commit e80e8896957402c66aad3514ca9c865268d726b3 by yitzhakm
[libTooling] Add various Stencil combinators for expressions.
Summary: This revision adds three new Stencil combinators:
* `expression`, which idiomatically constructs the source for an
expression,
including wrapping the expression's source in parentheses if needed.
* `deref`, which constructs an idiomatic dereferencing expression.
* `addressOf`, which constructs an idiomatic address-taking expression.
Reviewers: gribozavr
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68315
llvm-svn: 373593
The file was modifiedclang/lib/Tooling/Refactoring/Stencil.cpp
The file was modifiedclang/include/clang/Tooling/Refactoring/Stencil.h
The file was modifiedclang/unittests/Tooling/StencilTest.cpp
Commit 6079498c51b9144b4c42ec20f2d9320db61a6387 by grimar
[llvm-readobj] - Stop using a precompiled binary in all.test
Having a precompiled binary here is excessive. I also added a few
missing tags.
Differential revision: https://reviews.llvm.org/D68386
llvm-svn: 373594
The file was modifiedllvm/test/tools/llvm-readobj/all.test
Commit d400d45150530297d7ea0c33aafbcb44ba90a0a1 by gchatelet
[Alignment][NFC] Remove StoreInst::setAlignment(unsigned)
Summary: This is patch is part of a series to introduce an Alignment
type. See this thread for context:
http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this
patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet, bollu, jdoerfert
Subscribers: hiraditya, asbirlea, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D68268
llvm-svn: 373595
The file was modifiedllvm/lib/Transforms/IPO/Attributor.cpp
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
The file was modifiedllvm/lib/Transforms/Scalar/GVNHoist.cpp
The file was modifiedllvm/lib/IR/Instructions.cpp
The file was modifiedllvm/lib/IR/Core.cpp
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedllvm/include/llvm/IR/IRBuilder.h
The file was modifiedllvm/include/llvm/IR/Instructions.h
The file was modifiedllvm/lib/CodeGen/AtomicExpandPass.cpp
The file was modifiedllvm/lib/Transforms/Scalar/LICM.cpp
The file was modifiedpolly/lib/CodeGen/BlockGenerators.cpp
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
The file was modifiedllvm/lib/Transforms/Scalar/SROA.cpp
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp
The file was modifiedllvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Commit de6b59cd2089917410af386ca709be5563e24186 by djordje.todorovic
[llvm-locstats] Copy the script only when needed; NFC
llvm-svn: 373596
The file was modifiedllvm/utils/llvm-locstats/CMakeLists.txt
Commit c78064573643f694e65a6222b0ee47276864545c by lebedev.ri
[NFC][InstCombine] Some tests for sub-of-negatible pattern
As we have previously estabilished, `sub` is an outcast, and should be
considered non-canonical iff it can be converted to `add`.
It can be converted to `add` if it's second operand can be negated. So
far we mostly only do that for constants and negation itself, but we
should be more through.
llvm-svn: 373597
The file was addedllvm/test/Transforms/InstCombine/sub-of-negatible.ll
Commit 32cbabfecb8d48d676be683bb0c8ce082294638e by grimar
[yaml2obj/obj2yaml] - Add support for SHT_LLVM_ADDRSIG sections.
SHT_LLVM_ADDRSIG is described here:
https://llvm.org/docs/Extensions.html#sht-llvm-addrsig-section-address-significance-table
This patch teaches tools to dump them and to parse the YAML declarations
of such sections.
Differential revision: https://reviews.llvm.org/D68333
llvm-svn: 373598
The file was addedllvm/test/tools/obj2yaml/elf-llvm-addrsig-section.yaml
The file was addedllvm/test/tools/yaml2obj/elf-llvm-addrsig-section.yaml
The file was modifiedllvm/test/tools/llvm-readobj/elf-section-types.test
The file was modifiedllvm/lib/ObjectYAML/ELFEmitter.cpp
The file was modifiedllvm/lib/ObjectYAML/ELFYAML.cpp
The file was modifiedllvm/tools/obj2yaml/elf2yaml.cpp
The file was modifiedllvm/include/llvm/ObjectYAML/ELFYAML.h
Commit 9f6cf2a081b2a010151b0bbf8c51704532be7aba by grimar
Revert r373598 "[yaml2obj/obj2yaml] - Add support for SHT_LLVM_ADDRSIG
sections."
It broke BB:
http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/18655/steps/test/logs/stdio
llvm-svn: 373599
The file was modifiedllvm/include/llvm/ObjectYAML/ELFYAML.h
The file was modifiedllvm/lib/ObjectYAML/ELFYAML.cpp
The file was removedllvm/test/tools/obj2yaml/elf-llvm-addrsig-section.yaml
The file was modifiedllvm/tools/obj2yaml/elf2yaml.cpp
The file was modifiedllvm/test/tools/llvm-readobj/elf-section-types.test
The file was removedllvm/test/tools/yaml2obj/elf-llvm-addrsig-section.yaml
The file was modifiedllvm/lib/ObjectYAML/ELFEmitter.cpp
Commit f21dbcca90bcc823251240077addad7a2b2d193d by amehsan
[AArch64][SVE] Adding patterns for floating point SVE add instructions.
llvm-svn: 373600
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was modifiedllvm/lib/Target/AArch64/SVEInstrFormats.td
The file was addedsve-fp.ll
Commit f6c34de11767fce0c6503925bcef7228f36c6842 by bmahjour
[PGO] Refactor Value Profiling into a plugin based oracle and create a
well defined API for the plugins.
Summary: This PR creates a utility class called ValueProfileCollector
that tells PGOInstrumentationGen and PGOInstrumentationUse what to
value-profile and where to attach the profile metadata. It then
refactors logic scattered in PGOInstrumentation.cpp into two plugins
that plug into the ValueProfileCollector.
Authored By: Wael Yehia <wyehia@ca.ibm.com>
Reviewer: davidxl, tejohnson, xur
Reviewed By: davidxl, tejohnson, xur
Subscribers: llvm-commits
Tag: #llvm
Differential Revision: https://reviews.llvm.org/D67920
Patch By Wael Yehia <wyehia@ca.ibm.com>
llvm-svn: 373601
The file was addedllvm/lib/Transforms/Instrumentation/ValueProfileCollector.cpp
The file was addedllvm/lib/Transforms/Instrumentation/ValueProfileCollector.h
The file was modifiedllvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
The file was addedllvm/lib/Transforms/Instrumentation/ValueProfilePlugins.inc
The file was modifiedllvm/lib/Transforms/Instrumentation/CMakeLists.txt
Commit 6f9459f7fe7db16b10ad1700fbb5c833e3dd4fec by Louis Dionne
[libc++abi] Do not export some implementation-detail functions
Summary: Those functions started being mistakenly exported from the
libc++abi shared library after commit r344152 in 2018. Removing these
symbols is technically an ABI break. However, they are not part of the
C++ ABI, they haven't ever been re-exported from libc++, and they are
not declared in any public header, so it's very unlikely that calls to
these functions exist out there. Also, the functions have reserved
names, so any impacted user would have to have tried really hard being
broken by this removal.
Note that avoiding this kind of problem is exactly why we're now
controlling exported symbols explicitly with a textual list.
Also note that applying the hidden visibility attribute is necessary
because the list of exported symbols is only used on Apple platforms for
the time being.
Reviewers: phosek, mclow.lists, EricWF
Subscribers: christof, jkorous, dexonsmith, libcxx-commits
Tags: #libc
Differential Revision: https://reviews.llvm.org/D68357
llvm-svn: 373602
The file was modifiedlibcxxabi/src/cxa_exception.h
The file was modifiedlibcxxabi/lib/itanium-base.exp
Commit d1a4b82274603638b7e901cf14c0632906c90e4d by llvmgnsyncbot
gn build: Merge r373601
llvm-svn: 373603
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Transforms/Instrumentation/BUILD.gn
Commit 2c9c7d680974d4d6f39a7df52268b8e308a5b50c by spatel
[UpdateTestChecks] add basic support for parsing msp430 asm
llvm-svn: 373605
The file was modifiedllvm/utils/UpdateTestChecks/asm.py
Commit fc9104d42a777540984c7f43f5f12f635ebc5098 by grimar
Recommit r373598 "[yaml2obj/obj2yaml] - Add support for SHT_LLVM_ADDRSIG
sections."
Fix: call `consumeError()` for a case missed.
Original commit message:
SHT_LLVM_ADDRSIG is described here:
https://llvm.org/docs/Extensions.html#sht-llvm-addrsig-section-address-significance-table
This patch teaches tools to dump them and to parse the YAML declarations
of such sections.
Differential revision: https://reviews.llvm.org/D68333
llvm-svn: 373606
The file was modifiedllvm/lib/ObjectYAML/ELFYAML.cpp
The file was modifiedllvm/test/tools/llvm-readobj/elf-section-types.test
The file was modifiedllvm/tools/obj2yaml/elf2yaml.cpp
The file was addedllvm/test/tools/obj2yaml/elf-llvm-addrsig-section.yaml
The file was addedllvm/test/tools/yaml2obj/elf-llvm-addrsig-section.yaml
The file was modifiedllvm/lib/ObjectYAML/ELFEmitter.cpp
The file was modifiedllvm/include/llvm/ObjectYAML/ELFYAML.h
Commit 38c265fe261586653ee3bb9cbf1f862afe2b1457 by spatel
[MSP430] add tests for unwanted shift codegen; NFC (PR43542)
llvm-svn: 373607
The file was addedllvm/test/CodeGen/MSP430/selectcc.ll
Commit 069cb6282db8bd378f411bb19e65db30a47cd879 by sgundapa
Test commit.
llvm-svn: 373609
The file was modifiedllvm/README.txt
Commit c18585e32eb0f69849ddb01f7aeb2cf7836b6a5c by grimar
[yaml2obj] - Add a Size tag support for SHT_LLVM_ADDRSIG sections.
It allows using "Size" with or without "Content" in YAML descriptions of
SHT_LLVM_ADDRSIG sections.
Differential revision: https://reviews.llvm.org/D68334
llvm-svn: 373610
The file was modifiedllvm/lib/ObjectYAML/ELFEmitter.cpp
The file was modifiedllvm/include/llvm/ObjectYAML/ELFYAML.h
The file was modifiedllvm/lib/ObjectYAML/ELFYAML.cpp
The file was modifiedllvm/test/tools/yaml2obj/elf-llvm-addrsig-section.yaml
Commit d834f1f63eda24ccf728d4f16c36c97daaabe301 by llvm-dev
Remove duplicate P->getAs<PointerType>() call. NFCI.
llvm-svn: 373611
The file was modifiedclang/lib/AST/ASTContext.cpp
Commit c15b38ec7d0b489f32592b2a01072eb8b31c9dcc by llvm-dev
ExprConstant - silence static analyzer getAs<> null dereference
warnings. NFCI.
The static analyzer is warning about potential null dereferences, but in
these cases we should be able to use castAs<> directly and if not assert
will fire for us.
llvm-svn: 373612
The file was modifiedclang/lib/AST/ExprConstant.cpp
Commit 1fae74480bfc17e5462a72fb3b870d4ecd0d1c49 by llvm-dev
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits"
warning. NFCI.
llvm-svn: 373613
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
Commit b4ee523ffc962e25ef96f3bb67847521624d607a by david.bolvansky
[Diagnostics] Bitwise negation of a boolean expr always evaluates to
true; warn with -Wbool-operation
Requested here:
http://lists.llvm.org/pipermail/cfe-dev/2019-October/063452.html
llvm-svn: 373614
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was addedclang/test/Sema/warn-bitwise-negation-bool.c
Commit e83309e02a26b5b8fdfdba1af71703cd6a652122 by david.bolvansky
[NFC] Added missing changes for rL373614
llvm-svn: 373616
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
Commit f5177a7db48b3d375e35f5ee5274365a237cdd05 by ed.jones
[RISCV] Add obsolete aliases of fscsr, frcsr (fssr, frsr)
These old aliases were renamed, but are still used by some projects (eg
newlib).
Differential Revision: https://reviews.llvm.org/D68392
llvm-svn: 373618
The file was modifiedllvm/test/MC/RISCV/rvf-aliases-valid.s
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfoF.td
Commit d1f23bd2250b3f1f84ed3c210a6cdcc0065761f1 by gchatelet
Revert "[Alignment][NFC] Allow constexpr Align"
This reverts commit b3af236fb5fc6e50fcc1b54d868f0bff557f3fb1.
llvm-svn: 373619
The file was modifiedllvm/unittests/Support/AlignmentTest.cpp
The file was modifiedllvm/include/llvm/Support/Alignment.h
The file was modifiedllvm/include/llvm/Support/MathExtras.h
The file was modifiedllvm/unittests/Support/MathExtrasTest.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64StackTagging.cpp
Commit ba643691ddbd7751f9c74859c6b3b3e281d36c5e by a.bataev
[OPENMP]Improve diagnostics for not found declare target entries.
We can point to the target region + emit parent functions names/real var
names if they were not found in host module during device codegen.
llvm-svn: 373620
The file was modifiedclang/test/OpenMP/target_messages.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
Commit 02ac75092dbbd9efb250bfb4f4e79dd042abf3c4 by yhs
[BPF] Handle offset reloc endpoint ending in the middle of chain
properly
During studying support for bitfield, I found an issue for an example
like the one in test offset-reloc-middle-chain.ll.
struct t1 { int c; };
struct s1 { struct t1 b; };
struct r1 { struct s1 a; };
#define _(x) __builtin_preserve_access_index(x)
void test1(void *p1, void *p2, void *p3);
void test(struct r1 *arg) {
   struct s1 *ps = _(&arg->a);
   struct t1 *pt = _(&arg->a.b);
   int *pi = _(&arg->a.b.c);
   test1(ps, pt, pi);
}
The IR looks like:
%0 = llvm.preserve.struct.access(base, ...)
%1 = llvm.preserve.struct.access(%0, ...)
%2 = llvm.preserve.struct.access(%1, ...)
using %0, %1 and %2
In this case, we need to generate three relocatiions corresponding to
chains: (%0), (%0, %1) and (%0, %1, %2). After collecting all the
chains, the current implementation process each chain (in a map) with
code generation sequentially. For example, after (%0) is processed, the
code may look like:
%0 = base + special_global_variable
// llvm.preserve.struct.access(base, ...) is delisted
// from the instruction stream.
%1 = llvm.preserve.struct.access(%0, ...)
%2 = llvm.preserve.struct.access(%1, ...)
using %0, %1 and %2
When processing chain (%0, %1), the current implementation tries to
visit intrinsic llvm.preserve.struct.access(base, ...) to get some of
its properties and this caused segfault.
This patch fixed the issue by remembering all necessary information
(kind, metadata, access_index, base) during analysis phase, so in code
generation phase there is no need to examine the intrinsic call
instructions. This also simplifies the code.
Differential Revision: https://reviews.llvm.org/D68389
llvm-svn: 373621
The file was modifiedllvm/lib/Target/BPF/BPFAbstractMemberAccess.cpp
The file was addedllvm/test/CodeGen/BPF/CORE/offset-reloc-middle-chain.ll
Commit eddc1a4e9549241efbbe4e332b42325caf0cdb7f by Jonas Devlieghere
[dsymutil] Tablegenify option parsing
This patch reimplements command line option parsing in dsymutil with
Tablegen and libOption. The main motivation for this change is to
prevent clashes with other cl::opt options defined in llvm. Although
it's a bit more heavyweight, it has some nice advantages such as no
global static initializers and better separation between the code and
the option definitions.
I also used this opportunity to improve how dsymutil deals with
incompatible options. Instead of having checks spread across the code,
everything is now grouped together in verifyOptions. The fact that the
options are no longer global means that we need to pass them around a
bit more, but I think it's worth the trade-off.
Differential revision: https://reviews.llvm.org/D68361
llvm-svn: 373622
The file was modifiedllvm/test/tools/dsymutil/cmdline.test
The file was modifiedllvm/tools/dsymutil/CMakeLists.txt
The file was modifiedllvm/tools/dsymutil/dsymutil.cpp
The file was addedllvm/tools/dsymutil/Options.td
Commit 2733bde66314a51aaccdd825375784ba59f39cf4 by Jonas Devlieghere
[dsymutil] Improve consistency by removing redundant namespaces (NFC)
The dsymutil implementation file has a using-directive for the llvm
namespace. This patch just removes redundant namespace qualifiers.
llvm-svn: 373623
The file was modifiedllvm/tools/dsymutil/dsymutil.cpp
Commit 36724b78e8b609d7ae4978c9bc5aa5a9ad8be5ec by a.bataev
[OPENMP]Fix emission of the declare target variables in device mode.
Declare target variables must be emitted in device mode, target triples
can be empty in this case.
llvm-svn: 373624
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was modifiedclang/test/OpenMP/declare_target_codegen.cpp
Commit 0961a152d8559d764dd16d1820dc1170fc45ab35 by Louis Dionne
[libc++] Add missing revision number in ABI changelog
llvm-svn: 373625
The file was modifiedlibcxx/lib/abi/CHANGELOG.TXT
Commit 86976c91cfb33d2050af5a21a470a6aeb5a92b25 by llvm-dev
DeclBase/DeclCXX/DeclTemplate - silence static analyzer getAs<> null
dereference warnings. NFCI.
The static analyzer is warning about potential null dereferences, but in
these cases we should be able to use castAs<> directly and if not assert
will fire for us.
llvm-svn: 373626
The file was modifiedclang/lib/AST/DeclTemplate.cpp
The file was modifiedclang/lib/AST/DeclCXX.cpp
The file was modifiedclang/lib/AST/DeclBase.cpp
Commit b01ebd6c1de9627e5676cb82a098ca90d1c136f1 by nicolasweber
gn build: (manually) merge r373622
llvm-svn: 373627
The file was modifiedllvm/utils/gn/secondary/llvm/tools/dsymutil/BUILD.gn
Commit b44204c77e63fcb02af46a9cf830fa23ac4cfc64 by john.brawn
[libunwind] Adjust libunwind_01.pass.cpp test for ARM EHABI
ARM EHABI unwinding tables only store the start address of each
function, so the last function is assumed to cover the entire address
space after it. The test picks an address on the stack assuming that
it's in no function, but because of the above it's actually resolved to
the last function. Fix this by using address 0 instead.
Differential Revision: https://reviews.llvm.org/D68387
llvm-svn: 373628
The file was modifiedlibunwind/test/libunwind_01.pass.cpp
Commit 9972c992ebeee3fba63141ac8e3db46e2117cb7d by jmolloy
[ModuloSchedule] removeBranch() *before* creating the trip count
condition
The Hexagon code assumes there's no existing terminator when inserting
its trip count condition check.
This causes swp-stages5.ll to break. The generated code looks good to
me, it is likely a permutation. I have disabled the new codegen path to
keep everything green and will investigate along with the other 3-4
tests that have different codegen.
Fixes expensive-checks build.
llvm-svn: 373629
The file was modifiedllvm/lib/CodeGen/ModuloSchedule.cpp
The file was modifiedllvm/test/CodeGen/Hexagon/swp-stages5.ll
Commit e6f51713054f8199c61a9dc94faf3dbce1221c02 by tstellar
AMDGPU/SILoadStoreOptimizer: Optimize scanning for mergeable
instructions
Summary: This adds a pre-pass to this optimization that scans through
the basic block and generates lists of mergeable instructions with one
list per unique address.
In the optimization phase instead of scanning through the basic block
for mergeable instructions, we now iterate over the lists generated by
the pre-pass.
The decision to re-optimize a block is now made per list, so if we fail
to merge any instructions with the same address, then we do not attempt
to optimize them in future passes over the block.  This will help to
reduce the time this pass spends re-optimizing instructions.
In one pathological test case, this change reduces the time spent in the
SILoadStoreOptimizer from 0.2s to 0.03s.
This restructuring will also make it possible to implement further
solutions in this pass, because we can now add less expensive checks to
the pre-pass and filter instructions out early which will avoid the need
to do the expensive scanning during the optimization pass. For example,
checking for adjacent offsets is an inexpensive test we can move to the
pre-pass.
Reviewers: arsenm, pendingchaos, rampitec, nhaehnle, vpykhtin
Subscribers: kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye,
hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65961
llvm-svn: 373630
The file was modifiedllvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
Commit c5b74bf6e548441064eabc54e6078c35cd6116a7 by Louis Dionne
[libc++] Add a per-target flag to include the generated config_site
This allows propagating the include automatically to targets that depend
on one of the libc++ targets such as the benchmarks. Note that the
GoogleBenchmark build itself still needs to manually specify the
-include, since I don't know of any way to have an external project link
against one of the libc++ targets (which would propagate the -include
automatically).
llvm-svn: 373631
The file was modifiedlibcxx/CMakeLists.txt
The file was modifiedlibcxx/src/CMakeLists.txt
The file was modifiedlibcxx/benchmarks/CMakeLists.txt
Commit 1fff2881a8665aa23d29a46ec41eec7577d11364 by Vitaly Buka
compiler-rt: move all __GLIBC_PREREQ into own header file
Reviewers: eugenis
Subscribers: dberris, #sanitizers, llvm-commits
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D68177
llvm-svn: 373632
The file was addedcompiler-rt/lib/sanitizer_common/sanitizer_glibc_version.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_getauxval.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
Commit 9c1503f66992a4d49ce0080a39a29b5e016e59f6 by michael.hliao
Fix build failure with GCC on identifier reusing.
- GCC is different from clang and other compilers on that.
https://godbolt.org/z/CeQE1V
llvm-svn: 373633
The file was modifiedllvm/tools/dsymutil/dsymutil.cpp
Commit 691e44c146f3dd70b4ab6c744ac54a407b792b18 by michael.hliao
[HIP] Enable specifying different default gpu arch for HIP/CUDA.
Reviewers: tra, yaxunl
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68394
llvm-svn: 373634
The file was addedclang/test/Driver/hip-default-gpu-arch.hip
The file was modifiedclang/lib/Driver/Driver.cpp
Commit 3d23e58dbedf85be84e06c07d5b7c7cc2555b689 by Matthew.Arsenault
AMDGPU/GlobalISel: Fix mutationIsSane assert v8s8 and
This would try to do FewerElements to v9s8
llvm-svn: 373635
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/legalize-and.mir
Commit 9256183994c2da4f8ea9c4f97e588f798d6b7912 by Matthew.Arsenault
AMDGPU/GlobalISel: Add some more tests for G_INSERT legalization
llvm-svn: 373636
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/legalize-insert.mir
Commit 56271fe180f48fb36cad0b8facbd832611793ed4 by Matthew.Arsenault
AMDGPU/GlobalISel: Allow VGPR to index SGPR register
We can still do a waterfall loop over the index if using a VGPR to index
an SGPR. The result will still be a VGPR, but we can avoid the wide copy
of the source register to a VGPR.
llvm-svn: 373637
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-extract-vector-elt.mir
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
Commit 233ff982c787aeaebe2dc271695e663675eddf74 by Matthew.Arsenault
AMDGPU/GlobalISel: Split 64-bit vector extracts during RegBankSelect
Register indexing 64-bit elements is possible on the SALU, but not the
VALU. Handle splitting this into two 32-bit indexes. Extend waterfall
loop handling to allow moving a range of instructions.
llvm-svn: 373638
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.h
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-extract-vector-elt.mir
Commit ed77b27441e109e9457c3034848dad79f2014935 by Matthew.Arsenault
AMDGPU/GlobalISel: Handle RegBankSelect of G_INSERT_VECTOR_ELT
llvm-svn: 373639
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-insert-vector-elt.mir
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
Commit 085baf8d4e0a764db81b754c53683540156e1340 by Jonas Devlieghere
[dsymutil] Don't overload LinkOptions.
This should fix the build bots:
  error: declaration of ‘llvm::dsymutil::LinkOptions
DsymutilOptions::LinkOptions’ [-fpermissive]
llvm-svn: 373640
The file was modifiedllvm/tools/dsymutil/dsymutil.cpp
Commit eb8d85e5db501d8b1c43e70ce2172102e0418754 by llvm-dev
[X86] matchShuffleWithSHUFPD - use Zeroable element mask directly. NFCI.
We can make use of the Zeroable mask to indicate which elements we can
safely set to zero instead of creating a target shuffle mask on the fly.
This only leaves one user of createTargetShuffleMask which we can
hopefully get rid of in a similar manner.
This is part of the work to fix PR43024 and allow us to use
SimplifyDemandedElts to simplify shuffle chains - we need to get to a
point where the target shuffle masks isn't adjusted by its source inputs
in setTargetShuffleZeroElements but instead we cache them in a parallel
Zeroable mask.
llvm-svn: 373641
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit 6fb03a290b277a74e91715e8c379b232558b39b1 by Vitaly Buka
[compiler-rt] More optimization levels in signal_line.cpp test
llvm-svn: 373642
The file was modifiedcompiler-rt/test/sanitizer_common/TestCases/Linux/signal_line.cpp
Commit 8d2eaf9239fb29a06bf9b12658b0a4192062fabe by richard-llvm
PR43547: substitute into the type of a non-type template parameter if
it's instantiation-dependent, even if it's not dependent.
There might be a SFINAE check in the parameter type.
llvm-svn: 373643
The file was modifiedclang/lib/Sema/SemaTemplate.cpp
The file was modifiedclang/test/SemaTemplate/temp_arg_nontype.cpp
Commit f149ea8bb5ddd488bc20f8e0de3dbfb7c4d4bf12 by Jonas Devlieghere
[Host] Return the user's shell from GetDefaultShell
LLDB handles shell expansion by running lldb-argdumper under a shell.
Currently, this is always /bin/sh on POSIX. This potentially leads to
different behavior between lldb and the user's current shell. Here's an
example of different expansions between shells:
$ /bin/bash -c 'echo -config={Options:[{key:foo_key,value:foo_value}]}'
-config={Options:[key:foo_key]} -config={Options:[value:foo_value]}
$ /bin/zsh -c 'echo -config={Options:[{key:foo_key,value:foo_value}]}'
zsh:1: no matches found: -config={Options:[key:foo_key]}
$ /bin/sh -c 'echo -config={Options:[{key:foo_key,value:foo_value}]}'
-config={Options:[key:foo_key]} -config={Options:[value:foo_value]}
$ /bin/fish -c 'echo -config={Options:[{key:foo_key,value:foo_value}]}'
-config=Options:[key:foo_key] -config=Options:[value:foo_value]
To reduce surprises, this patch returns the user's current shell. It
first looks at the SHELL environment variable. If that isn't set, it'll
ask for the user's default shell. Only if that fails, we'll fallback to
/bin/sh, which should always be available.
Differential revision: https://reviews.llvm.org/D68316
llvm-svn: 373644
The file was modifiedlldb/source/Host/posix/HostInfoPosix.cpp
The file was addedlldb/lit/Host/Inputs/simple.c
The file was addedlldb/lit/Host/TestCustomShell.test
Commit 185ee6ec7cb3f1f63f7e06807cbfd9feb495ad3e by craig.topper
[X86] Add v32i8 shuffle lowering strategy to recognize two v4i64 vectors
truncated to v4i8 and concatenated into the lower 8 bytes with
undef/zero upper bytes.
This patch recognizes the shuffle pattern we get from a v8i64->v8i8
truncate when v8i64 isn't a legal type.
With VLX we can use two VTRUNCs, unpckldq, and a insert_subvector.
Diffrential Revision: https://reviews.llvm.org/D68374
llvm-svn: 373645
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/shuffle-vs-trunc-512.ll
The file was modifiedllvm/test/CodeGen/X86/min-legal-vector-width.ll
Commit b2b43c8576c9b88b65049b4ee4b03afa1fae2308 by rupprecht
[NFC] Fix unused variable in release builds
llvm-svn: 373646
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
Commit fb13e65acf0b7de3dd0b60b6312df07fdf9da652 by mydeveloperday
[clang-format] Add ability to wrap braces after multi-line control
statements
Summary: Change the BraceWrappingFlags' AfterControlStatement from a
bool to an enum with three values:
* "Never": This is the default, and does not do any brace wrapping after
control statements.
* "MultiLine": This only wraps braces after multi-line control
statements (this really only happens when a ColumnLimit is specified).
* "Always": This always wraps braces after control statements.
The first and last options are backwards-compatible with "false" and
"true", respectively.
The new "MultiLine" option is useful for when a wrapped control
statement's indentation matches the subsequent block's indentation. It
makes it easier to see at a glance where the control statement ends and
where the block's code begins. For example:
``` if (
foo
&& bar )
{
baz();
}
```
vs.
``` if (
foo
&& bar ) {
baz();
}
```
Short control statements (1 line) do not wrap the brace to the next
line, e.g.
``` if (foo) {
bar();
} else {
baz();
}
```
Reviewers: sammccall, owenpan, reuk, MyDeveloperDay, klimek
Reviewed By: MyDeveloperDay
Subscribers: MyDeveloperDay, cfe-commits
Patch By: mitchell-stellar
Tags: #clang-format, #clang, #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D68296
llvm-svn: 373647
The file was modifiedclang/unittests/Format/FormatTest.cpp
The file was modifiedclang/include/clang/Format/Format.h
The file was modifiedclang/lib/Format/UnwrappedLineFormatter.cpp
The file was modifiedclang/lib/Format/UnwrappedLineParser.cpp
The file was modifiedclang/docs/ClangFormatStyleOptions.rst
The file was modifiedclang/lib/Format/Format.cpp
The file was modifiedclang/unittests/Format/FormatTestObjC.cpp
Commit 5d96b4ce288241f58372ef9d951216bf28996f57 by richard-llvm
Check for qualified function types after substituting into the operand
of 'typeid'.
This is a rare place where it's valid for a function type to be
substituted but not valid for a qualified function type to be
substituted, so needs a special check.
llvm-svn: 373648
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedclang/lib/Sema/SemaType.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/test/SemaTemplate/instantiate-expr-4.cpp
The file was modifiedclang/lib/Sema/SemaExprCXX.cpp
Commit 99d0d3ae90ac1e762f5a69ec9d404659ace6a903 by Yaxun.Liu
[HIP] Use option -nogpulib to disable linking device lib
Differential Revision: https://reviews.llvm.org/D68300
llvm-svn: 373649
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Driver/ToolChains/Cuda.cpp
The file was modifiedclang/lib/Driver/ToolChains/HIP.cpp
The file was addedclang/test/Driver/hip-no-device-libs.hip
Commit bed690e3700b7b293b3d71f024f11908c8a171f3 by eric
Attempt to remove linker workaround on the buildbots.
I have no idea if this is still needed, but removing the workaround
seems like the easiest way to test.
I'll revert this change if the bots go red.
llvm-svn: 373650
The file was modifiedlibcxx/utils/docker/scripts/docker_update_bot.sh
Commit 18350af15930813378263e694f5d8ea694d6ef2e by daniel_l_sanders
[gicombiner] Add a CodeExpander to handle C++ fragments with variable
expansion
Summary: This will handle expansion of C++ fragments in the declarative
combiner including custom predicates, and escapes into C++ to aid the
migration effort.
Fixed the -DLLVM_LINK_LLVM_DYLIB=ON using DISABLE_LLVM_LINK_LLVM_DYLIB
when creating the library. Apparently it automatically links to
libLLVM.dylib and we don't want that from tablegen.
Reviewers: bogner, volkan
Subscribers: mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68288
> llvm-svn: 373551
llvm-svn: 373651
The file was modifiedllvm/utils/TableGen/GICombinerEmitter.cpp
The file was addedllvm/utils/TableGen/GlobalISel/CMakeLists.txt
The file was addedllvm/utils/TableGen/GlobalISel/CodeExpander.cpp
The file was addedllvm/utils/TableGen/GlobalISel/CodeExpansions.h
The file was addedllvm/unittests/TableGen/CodeExpanderTest.cpp
The file was modifiedllvm/unittests/CMakeLists.txt
The file was addedllvm/utils/TableGen/GlobalISel/CodeExpander.h
The file was addedllvm/unittests/TableGen/CMakeLists.txt
The file was modifiedllvm/utils/TableGen/CMakeLists.txt
Commit 4a6881eabce393226545e80661179691ab04d53e by Jinsong Ji
[PowerPC] Adjust the naming and operand order of fnmsub patterns
Summary: This is follow up patch of https://reviews.llvm.org/D67595.
Adjust naming and the Commutable operands for additional patterns to
make it easier to read.
The testcase update also show that we can save some unecessary fmr as
well.
Reviewers: #powerpc, steven.zhang, hfinkel, nemanjai
Reviewed By: #powerpc, nemanjai
Subscribers: wuzish, hiraditya, kbarton, MaskRay, shchenz, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68112
llvm-svn: 373652
The file was modifiedllvm/test/CodeGen/PowerPC/fma-assoc.ll
The file was modifiedllvm/test/CodeGen/PowerPC/fma-ext.ll
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrVSX.td
The file was modifiedllvm/test/CodeGen/PowerPC/f128-fma.ll
The file was modifiedllvm/test/CodeGen/PowerPC/repeated-fp-divisors.ll
The file was modifiedllvm/test/CodeGen/PowerPC/combine-fneg.ll
Commit 5e7e6f16d945e9ff90cee1630c81a1f5aa803633 by eric
Attempt to remove linker workaround on the buildbots: Attempt 2
The first commit removed the workaround in a old script. This patch
removes it in the file actually used by the bots.
I have no idea if this is still needed, but removing the workaround
seems like the easiest way to test.
I'll revert this change if the bots go red.
llvm-svn: 373653
The file was modifiedlibcxx/utils/docker/scripts/run_buildbot.sh
Commit 6695ff62d0b2794604c8316039add364ecdc6ec4 by nicolasweber
Reland "gn build: (manually) merge r373551"
373551 relanded in 373651.
llvm-svn: 373654
The file was addedllvm/utils/gn/secondary/llvm/unittests/TableGen/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
The file was addedllvm/utils/gn/secondary/llvm/utils/TableGen/GlobalISel/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/BUILD.gn
Commit ede784ff5a600c5ee99270987d55abcc1e806891 by ndesaulniers
[AArch64InstPrinter] prefer bfi to bfc for < armv8.2-a
Summary: Fixes pr/42576.
Link: https://github.com/ClangBuiltLinux/linux/issues/697
Reviewers: t.p.northover
Reviewed By: t.p.northover
Subscribers: kristof.beyls, hiraditya, llvm-commits, srhines
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68356
llvm-svn: 373655
The file was modifiedllvm/test/MC/AArch64/basic-a64-instructions.s
The file was modifiedllvm/test/MC/Disassembler/AArch64/basic-a64-instructions.txt
The file was addedllvm/test/MC/AArch64/armv8.2a-bfc.s
The file was modifiedllvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
Commit 5f775d2912d4092d89742402315e6543966c8dce by Jonas Devlieghere
[JSON] Don't wrap json::Array in a value (NFC)
There's no need to wrap the just-constructed json::Array in a
json::Value, we can just return that and pass ownership to the
raw_ostream.
llvm-svn: 373656
The file was modifiedlldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
Commit 230cf9a36022ce3adbe67fb43486209f3e944883 by Jinsong Ji
[AArch64][SVE] Move the testcase into CodeGen dir
https://reviews.llvm.org/rL373600 added an AArch64 testcase in top dir
which should be moved to Codegen dir.
llvm-svn: 373657
The file was removedsve-fp.ll
The file was addedllvm/test/CodeGen/AArch64/sve-fp.ll
Commit 65d63ac05a2a12a1e1e7ed3c048c4ea71d224c28 by listmail
[Test] Fix inconsistency in alignment in test case
The IR was using a fixed 8 byte alignment, but the MIR portion was using
native alignment.  Since the test doesn't appear to be deliberately
testing overalignment, just make the IR match the MIR.
llvm-svn: 373658
The file was modifiedllvm/test/CodeGen/X86/GlobalISel/select-memop-scalar-unordered.mir
Commit 82cb5bc3026739962c12427ea21ac31b2405c60b by listmail
[Tests] Add a unordered atomic load combine test
llvm-svn: 373659
The file was modifiedllvm/test/CodeGen/X86/atomic-unordered.ll
Commit c118a03e6945805edc88732a33ff51cc4d96db09 by nicolasweber
gn build: (manually) merge 373651 better
The reland uses a static library, not an object library. Doesn't really
matter for the gn build, but it's probalby nice to have the same
semantics for the target type.
llvm-svn: 373660
The file was modifiedllvm/utils/gn/secondary/llvm/utils/TableGen/GlobalISel/BUILD.gn
Commit 0364c760adba67ab91aed7c9b9f219fb28a355e4 by a.bataev
[OPENMP50]Codegen support for scores in context selectors.
If the context selector has associated score and several contexts
selectors matches current context, the function with the highest score
must be selected.
llvm-svn: 373661
The file was modifiedclang/test/OpenMP/declare_variant_implementation_vendor_codegen.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
Commit 350147c74662c80ecb5896af878fadbea2e9ef07 by Jonas Devlieghere
[test] Disable TestCustomShell on Linux
ShellExpandArguments is unimplemented on Linux. I need to come up with
another way to test this on Linux.
llvm-svn: 373662
The file was modifiedlldb/lit/Host/TestCustomShell.test
Commit 2ac586c58f1fade51b397e375b2cdcdbf33b40a8 by dblaikie
DebugInfo: Generalize rnglist emission as a precursor to reusing it for
loclist emission
llvm-svn: 373663
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Commit 204623e05c12dd137c2ffdda4876afd4fb66309f by nicolasweber
Reland r349624: Let TableGen write output only if it changed, instead of
doing so in cmake
Move the write-if-changed logic behind a flag and don't pass it with the
MSVC generator. msbuild doesn't have a restat optimization, so not doing
write-if-change there doesn't have a cost, and it should fix whatever
causes PR43385.
llvm-svn: 373664
The file was modifiedllvm/cmake/modules/TableGen.cmake
The file was modifiedllvm/lib/TableGen/Main.cpp
The file was modifiedllvm/utils/gn/secondary/llvm/utils/TableGen/tablegen.gni
Commit d2d2e33f25d23dbd27d48428c70cdf62f896e75e by llvm-dev
OverloadCandidate::getNumParams - silence static analyzer
getAs<FunctionProtoType> null dereference warning. NFCI.
The static analyzer is warning about a potential null dereference, but
we should be able to use castAs<FunctionProtoType> directly and if not
assert will fire for us.
Also replaces an auto to make the type more obvious.
llvm-svn: 373665
The file was modifiedclang/include/clang/Sema/Overload.h
Commit 288079aafdbde5d408db86a697ee5b19a0902f1d by spatel
[DAGCombiner] add operation legality checks before creating shift ops
(PR43542)
As discussed on llvm-dev and:
https://bugs.llvm.org/show_bug.cgi?id=43542
...we have transforms that assume shift operations are legal and
transforms to use them are profitable, but that may not hold for simple
targets.
In this case, the MSP430 target custom lowers shifts by repeating (many)
simpler/fixed ops. That can be avoided by keeping this code as
setcc/select.
Differential Revision: https://reviews.llvm.org/D68397
llvm-svn: 373666
The file was modifiedllvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
The file was modifiedllvm/test/CodeGen/MSP430/selectcc.ll
Commit 9588ae772d6a3742e8429d86d65e3fd68f6d9444 by llvm-dev
ASTContext - silence static analyzer getAs<> null dereference warnings.
NFCI.
The static analyzer is warning about potential null dereferences, but we
should be able to use castAs<> directly and if not assert will fire for
us.
We can also remove a number of explicit asserts and reply on the
internal asserts in castAs<>
llvm-svn: 373667
The file was modifiedclang/lib/AST/ASTContext.cpp
Commit 958091c209d0a92e38b9cb27fb77a0ff7da11853 by hhb
[lldb] Calculate relative path for symbol links
Summary: This replaces the hard coded path.
Reviewers: labath, mgorny
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D67993
llvm-svn: 373668
The file was modifiedlldb/scripts/Python/finishSwigPythonLLDB.py
Commit 48b38c93bc02fd3625118100d0d74224ee25fd2e by hhb
[lldb] Remove unused variables.
Fixes the comment in https://reviews.llvm.org/D67993
llvm-svn: 373669
The file was modifiedlldb/scripts/Python/finishSwigPythonLLDB.py
Commit e0a398bf3195746d026d06721a5521d21cc23f3e by a20012251
[process list] make the TRIPLE column wider
Summary: Now that `process list` works better on the android platform,
the arch aarch64-unknown-linux-android appears quite often. The existing
printed width of the TRIPLE column is not long enough, which doesn't
look okay. E.g.
``` 1561   1016                    aarch64-unknown-linux-android
ip6tables-restore 1999   1                     
aarch64-unknown-linux-android tlc_server 2332   982                    
                        com.android.systemui 2378   983                
                            webview_zygote
```
Now, after adding 6 spaces, it looks better
``` PID    PARENT USER       TRIPLE                         NAME
====== ====== ========== ==============================
============================
... 1561   1016              aarch64-unknown-linux-android
ip6tables-restore 1999   1                 aarch64-unknown-linux-android
tlc_server 2332   982                                            
com.android.systemui 2378   983                                        
    webview_zygote 2448   982                                          
  com.sec.location.nsflp2
```
Reviewers: clayborg, labath, xiaobai, aadsm
Reviewed By: labath
Subscribers: srhines, kristof.beyls, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D68291
llvm-svn: 373670
The file was modifiedlldb/unittests/Utility/ProcessInstanceInfoTest.cpp
The file was modifiedlldb/source/Utility/ProcessInfo.cpp
Commit 9d4a6b1bb2cee55c43ec44664d61fdb3cf932f7a by rupprecht
[llvm-objdump] Further rearrange llvm-objdump sections for compatability
Summary: rL371826 rearranged some output from llvm-objdump for GNU
objdump compatability, but there still seem to be some more.
I think this rearrangement is a little closer. Overview of the ordering
which matches GNU objdump:
* Archive headers
* File headers
* Section headers
* Symbol table
* Dwarf debugging
* Relocations (if `--disassemble` is not used)
* Section contents
* Disassembly
Reviewers: jhenderson, justice_adams, grimar, ychen, espindola
Reviewed By: jhenderson
Subscribers: aprantl, emaste, arichardson, jrtc27, atanasyan, seiya,
llvm-commits, MaskRay
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68066
llvm-svn: 373671
The file was modifiedlld/test/ELF/mips-hilo-hi-only.s
The file was modifiedlld/test/ELF/got32x-i386.s
The file was addedllvm/test/tools/llvm-objdump/output-ordering.test
The file was modifiedlld/test/ELF/arm-target1.s
The file was modifiedlld/test/ELF/mips-micror6-relocs.s
The file was modifiedlld/test/ELF/mips-hilo.s
The file was modifiedlld/test/ELF/mips-pc-relocs.s
The file was modifiedllvm/test/tools/llvm-objdump/X86/adjust-vma.test
The file was modifiedlld/test/ELF/mips-gprel32-relocs-gp0.s
The file was modifiedlld/test/ELF/mips-tls-static-64.s
The file was modifiedlld/test/ELF/mips-32.s
The file was modifiedllvm/test/tools/llvm-objdump/X86/demangle.s
The file was modifiedllvm/test/tools/llvm-objdump/all-headers.test
The file was modifiedlld/test/ELF/i386-pc8-pc16-addend.s
The file was modifiedlld/test/ELF/arm-icf-exidx.s
The file was modifiedllvm/test/MC/COFF/symidx.s
The file was modifiedllvm/test/tools/llvm-objdump/X86/out-of-section-sym.test
The file was modifiedlld/test/ELF/i386-retpoline-nopic.s
The file was modifiedlld/test/ELF/mips-tls.s
The file was modifiedlld/test/ELF/relocation.s
The file was modifiedlld/test/ELF/i386-retpoline-pic.s
The file was modifiedlld/test/ELF/mips-64-rels.s
The file was modifiedlld/test/ELF/mips-hilo-gp-disp.s
The file was modifiedlld/test/ELF/mips-64-got.s
The file was modifiedlld/test/ELF/x86-64-retpoline-znow.s
The file was modifiedlld/test/ELF/mips-64.s
The file was modifiedlld/test/ELF/mips-micro-relocs.s
The file was modifiedlld/test/ELF/mips-got16.s
The file was modifiedlld/test/ELF/x86-64-retpoline.s
The file was modifiedlld/test/ELF/mips-gp-ext.s
The file was modifiedlld/test/ELF/mips-mgot.s
The file was modifiedlld/test/ELF/mips-nonalloc.s
The file was modifiedlld/test/ELF/mips-tls-static.s
The file was modifiedlld/test/ELF/mips-tls-hilo.s
The file was modifiedlld/test/ELF/mips-got16-relocatable.s
The file was modifiedlld/test/ELF/i386-reloc8-reloc16-addend.s
The file was modifiedlld/test/ELF/non-alloc-link-order-gc.s
The file was modifiedlld/test/ELF/mips-gprel32-relocs.s
The file was modifiedlld/test/ELF/mips-micro-cross-calls.s
The file was modifiedlld/test/ELF/relocation-common.s
The file was modifiedlld/test/ELF/got32-i386.s
The file was modifiedlld/test/ELF/mips-n32-rels.s
The file was modifiedlld/test/ELF/mips-tls-64.s
The file was modifiedlld/test/ELF/msp430.s
The file was modifiedllvm/tools/llvm-objdump/llvm-objdump.cpp
The file was modifiedlld/test/ELF/eh-frame-hdr-abs-fde.s
The file was modifiedlld/test/ELF/mips-gp-disp.s
The file was modifiedlld/test/ELF/mips-gp-local.s
Commit a92b5309e5c715eac2db48b74398606521cb47a2 by a.bataev
[OPENMP]Fix the test on Windows, NFC.
llvm-svn: 373672
The file was modifiedclang/test/OpenMP/declare_variant_implementation_vendor_codegen.cpp
Commit 943a24812df0bc1993baec7db3a5d3b170118514 by jingham
Break out the Python class & key/value options into a separate
OptionGroup.
Use this in the scripted breakpoint command.  Added some tests for
parsing the key/value options.  This uncovered a bug in handling parsing
errors mid-line. I also fixed that bug.
Differential Revision: https://reviews.llvm.org/D68363
llvm-svn: 373673
The file was modifiedlldb/source/Interpreter/Options.cpp
The file was addedlldb/source/Interpreter/OptionGroupPythonClassWithDict.cpp
The file was modifiedlldb/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/resolver.py
The file was modifiedlldb/source/Commands/CommandObjectBreakpoint.cpp
The file was addedlldb/include/lldb/Interpreter/OptionGroupPythonClassWithDict.h
The file was modifiedlldb/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py
The file was modifiedlldb/source/Interpreter/CMakeLists.txt
The file was modifiedlldb/source/Commands/Options.td
Commit 145cdad11925194ec41949b5c8f0cb037f9e7941 by asbirlea
[MemorySSA] Don't hoist stores if interfering uses (as calls) exist.
llvm-svn: 373674
The file was addedllvm/test/Analysis/MemorySSA/pr43540.ll
The file was modifiedllvm/test/Transforms/LICM/guards.ll
The file was modifiedllvm/lib/Transforms/Scalar/LICM.cpp
Commit 27a14f19c810f494adddb8aaff960336ab4492e7 by jingham
Pass an SBStructuredData to scripted ThreadPlans on use.
This will allow us to write reusable scripted ThreadPlans, since you can
use key/value pairs with known keys in the plan to parametrize its
behavior.
Differential Revision: https://reviews.llvm.org/D68366
llvm-svn: 373675
The file was modifiedlldb/scripts/Python/python-wrapper.swig
The file was modifiedlldb/include/lldb/API/SBStructuredData.h
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
The file was modifiedlldb/include/lldb/API/SBThread.h
The file was modifiedlldb/include/lldb/API/SBThreadPlan.h
The file was modifiedlldb/scripts/interface/SBThread.i
The file was modifiedlldb/source/API/SBThreadPlan.cpp
The file was modifiedlldb/source/Target/Thread.cpp
The file was modifiedlldb/include/lldb/Target/ThreadPlanPython.h
The file was modifiedlldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
The file was modifiedlldb/packages/Python/lldbsuite/test/commands/help/TestHelp.py
The file was modifiedlldb/packages/Python/lldbsuite/test/functionalities/step_scripted/Steps.py
The file was modifiedlldb/packages/Python/lldbsuite/test/functionalities/step_scripted/TestStepScripted.py
The file was modifiedlldb/source/API/SBThread.cpp
The file was modifiedlldb/source/Commands/CommandObjectThread.cpp
The file was modifiedlldb/scripts/interface/SBThreadPlan.i
The file was modifiedlldb/include/lldb/Interpreter/ScriptInterpreter.h
The file was modifiedlldb/source/Target/ThreadPlanPython.cpp
The file was modifiedlldb/include/lldb/Target/Thread.h
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
Commit d84e942703e4bd558e2be1483803f5c4ed32eb26 by rupprecht
[llvm-objdump][test] Move test to X86 dir to avoid errors disassembling
on non-x86
llvm-svn: 373676
The file was addedllvm/test/tools/llvm-objdump/X86/output-ordering.test
The file was removedllvm/test/tools/llvm-objdump/output-ordering.test
Commit f9d8bbee898594df085292bc409eaf2c1c38f1dc by jingham
Forgot to change the header guards on OptionGroupPythonClassWithDict.
I think that's what is confusing the modules build on the bots.
llvm-svn: 373677
The file was modifiedlldb/include/lldb/Interpreter/OptionGroupPythonClassWithDict.h
The file was modifiedlldb/source/Interpreter/OptionGroupPythonClassWithDict.cpp
Commit 71662116fd9626b398a03283406a5e28c807f57c by peter
LowerTypeTests: Rename local functions to avoid collisions with
identically named functions in ThinLTO modules.
Without this we can encounter link errors or incorrect behaviour at
runtime as a result of the wrong function being referenced.
Differential Revision: https://reviews.llvm.org/D67945
llvm-svn: 373678
The file was modifiedllvm/lib/Transforms/IPO/LowerTypeTests.cpp
The file was addedllvm/test/Transforms/LowerTypeTests/export-rename-local.ll
Commit ebaa3eb127632851e3b7dbcceb98c0a2155c6324 by jingham
Python3 doesn't seem to allow you to tell whether an object is a class
PyClass_Check and everything it relied on seems gone from Python3.7.  So
I won't check whether it is a class first...
Also cleaned up a couple of warnings.
llvm-svn: 373679
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
The file was modifiedlldb/include/lldb/Interpreter/OptionGroupPythonClassWithDict.h
The file was modifiedlldb/source/Interpreter/OptionGroupPythonClassWithDict.cpp
Commit ac146958041ce41aff96a2ad2a3f984fb631eb43 by antonio.afonso
Explicitly set entry point arch when it's thumb
Summary: I found a case where the main android binary (app_process32)
had thumb code at its entry point but no entry in the symbol table
indicating this. This made lldb set a 4 byte breakpoint at that address
(we default to arm code) instead of a 2 byte one (like we should for
thumb). The big deal with this is that the expression evaluator uses the
entry point as a way to know when a JITed expression has finished
executing by putting a breakpoint there. Because of this, evaluating
expressions on certain android devices (Google Pixel something) made the
process crash. This was fixed by checking this specific situation when
we parse the symbol table and add an artificial symbol for this 2 byte
range and indicating that it's arm thumb.
I created 2 unit tests for this, one to check that now we know that the
entry point is arm thumb, and the other to make sure we didn't change
the behaviour for arm code.
I also run the following on the command line with the `app_process32`
where I found the issue:
**Before:**
```
(lldb) dis -s 0x1640 -e 0x1644 app_process32[0x1640]: .long  0xf0004668
              ; unknown opcode
```
**After:**
```
(lldb) dis -s 0x1640 -e 0x1644 app_process32`: app_process32[0x1640]
<+0>: mov    r0, sp app_process32[0x1642]:      andeq  r0, r0, r0
```
Reviewers: clayborg, labath, wallace, espindola
Subscribers: srhines, emaste, arichardson, kristof.beyls, MaskRay,
lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D68069
llvm-svn: 373680
The file was addedlldb/lit/SymbolFile/dissassemble-entry-point.s
The file was modifiedlldb/unittests/ObjectFile/ELF/TestObjectFileELF.cpp
The file was modifiedlldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
Commit 161229eb1bbc7c4e112485f716790f13c6a25fb0 by Vitaly Buka
compiler-rt: use __GLIBC_PREREQ for SANITIZER_INTERCEPT_GETRANDOM
Summary: Fixes https://github.com/google/oss-fuzz/issues/2836
Reviewers: eugenis
Subscribers: dberris, #sanitizers, llvm-commits
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D68178
llvm-svn: 373681
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
Commit 57b6536ba1ba66aca802e4fa1f78ab5fdc2df34b by Vitaly Buka
[compiler-rt] Remove O2, O3 from signal_line test for fix android tests
llvm-svn: 373682
The file was modifiedcompiler-rt/test/sanitizer_common/TestCases/Linux/signal_line.cpp
Commit 016f6f6a58aa31418de5592085c2e0ae06d4050d by Jonas Devlieghere
[dsymutil] Fix stack-use-after-scope
The lambda is taking the stack-allocated Verify boolean by reference and
it would go out of scope on the next iteration. Moving it out of the
loop should fix the issue.
Fixes https://bugs.llvm.org/show_bug.cgi?id=43549
llvm-svn: 373683
The file was modifiedllvm/tools/dsymutil/dsymutil.cpp
Commit 053391fa8637bcb77dd06dc9090b1f2271d0e22f by Vitaly Buka
[compiler-rt] Fix signal_line.cpp test
r373682 committed wrong experimental version
llvm-svn: 373684
The file was modifiedcompiler-rt/test/sanitizer_common/TestCases/Linux/signal_line.cpp
Commit 772e266fbff40a566c9ef2d805c057c4692ac028 by richard-llvm
Properly handle instantiation-dependent array bounds.
We previously failed to treat an array with an instantiation-dependent
but not value-dependent bound as being an instantiation-dependent type.
We now track the array bound expression as part of a constant array type
if it's an instantiation-dependent expression.
llvm-svn: 373685
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
The file was modifiedclang/lib/Sema/SemaInit.cpp
The file was modifiedclang/lib/AST/Type.cpp
The file was modifiedclang/lib/AST/ExprConstant.cpp
The file was modifiedclang/lib/CodeGen/CGObjC.cpp
The file was modifiedclang/test/CodeGenCXX/microsoft-uuidof-mangling.cpp
The file was modifiedclang/lib/Sema/SemaExprCXX.cpp
The file was modifiedclang/lib/CodeGen/CGStmtOpenMP.cpp
The file was modifiedclang/lib/Sema/Sema.cpp
The file was modifiedclang/lib/Serialization/ASTReader.cpp
The file was modifiedclang/include/clang/AST/ASTContext.h
The file was modifiedlldb/source/Symbol/ClangASTContext.cpp
The file was modifiedclang/lib/CodeGen/CGDebugInfo.cpp
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was modifiedclang/lib/Sema/SemaType.cpp
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
The file was modifiedclang/include/clang/AST/RecursiveASTVisitor.h
The file was modifiedclang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
The file was modifiedclang/lib/AST/ASTContext.cpp
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was modifiedclang/lib/Sema/TreeTransform.h
The file was modifiedclang/lib/CodeGen/CGAtomic.cpp
The file was modifiedclang/include/clang/AST/Type.h
The file was modifiedclang/lib/AST/ASTImporter.cpp
The file was modifiedclang/lib/Frontend/Rewrite/RewriteObjC.cpp
The file was modifiedclang/lib/Sema/SemaExprObjC.cpp
The file was modifiedclang/test/SemaTemplate/temp_arg_nontype.cpp
The file was modifiedclang/lib/Serialization/ASTWriter.cpp
Commit 2d511023c680aac890ca0298bb6b8988fa8c43e5 by Jonas Devlieghere
[Python] Remove unused variable
warning: unused variable 'py_func_obj' [-Wunused-variable]
PyObject *py_func_obj = m_py_obj; llvm-svn: 373686
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
Commit ae08e479aad9dd186065160983efe7ae42e4e15c by antonio.afonso
Revert "Explicitly set entry point arch when it's thumb"
Backing out because SymbolFile/Breakpad/symtab.test is failing and it
seems to be a legit issue. Will investigate.
This reverts commit 72153f95ee4c1b52d2f4f483f0ea4f650ec863be.
llvm-svn: 373687
The file was modifiedlldb/unittests/ObjectFile/ELF/TestObjectFileELF.cpp
The file was modifiedlldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
The file was removedlldb/lit/SymbolFile/dissassemble-entry-point.s
Commit ff55e2e0476b72f456dbb37c247ae9ffef7a4f8d by shiva0217
[RISCV] Split SP adjustment to reduce the offset of callee saved
register spill and restore
We would like to split the SP adjustment to reduce the instructions in
prologue and epilogue as the following case. In this way, the offset of
the callee saved register could fit in a single store.
    add     sp,sp,-2032
   sw      ra,2028(sp)
   sw      s0,2024(sp)
   sw      s1,2020(sp)
   sw      s3,2012(sp)
   sw      s4,2008(sp)
   add     sp,sp,-64
Differential Revision: https://reviews.llvm.org/D68011
llvm-svn: 373688
The file was modifiedllvm/test/CodeGen/RISCV/large-stack.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVFrameLowering.cpp
The file was modifiedllvm/test/CodeGen/RISCV/rv64-large-stack.ll
The file was modifiedllvm/test/CodeGen/RISCV/stack-realignment.ll
The file was addedllvm/test/CodeGen/RISCV/split-sp-adjust.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVFrameLowering.h
Commit 4e920e58e6bc3bf4450b0aae6e225943957de195 by Lang Hames
[JITLink] Switch from an atom-based model to a "blocks and symbols"
model.
In the Atom model the symbols, content and relocations of a relocatable
object file are represented as a graph of atoms, where each Atom
represents a contiguous block of content with a single name (or no name
at all if the content is anonymous), and where edges between Atoms
represent relocations. If more than one symbol is associated with a
contiguous block of content then the content is broken into multiple
atoms and layout constraints (represented by edges) are introduced to
ensure that the content remains effectively contiguous. These layout
constraints must be kept in mind when examining the content associated
with a symbol (it may be spread over multiple atoms) or when applying
certain relocation types (e.g. MachO subtractors).
This patch replaces the Atom model in JITLink with a blocks-and-symbols
model. The blocks-and-symbols model represents relocatable object files
as bipartite graphs, with one set of nodes representing contiguous
content (Blocks) and another representing named or anonymous locations
(Symbols) within a Block. Relocations are represented as edges from
Blocks to Symbols. This scheme removes layout constraints (simplifying
handling of MachO alt-entry symbols, and hopefully ELF sections at some
point in the future) and simplifies some relocation logic.
llvm-svn: 373689
The file was modifiedllvm/lib/ExecutionEngine/JITLink/EHFrameSupportImpl.h
The file was modifiedllvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
The file was modifiedllvm/unittests/ExecutionEngine/JITLink/MachO_x86_64_Tests.cpp
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
The file was modifiedllvm/tools/llvm-jitlink/llvm-jitlink-macho.cpp
The file was removedllvm/lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.cpp
The file was modifiedllvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp
The file was modifiedllvm/test/ExecutionEngine/JITLink/X86/MachO_zero_fill_alignment.s
The file was modifiedllvm/lib/ExecutionEngine/JITLink/CMakeLists.txt
The file was modifiedllvm/tools/llvm-jitlink/llvm-jitlink.h
The file was modifiedllvm/unittests/ExecutionEngine/JITLink/JITLinkTestCommon.h
The file was modifiedllvm/lib/ExecutionEngine/JITLink/BasicGOTAndStubsBuilder.h
The file was modifiedllvm/unittests/ExecutionEngine/JITLink/JITLinkTestCommon.cpp
The file was addedllvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
The file was modifiedllvm/tools/llvm-jitlink/llvm-jitlink.cpp
The file was modifiedllvm/lib/ExecutionEngine/Orc/Core.cpp
The file was addedllvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h
The file was modifiedllvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.h
The file was modifiedllvm/lib/ExecutionEngine/JITLink/JITLink.cpp
The file was modifiedllvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp
The file was modifiedllvm/include/llvm/ExecutionEngine/JITLink/EHFrameSupport.h
The file was modifiedllvm/include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h
The file was modifiedllvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
The file was removedllvm/lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.h
The file was modifiedllvm/lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp
Commit ea31d1807c50a50e67533cdab794d0f2c7b046e2 by llvmgnsyncbot
gn build: Merge r373689
llvm-svn: 373690
The file was modifiedllvm/utils/gn/secondary/llvm/lib/ExecutionEngine/JITLink/BUILD.gn
Commit 4a71328f1574e76fa45d6f3efe355fde999236a4 by maskray
Make libc++ gdb pretty printer Python 3 compatible
llvm-svn: 373691
The file was modifiedlibcxx/utils/gdb/libcxx/printers.py
The file was modifiedlibcxx/test/pretty_printers/gdb_pretty_printer_test.py
Commit 6fd9129aafdf3c81b0edc7f29ac9d7cfd380be12 by Lang Hames
[JITLink] Fix an unused variable warning.
llvm-svn: 373692
The file was modifiedllvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp
Commit 7f379a3366ca8e80f891f7b9a51d79b81834741e by Lang Hames
[JITLink] Explicitly destroy bumpptr-allocated blocks to avoid a memory
leak.
llvm-svn: 373693
The file was modifiedllvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
The file was modifiedllvm/lib/ExecutionEngine/JITLink/JITLink.cpp
Commit cb46b69e3eeae23b99f646e6dd23b1f05f6d8671 by mgorny
[clang-tools-extra] [cmake] Use add_clang_tool() to install tools
Replace add_clang_executable() calls with add_clang_tool() that takes
care of creating correct, distribution-friendly install target.  While
at it, remove redundant install calls.
This change also causes clang-move and pp-trace to be installed.
Differential Revision: https://reviews.llvm.org/D68423
llvm-svn: 373694
The file was modifiedclang-tools-extra/clang-include-fixer/find-all-symbols/tool/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-apply-replacements/tool/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-move/tool/CMakeLists.txt
The file was modifiedclang-tools-extra/pp-trace/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-change-namespace/tool/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-query/tool/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-include-fixer/tool/CMakeLists.txt
Commit 5caeb4a9b0ce48df77e6aa1c27f167de4ae6af82 by mgorny
[clang] [cmake] Add distribution install targets for remaining
components
Add install targets as necessary to install bash-autocomplete,
scan-build and scan-view via LLVM_DISTRIBUTION_TARGETS.
Differential Revision: https://reviews.llvm.org/D68413
llvm-svn: 373695
The file was modifiedclang/CMakeLists.txt
The file was modifiedclang/tools/scan-view/CMakeLists.txt
The file was modifiedclang/tools/scan-build/CMakeLists.txt
The file was modifiedclang/utils/hmaptool/CMakeLists.txt
Commit 5dd60c0c54eee9e47132c846d3e62c7c4146e880 by martin
[JITLink] Remove a redundant semicolon, silencing -Wpedantic warnings
with GCC. NFC.
llvm-svn: 373696
The file was modifiedllvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
Commit 30cb220115892875501835627be3f5e6ef01cddd by martin
[test] Remove a needless declaration of REQUIRES: target-windows
This test only relies on running on a case insensitive file system, the
exact target triple of the toolchain shouldn't matter.
Differential Revision: https://reviews.llvm.org/D68136
llvm-svn: 373697
The file was modifiedllvm/test/tools/llvm-ar/case-detection.test
Commit 1ca074b86af733f7b11e6ed56326ee02cb3b3798 by martin
[Symbolize] Use the local MSVC C++ demangler instead of relying on
dbghelp. NFC.
This allows making a couple llvm-symbolizer tests run in all
environments.
Differential Revision: https://reviews.llvm.org/D68133
llvm-svn: 373698
The file was modifiedllvm/test/tools/llvm-symbolizer/coff-dwarf.test
The file was modifiedllvm/test/tools/llvm-symbolizer/coff-exports.test
The file was modifiedllvm/lib/DebugInfo/Symbolize/Symbolize.cpp
Commit 165e469145ec94c845338334f128cd2f7024c47d by Piotr Sobczak
[AMDGPU][SILoadStoreOptimizer] NFC: Refactor code
Summary: This patch fixes a potential aliasing problem in InstClassEnum,
where local values were mixed with machine opcodes.
Introducing InstSubclass will keep them separate and help extending
InstClassEnum with other instruction types (e.g. MIMG) in the future.
This patch also makes getSubRegIdxs() more concise.
Reviewers: nhaehnle, arsenm, tstellar
Reviewed By: arsenm
Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl,
dstuttard, tpr, t-tye, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68384
llvm-svn: 373699
The file was modifiedllvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
Commit b455ebf921c5c940c2366bec226959e3a4127fee by thomasp
[test] Remove locale dependency for mri-utf8.test
Summary: llvm-ar's mri-utf8.test test relies on the en_US.UTF-8 locale
to be installed for its last RUN line to work. If not installed, the
unicode string gets encoded (interpreted) as ascii which fails since the
most significant byte is non zero. This commit changes the call to open
to use a binary literal of the UTF-8 encoding for the pound sign
instead, thus bypassing the encoding step.
Note that the echo to create the <pound sign>.txt file will work
regardless of the locale because both the shell and the echo (in case
it's not a builtin of the shell concerned) only care about ascii
character to operate. Indeed, the mri-utf8.test file (and in particular
the pound sign) is encoded in UTF-8 and UTF-8 guarantees only ascii
characters can create bytes that can be interpreted as ascii characters
(i.e. bytes with the most significant bit null).
So the process to break down the filename in the line goes something
along:
- find an ascii chevron '>'
- find beginning of the filename by removing ascii space-like characters
- find ascii newline character indicating the end of the redirection (no
semicolon ';', closing curly bracket '}' or parenthesis ')' or the
like
- create a file whose name is made of all the bytes in between beginning
and end of filename *without interpretting them*
Reviewers: gbreynoo, MaskRay, rupprecht, JamesNagurne, jfb
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68418
llvm-svn: 373700
The file was modifiedllvm/test/tools/llvm-ar/mri-utf8.test
Commit b8f790234ffe38206aa77ceb916eb0670a95ac9d by martin
Revert "[Symbolize] Use the local MSVC C++ demangler instead of relying
on dbghelp. NFC."
This reverts SVN r373698, as it broke sanitizer tests, e.g. in
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/52441.
llvm-svn: 373701
The file was modifiedllvm/test/tools/llvm-symbolizer/coff-dwarf.test
The file was modifiedllvm/test/tools/llvm-symbolizer/coff-exports.test
The file was modifiedllvm/lib/DebugInfo/Symbolize/Symbolize.cpp
Commit bb91a833c6796fb648a72bb03c865932f4329f00 by Vitaly Buka
[compiler-rt] Remove O1 tests from signal_line.cpp
It does not work on arm
llvm-svn: 373702
The file was modifiedcompiler-rt/test/sanitizer_common/TestCases/Linux/signal_line.cpp
Commit 67858244314c81a225ae4de7208266316fc27df9 by ruiu
Revert r371729: lld-link: Make /linkrepro: take a filename, not a
directory.
This reverts commit r371729 because /linkrepro option also exists in
Microsoft link.exe and their linker takes not a filename but a directory
name as an argument for /linkrepro.
Differential Revision: https://reviews.llvm.org/D68378
llvm-svn: 373703
The file was modifiedlld/COFF/Driver.cpp
The file was modifiedlld/docs/ReleaseNotes.rst
The file was modifiedlld/test/COFF/linkrepro.test
The file was modifiedlld/test/COFF/linkrepro-pdb.test
The file was modifiedlld/test/COFF/linkrepro-res.test
Commit 0d53ac8096433cf36d5f605e7aab5ecb3f1becb3 by ruiu
Add /reproduce option to lld/COFF
This patch adds /reproduce:<path> option to lld/COFF. This is an
lld-specific option, so we can name it freely. I chose /reproduce over
other names (e.g. /lldlinkrepro) for consistency with other lld ports.
Differential Revision: https://reviews.llvm.org/D68381
llvm-svn: 373704
The file was modifiedlld/COFF/Options.td
The file was modifiedlld/COFF/Driver.cpp
The file was modifiedlld/test/COFF/linkrepro.test
Commit e4758a5c279aa027ea2bff6729f73b2de3d96996 by ruiu
[MinGW] Add --reproduce option
Differential Revision: https://reviews.llvm.org/D68382
llvm-svn: 373705
The file was modifiedlld/MinGW/Options.td
The file was modifiedlld/test/MinGW/driver.test
The file was modifiedlld/MinGW/Driver.cpp
Commit 03b216d85472c45d3359e9e1593f5ea49f2633f7 by dave
[X86] Enable inline memcmp() to use AVX512
llvm-svn: 373706
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
The file was modifiedllvm/test/CodeGen/X86/memcmp.ll
Commit a2f963bb61e3e83287ea9eecd39198051b0c1cef by mydeveloperday
[clang-format] [PR43333] Fix C# breaking before function name when using
Attributes
Summary: This is  a fix for https://bugs.llvm.org/show_bug.cgi?id=43333
This comes with 3 main parts
  - C# attributes cause function names on a new line even when
AlwaysBreakAfterReturnType is set to None
- Add AlwaysBreakAfterReturnType  to None by default in the Microsoft
style,
- C# unit tests are not using Microsoft style (which we created to
define the default C# style to match a vanilla C# project).
Reviewers: owenpan, klimek, russellmcc, mitchell-stellar
Reviewed By: mitchell-stellar
Subscribers: cfe-commits
Tags: #clang-tools-extra, #clang, #clang-format
Differential Revision: https://reviews.llvm.org/D67629
llvm-svn: 373707
The file was modifiedclang/lib/Format/TokenAnnotator.cpp
The file was modifiedclang/unittests/Format/FormatTestCSharp.cpp
The file was modifiedclang/lib/Format/Format.cpp
The file was modifiedclang/lib/Format/ContinuationIndenter.cpp
The file was modifiedclang/include/clang/Format/Format.h
Commit 7588cf09da479a66f8ceba4bd78eba83787b16ac by maskray
[ELF] Use union-find set and doubly linked list in Call-Chain Clustering
(C³) heuristic
Before, SecToClusters[*] was used to track the belonged cluster. During
a merge (From -> Into), every element of From has to be updated. Use a
union-find set to speed up this use case.
Also, replace `std::vector<int> Sections;` with a doubly-linked
pointers: int Next, Prev;
Reviewed By: Bigcheese
Differential Revision: https://reviews.llvm.org/D46228
llvm-svn: 373708
The file was modifiedlld/ELF/CallGraphSort.cpp
Commit 4c056583548ab59e2ad24deb2ca30790a290a8e3 by mydeveloperday
[clang-format] [PR43338] C# clang format has space issues betweern C#
only keywords
Summary: When formatting C# there can be issues with a lack of spaces
between `using (` , `foreach (` and generic types
The C# code
``` public class Foo
{
   Dictionary<string,string> foo;
}
``` will be formatted as
``` public class Foo
{
   Dictionary<string, string>foo;
                          ^^^^^   missing a space
}
```
This revision also reverts some of {D66662} in order to make this
cleaner and resolve an issues seen by @owenpan that the formatting
didn't add a space when not in a code block
This also transforms C# foreach commands to be seen as tok::kw_for
commands (to ensure foreach gets the same Brace Wrapping behavior as for
without littering the code with `if(Style.isCSharp())`
Reviewers: owenpan, klimek, russellmcc, mitchell-stellar
Reviewed By: mitchell-stellar
Subscribers: cfe-commits
Tags: #clang, #clang-format
Differential Revision: https://reviews.llvm.org/D67660
llvm-svn: 373709
The file was modifiedclang/lib/Format/TokenAnnotator.cpp
The file was modifiedclang/lib/Format/FormatTokenLexer.h
The file was modifiedclang/unittests/Format/FormatTestCSharp.cpp
The file was modifiedclang/lib/Format/FormatTokenLexer.cpp
Commit 8613e90ba71d3d96a6765320f92c49f08d1e55d1 by ibiryukov
[CodeComplete] Ensure object is the same in compareOverloads()
Summary: This fixes a regression that led to size() not being available
in clangd when completing 'deque().^' and using libc++.
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: jkorous, arphaman, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68335
llvm-svn: 373710
The file was modifiedclang/lib/Sema/SemaCodeComplete.cpp
The file was modifiedclang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
The file was addedclang/test/CodeCompletion/member-access-qualifiers.cpp
Commit 51e0bbb02de3e8384aaaf2e6f50cbb0c2398e4a4 by Raphael Isemann
[lldb][modern-type-lookup] No longer import temporary declarations into
the persistent AST
Summary: As we figured out in D67803, importing declarations from a
temporary ASTContext that were originally from a persistent ASTContext
causes a bunch of duplicated declarations where we end up having
declarations in the target AST that have no associated ASTImporter that
can complete them.
I haven't figured out how/if we can solve this in the current way we do
things in LLDB, but in the modern-type-lookup this is solvable as we
have a saner architecture with the ExternalASTMerger. As we can
(hopefully) make modern-type-lookup the default mode in the future, I
would say we try fixing this issue here. As we don't use the hack that
was reinstated in D67803 during modern-type-lookup, the test case for
this is essentially just printing any kind of container in `std::` as we
would otherwise run into the issue that required a hack like D67803.
What this patch is doing in essence is that instead of importing a
declaration from a temporary ASTContext, we instead check if the
declaration originally came from a persistent ASTContext (e.g. the debug
information) and we directly import from there. The ExternalASTMerger is
already connected with ASTImporters to these different sources, so this
patch is essentially just two parts: 1. Mark our temporary
ASTContext/ImporterSource as temporary when we import from the
expression AST. 2. If the ExternalASTMerger sees we import from the
expression AST, instead of trying to import these temporary
declarations, check if we can instead import from the persistent
ASTContext that is already connected. This ensures that all records from
the persistent source actually come from the persistent source and are
minimally imported in a way that allows them to be completed later on in
the target AST.
The next step is to run the ASTImporter for these temporary expressions
with the MinimalImport mode disabled, but that's a follow up patch.
This patch fixes most test failures with modern-type-lookup enabled by
default (down to 73 failing tests, which includes the 22
import-std-module tests which need special treatment).
Reviewers: shafik, martong
Reviewed By: martong
Subscribers: aprantl, rnkovacs, christof, abidh, JDevlieghere,
lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D68326
llvm-svn: 373711
The file was modifiedclang/include/clang/AST/ExternalASTMerger.h
The file was modifiedclang/lib/AST/ExternalASTMerger.cpp
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
The file was modifiedlldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/libcxx/main.cpp
The file was modifiedlldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/libcxx/TestLibCxxModernTypeLookup.py
Commit eae7ed479b7aa6553af03a5490da0987858484bf by cullen.rhodes
[Driver] NFC: Remove duplicate call to getLibGccType
Reviewed By: saugustine
Differential Revision: https://reviews.llvm.org/D68380
llvm-svn: 373712
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
Commit 4d1405ad874f38e0284c5c5c30b0e55976e52063 by martin
Revert r371732: "lld-link: Fix tests that do not run on macOS after
r371729."
This commit should be reverted along with r371729.
llvm-svn: 373713
The file was modifiedlld/test/COFF/linkrepro-manifest.test
Commit be9521acaacc8987f27864dab5acc5673aa0c631 by Matthew.Arsenault
AMDGPU/GlobalISel: Support wave32 waterfall loops
llvm-svn: 373714
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.struct.buffer.load.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.store.format.f32.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.store.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-extract-vector-elt.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.image.sample.1d.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn-buffer-load.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.store.format.f16.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn-s-buffer-load.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.raw.buffer.load.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.struct.buffer.store.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.image.load.1d.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-insert-vector-elt.mir
Commit 412e0bf8f331e540ea315726e86e41f994f88e43 by Matthew.Arsenault
AMDGPU/GlobalISel: Select G_PTRTOINT
llvm-svn: 373715
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
The file was addedllvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-ptrtoint.mir
Commit d7cad4fb41f5808465e40a4c5d05c9ce20bfe36b by Matthew.Arsenault
AMDGPU/GlobalISel: Fix using wrong addrspace for aperture
This was always passing the destination flat address space, when it
should be picking between the two valid source options.
llvm-svn: 373716
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/legalize-addrspacecast.mir
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
Commit edfb86969c1d83af7dfd5a81bee728175b16783d by thomasp
[NFC] [FileCheck] Fix init of stack objects in unit tests
Summary: Fix initialization style of objects allocated on the stack in
unit test to use the "Type Var(init list)" convention.
Reviewers: jhenderson, probinson, arichardson, grimar, jdenny
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68425
llvm-svn: 373717
The file was modifiedllvm/unittests/Support/FileCheckTest.cpp
Commit e667401055edf85d663d8f76df7440613046d0e9 by jmolloy
[TableGen] Introduce a generic automaton (DFA) backend
Summary: This patch introduces -gen-automata, a backend for generating
deterministic finite-state automata.
DFAs are already generated by the -gen-dfa-packetizer backend. This
backend is more generic and will hopefully be used to implement the DFA
generation (and determinization) for the packetizer in the future.
This backend allows not only generation of a DFA from an NFA
(nondeterministic finite-state automaton), it also emits sidetables that
allow a path through the DFA under a sequence of inputs to be analyzed,
and the equivalent set of all possible NFA transitions extracted.
This allows a user to not just answer "can my problem be solved?" but
also "what is the solution?". Clearly this analysis is more expensive
than just playing a DFA forwards so is opt-in. The DFAPacketizer has
this behaviour already but this is a more compact and generic
representation.
Examples are bundled in unittests/TableGen/Automata.td. Some are
trivial, but the BinPacking example is a stripped-down version of the
original target problem I set out to solve, where we pack values
(actually immediates) into bins (an immediate pool in a VLIW bundle)
subject to a set of esoteric constraints.
Reviewers: t.p.northover
Subscribers: mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67968
llvm-svn: 373718
The file was addedllvm/include/llvm/TableGen/Automaton.td
The file was addedllvm/utils/TableGen/DFAEmitter.h
The file was addedllvm/unittests/TableGen/Automata.td
The file was addedllvm/unittests/TableGen/AutomataTest.cpp
The file was modifiedllvm/unittests/TableGen/CMakeLists.txt
The file was modifiedllvm/utils/TableGen/TableGenBackends.h
The file was modifiedllvm/utils/TableGen/TableGen.cpp
The file was addedllvm/include/llvm/Support/Automaton.h
The file was addedllvm/utils/TableGen/DFAEmitter.cpp
The file was modifiedllvm/utils/TableGen/CMakeLists.txt
Commit 4128dc4500693beb29e4f7cdf3f548c27bebbb9a by sam.mccall
[lldb] Fix typo in r373675
llvm-svn: 373719
The file was modifiedlldb/scripts/Python/python-wrapper.swig
Commit 0ca48de26c46281ae9fd15a042cc19cdf316bee6 by jeremy.morse.llvm
[DebugInfo] LiveDebugValues: defer DBG_VALUE creation during analysis
When transfering variable locations from one place to another,
LiveDebugValues immediately creates a DBG_VALUE representing that
transfer. This causes trouble if the variable location should
subsequently be invalidated by a loop back-edge, such as in the added
test case: the transfer DBG_VALUE from a now-invalid location is used as
proof that the variable location is correct. This is effectively a
self-fulfilling prophesy.
To avoid this, defer the insertion of transfer DBG_VALUEs until after
analysis has completed. Some of those transfers are still sketchy, but
we don't propagate them into other blocks now.
Differential Revision: https://reviews.llvm.org/D67393
llvm-svn: 373720
The file was modifiedllvm/lib/CodeGen/LiveDebugValues.cpp
The file was addedllvm/test/DebugInfo/MIR/X86/live-debug-values-bad-transfer.mir
Commit f6a2086d528d4c84dd85c6b1e5a7b92ae25ad58f by sam.mccall
[lldb] Fix -Wreorder-ctor in r373673
llvm-svn: 373721
The file was modifiedlldb/source/Commands/CommandObjectBreakpoint.cpp
Commit b0e997bbf4e8a5166202bdb942b04877419c4e70 by gribozavr
Revert "[NFC] [FileCheck] Fix init of stack objects in unit tests"
This reverts commit r373717. It broke the build:
http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/18721.
llvm-svn: 373722
The file was modifiedllvm/unittests/Support/FileCheckTest.cpp
Commit 91ad5398d15413e1d68bbe4aebe298732d737589 by Raphael Isemann
[lldb] Fix that 'ninja clean' breaks the build by deleting
debugserver_vers.c
Summary: We mark debugserver_vers.c as a generated file in CMake. This
means that when we run `ninja clean` we end up deleting that file, but
any following `ninja` invocation will fail due to the file missing. The
file can't be generated as `ninja` doesn't know it has to rerun CMake to
create the file. Turns out that marking the output of configure_file as
generated is wrong as explained in this bug report:
https://gitlab.kitware.com/cmake/cmake/issues/18032
This patch just removes that property. The only side effect of this
seems to be that this file maybe shows up in your IDE when opening our
CMake project, but that seems like a small sacrifice.
This patch can be quickly tested by running `ninja clean ; ninja
lldbDebugserverCommon`. Before this patch the build will fail due to
debugserver_vers.c missing.
Reviewers: JDevlieghere, labath
Reviewed By: labath
Subscribers: mgorny, abidh, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D68376
llvm-svn: 373723
The file was modifiedlldb/tools/debugserver/source/CMakeLists.txt
Commit b3cc321cb2ee851f5d9ca7a65977e8c6a55a1f3d by sam.mccall
[Format] Fix docs after r373439
llvm-svn: 373724
The file was modifiedclang/docs/ClangFormatStyleOptions.rst
Commit baf769d322d9bbdcd5a5be3481ba90a664a84b8e by Raphael Isemann
[lldb] Get the TargetAPI lock in
SBProcess::IsInstrumentationRuntimePresent
Summary: We should get the TargetAPI lock here to prevent the process of
being destroyed while we are in the function. Thanks Jim for explaining
what's going on.
Fixes rdar://54424754
Reviewers: jingham
Reviewed By: jingham
Subscribers: JDevlieghere, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D67831
llvm-svn: 373725
The file was modifiedlldb/source/API/SBProcess.cpp
Commit 90cfbf35c97d87fdaf6b96a970e97a35fd9fccca by nicolasweber
gn build: (manually) merge r373718
llvm-svn: 373726
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/TableGen/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/llvm/utils/TableGen/BUILD.gn
Commit 61800a75b77db89f0b85aa40fe1bfe8b7c92ea1a by jeremy.morse.llvm
[DebugInfo] LiveDebugValues: move DBG_VALUE creation into VarLoc class
Rather than having a mixture of location-state shared between DBG_VALUEs
and VarLoc objects in LiveDebugValues, this patch makes VarLoc the
master record of variable locations. The refactoring means that the
transfer of locations from one place to another is always a performed by
an operation on an existing VarLoc, that produces another transferred
VarLoc. DBG_VALUEs are only created at the end of LiveDebugValues, once
all locations are known. As a plus, there is now only one method where
DBG_VALUEs can be created.
The test case added covers a circumstance that is now impossible to
express in LiveDebugValues: if an already-indirect DBG_VALUE is spilt,
previously it would have been restored-from-spill as a direct DBG_VALUE.
We now don't lose this information along the way, as VarLocs always
refer back to the "original" non-transfer DBG_VALUE, and we can always
work out whether a location was "originally" indirect.
Differential Revision: https://reviews.llvm.org/D67398
llvm-svn: 373727
The file was modifiedllvm/lib/CodeGen/LiveDebugValues.cpp
The file was modifiedllvm/test/DebugInfo/MIR/X86/live-debug-values-restore.mir
Commit 4682b9c46b27ce8e550923e25ae26d5888cf70a8 by gbreynoo
Revert [test] Remove locale dependency for mri-utf8.test
This reverts r373700 (git commit
b455ebf921c5c940c2366bec226959e3a4127fee)
llvm-svn: 373728
The file was modifiedllvm/test/tools/llvm-ar/mri-utf8.test
Commit 7de9a5ce60d7bad9b4922dda78143c57ee1659c6 by llvm-dev
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits"
warning. NFCI.
llvm-svn: 373729
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
The file was modifiedllvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
Commit 329ae6ad71b51e5986a0435c833413a82eb5b244 by llvm-dev
Fix MSVC "not all control paths return a value" warning. NFCI.
llvm-svn: 373730
The file was modifiedllvm/lib/ExecutionEngine/JITLink/JITLink.cpp