SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [SLP]Improve cost estimation/emission of externally used extractelements. (details)
  2. [LoopUnroll] Eliminate PreserveOnlyFirst parameter [nfc] (details)
  3. Fully-qualify template args of outer types in getFullyQualifiedType (details)
  4. [InstCombine] eliminate sext and/or trunc if value has enough signbits (details)
  5. Don't delete the module you're inspecting (details)
  6. [libcxx][module-map] creates submodules for private headers (details)
  7. Remove redundant Begin/End form signpost format strings. (details)
  8. NFC. Refactor DOTGraphTraits::isNodeHidden (details)
  9. NFC. Mark DOTFuncInfo getters as const (details)
  10. [AtomicExpand] Merge cmpxchg success and failure ordering when appropriate. (details)
  11. [llvm] llvm-tapi-diff (details)
  12. [lld-macho] Fix BUILD_SHARED_LIBS build (details)
  13. [libc++] NFC: Tidy up the reverse_iterator tests (details)
  14. [docs] Update llvm-cov gcov (details)
  15. [flang] Fix crashes due to failure to find a subprogram (details)
  16. [libc++] Implement LWG3435 (constraints on reverse_iterator and move_iterator) (details)
  17. [LoopUnroll] Add additional test with one unpredictable exit (NFC) (details)
  18. [GlobalISel] Add G_SBFX/G_UBFX to computeKnownBits (details)
  19. [flang] Fix folding of CMPLX (details)
  20. Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always). (details)
  21. [InstrProfiling] If no value profiling, make data variable private and (for Windows) use one comdat (details)
  22. [Constants][PowerPC] Check exactlyValue for ppc_fp128 in isNullValue (details)
  23. [flang] Accept BOZ in array constructors w/o types (details)
  24. [test] Update c-linkage-available_externally.c (details)
  25. [AMDGPU] Fix a crash when selecting a particular case of buffer_load_format_d16 (details)
  26. [test] Update more clang/test/Profile tests (details)
  27. [flang] Catch procedure pointer interface error (details)
  28. [LoopUnroll] Eliminate PreserveCondBr parameter and fix a bug in the process (details)
  29. A couple style tweaks on top of 5c0d1b2f9 [nfc] (details)
  30. [LTO] Fix -fwhole-program-vtables handling after HIP ThinLTO patch (details)
  31. [flang] Support known constant lengths in DynamicType (details)
  32. [NFC][compiler-rt][hwasan] Refactor hwasan functions (details)
  33. [NFC] Add missing includes for LLVM_ENABLE_MODULES builds (details)
  34. Kill a variable which is unused after cddcc4cf [nfc] (details)
  35. [flang] Fix crash on structure constructor as selector (details)
  36. [libc++] Also build the static library in the Apple cache (details)
  37. [libc++] Define _LIBCPP_NO_NATIVE_SEMAPHORES even outside of pthread (details)
  38. [flang] Emit error about missing interface when needed (details)
  39. [flang] Catch errors in function calls instead of crashing (details)
  40. [CMake][ELF] Add -fno-semantic-interposition for GCC and Clang>=13 (details)
  41. [libc++] Simplify apple-install-libcxx since we always use the same CMake cache (details)
  42. [flang] Fix spurious "already declared" errors for interfaces (details)
  43. [BuildLibCalls] Properly set ABI attributes on arguments (details)
  44. [TargetLowering] Only inspect attributes in the arguments for ArgListEntry (details)
  45. [mlir] Remove redundant loads (details)
  46. [HIP] Fix amdgcn builtin for long type (details)
  47. [mlir-lsp-server] Add support for tracking the use/def chains of symbols (details)
  48. [gn build] port d1d36f7ad (llvm-tapi-diff) (details)
  49. [mlir][SPIRV] Add lowering for math.log1p operation to SPIR-V dialect. (details)
  50. [NFC] Add ArrayRef includes to two files. (details)
  51. [RISCV] Simplify some code in RISCVInsertVSETVLI by calling an existing function that does the same thing. NFCI (details)
  52. [CSSPGO][llvm-profgen] Make extended binary the default output format (details)
  53. [lld/mac] Add test coverage for --reproduce + -flat_namespace (details)
  54. Revert "Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always)." (details)
  55. [scudo] Rework Vector/String (details)
  56. [NFC] Remove checking pointee type for byval/preallocated type (details)
  57. [AMDGPU] Increase alignment of LDS globals if necessary before LDS lowering. (details)
  58. Revert "[llvm] llvm-tapi-diff" (details)
Commit 8c48d77cdfe5c286dc98b9bf06bd2939d00c4bb4 by a.bataev
[SLP]Improve cost estimation/emission of externally used extractelements.

No need to recalculate the cost of extractelements, just no need to
compensate the cost of all extractelements, need to check before if this
is actually going to be removed at the vectorization. Also, no need to
generate new extractelement instruction, we may just regenerate the
original one. It may improve the final vectorization.

Differential Revision: https://reviews.llvm.org/D102933
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/PR38339.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/vectorize-free-extracts-inserts.ll
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Commit 44d70d298acc872f37819efcb101334674a289e9 by listmail
[LoopUnroll] Eliminate PreserveOnlyFirst parameter [nfc]

This is a first step towards simplifying the transform interface to be less error prone. The basic idea is that querying SCEV is cheap (since it's cached) and we can just check for properties related to branch folding in the transform method instead of relying on the heuristic part to pass everything in correctly.

Differential Revision: https://reviews.llvm.org/D103584
The file was modifiedllvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
The file was modifiedllvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
The file was modifiedllvm/include/llvm/Transforms/Utils/UnrollLoop.h
The file was modifiedllvm/lib/Transforms/Utils/LoopUnroll.cpp
Commit 3e55f55048387a8efef01e445d46fc5cf100285d by saugustine
Fully-qualify template args of outer types in getFullyQualifiedType

Template args of outer types were not fully-qualified when calling getFullyQualifiedType() for inner types.

For simplicity the patch is a copy-paste of the same call from getFullyQualifiedType().

Reviewed at: https://reviews.llvm.org/D103039
The file was modifiedclang/lib/AST/QualTypeNames.cpp
The file was modifiedclang/unittests/Tooling/QualTypeNamesTest.cpp
Commit b865eead76577b031c6fae5e2490e7be0073f201 by spatel
[InstCombine] eliminate sext and/or trunc if value has enough signbits

If we have enough signbits in a source value, we can skip an
intermediate cast for a trunc+sext pair:
https://alive2.llvm.org/ce/z/A_mQt-

This is the original problem shown in:
https://llvm.org/PR49543

There's a test that shows we transformed what used to be
a pair of shifts, so that suggests we could add another
ComputeNumSignBits fold starting from a shift.

There does not appear to be any change in compile-time
from the extra analysis:
https://llvm-compile-time-tracker.com/compare.php?from=3d2c9069dcafd0cbb641841aa3dd6e851fb7d760&to=b9513cdf2419704c7bb0c3a02a9ca06aae13d902&stat=instructions

Differential Revision: https://reviews.llvm.org/D103617
The file was modifiedllvm/test/Transforms/InstCombine/sext-of-trunc-nsw.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
Commit 13a9b2220f227631b3495a42abbab7fc2b414b69 by chris.bieneman
Don't delete the module you're inspecting

Prior to this patch when you used `clang -module-file-info` clang would
delete the module on completion because the module was treated as an
output file.

This fixes the issue so you don't need to invoke cc1 directly to get
module file information.

Reviewed By: steven_wu, phosek

Differential Revision: https://reviews.llvm.org/D103547
The file was addedclang/test/Modules/clang_module_file_info.m
The file was modifiedclang/lib/Driver/Driver.cpp
Commit f1417eb9b1f51b689c78dd8cb0114c1749dd2845 by cjdb
[libcxx][module-map] creates submodules for private headers

Most of our private headers need to be treated as submodules so that
Clang modules can export things correctly. Previous commits that split
monolithic headers into smaller chunks were unaware of this requirement,
and so this is being addressed in one fell swoop. Moving forward, most
new headers will need to have their own submodule (anything that's
conditionally included is exempt from this rule, which means `__support`
headers aren't made into submodules).

This hasn't been marked NFC, since I'm not 100% sure that's the case.

Differential Revision: https://reviews.llvm.org/D103551
The file was modifiedlibcxx/include/__iterator/indirect_concepts.h
The file was modifiedlibcxx/include/module.modulemap
The file was modifiedlibcxx/include/__iterator/advance.h
The file was modifiedlibcxx/include/__memory/allocation_guard.h
The file was modifiedlibcxx/include/__memory/allocator.h
The file was modifiedlibcxx/include/__iterator/prev.h
The file was modifiedlibcxx/include/__memory/pointer_safety.h
The file was modifiedlibcxx/include/__iterator/next.h
The file was modifiedlibcxx/include/__memory/allocator_traits.h
The file was modifiedlibcxx/include/__memory/pointer_traits.h
Commit a8099b477832cb8325e1a06d8a2a821949fccde0 by Adrian Prantl
Remove redundant Begin/End form signpost format strings.

The os_signpost API already captures the begin/end part and in
Instruments, this just adds visual noise that gets in the way of the
interesting data. By removing the redundant end text, the display in
Instruments gets even less cluttered.

rdar://78636200

Differential Revision: https://reviews.llvm.org/D103577
The file was modifiedllvm/lib/Support/Signposts.cpp
Commit a06e63fa522f5125f1912b7e0a1d578425b5ea5f by apilipenko
NFC. Refactor DOTGraphTraits::isNodeHidden

Restructure handling of cfg-hide-unreachable-paths and
cfg-hide-deoptimize-paths options so as to make it easier
to introduce new types of hidden blocks.
The file was modifiedllvm/lib/Analysis/CFGPrinter.cpp
The file was modifiedllvm/include/llvm/Analysis/CFGPrinter.h
Commit 5a2aec3f27abbd11cf4ab40f559bedcd4a1a7987 by apilipenko
NFC. Mark DOTFuncInfo getters as const

This is a preparatory refactoring for introducing new
types of hidden blocks.
The file was modifiedllvm/include/llvm/Analysis/CFGPrinter.h
Commit 44cdf771fe12ca528403cec9e6a8438b5107133b by efriedma
[AtomicExpand] Merge cmpxchg success and failure ordering when appropriate.

If we're not emitting separate fences for the success/failure cases, we
need to pass the merged ordering to the target so it can emit the
correct instructions.

For the PowerPC testcase, we end up with extra fences, but that seems
like an improvement over missing fences.  If someone wants to improve
that, the PowerPC backed could be taught to emit the fences after isel,
instead of depending on fences emitted by AtomicExpand.

Fixes https://bugs.llvm.org/show_bug.cgi?id=33332 .

Differential Revision: https://reviews.llvm.org/D103342
The file was modifiedllvm/include/llvm/IR/Instructions.h
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/arm64-atomic-128.ll
The file was modifiedllvm/lib/CodeGen/AtomicExpandPass.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/atomics-regression.ll
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/arm64-atomic.ll
The file was modifiedllvm/test/CodeGen/RISCV/atomic-cmpxchg.ll
Commit d1d36f7ad2ae82bea8a6fcc40d6c42a72e21f096 by Cyndy Ishida
[llvm] llvm-tapi-diff

This patch introduces a new tool, llvm-tapi-diff, that compares and returns the diff of two TBD files.

Reviewed By: ributzka, JDevlieghere

Differential Revision: https://reviews.llvm.org/D101835
The file was modifiedllvm/include/llvm/TextAPI/Platform.h
The file was addedllvm/tools/llvm-tapi-diff/DiffEngine.h
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-matching-tbd.test
The file was modifiedllvm/include/llvm/Object/TapiUniversal.h
The file was addedllvm/tools/llvm-tapi-diff/DiffEngine.cpp
The file was modifiedllvm/include/llvm/TextAPI/Symbol.h
The file was addedllvm/test/tools/llvm-tapi-diff/Inputs/v4D.tbd
The file was addedllvm/tools/llvm-tapi-diff/llvm-tapi-diff.cpp
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-no-inlines.test
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-mismatched-number-of-inlines.test
The file was addedllvm/tools/llvm-tapi-diff/CMakeLists.txt
The file was modifiedllvm/lib/TextAPI/Target.cpp
The file was addedllvm/test/tools/llvm-tapi-diff/Inputs/v4E.tbd
The file was addedllvm/test/tools/llvm-tapi-diff/Inputs/v4B.tbd
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-misspelled-tbd.test
The file was addedllvm/test/tools/llvm-tapi-diff/Inputs/v4C.tbd
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-tbd-has-single-inlineB.test
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-incorrect-format.test
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-tbd-has-single-inlineA.test
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-tbd-has-multiple-inlines.test
The file was modifiedllvm/include/llvm/TextAPI/Target.h
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-same-number-of-inlines.test
The file was addedllvm/test/tools/llvm-tapi-diff/Inputs/macho.yaml
The file was addedllvm/test/tools/llvm-tapi-diff/Inputs/v4A.tbd
The file was modifiedllvm/lib/TextAPI/Platform.cpp
Commit 90344499ae76dffa56363e2f167c2c34a76cbfaf by Alexander.Richardson
[lld-macho] Fix BUILD_SHARED_LIBS build

ca6751043d8899b12baeb48621e61fb352cfee09 added a dependency on XAR (at
least for the shared libs build), so without this change we get the
following linker error:

Undefined symbols for architecture x86_64:
  "_xar_close", referenced from:
      lld::macho::BitcodeBundleSection::finalize() in SyntheticSections.cpp.o

Reviewed By: #lld-macho, int3, thakis

Differential Revision: https://reviews.llvm.org/D100999
The file was modifiedlld/tools/lld/CMakeLists.txt
The file was modifiedlld/MachO/CMakeLists.txt
Commit 10d38699524a6092dc85f150fc1078567dde9537 by Louis Dionne
[libc++] NFC: Tidy up the reverse_iterator tests

Incidentally, that fixes an error with the modules build.
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opdiff/test.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nav/increment-assign.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/default.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iterator/types.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op--/post.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op=/reverse_iterator.compile.fail.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cmp/equal.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nav/decrement-assign.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cmp/greater-equal.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cons/assign.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cons/ctor.iter.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opgt/test.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op++/pre.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op+=/difference_type.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cons/ctor.iter.explicit.verify.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.requirements/nothing_to_do.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/reverse_iterator.compile.fail.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opgt=/test.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/make_reverse_iterator.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op!=/test.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op-=/difference_type.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cmp/not-equal.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/types.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cmp/less.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/minus.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opref/op_arrow.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cmp/less-equal.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op++/post.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.elem/bracket.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nonmember/plus.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opsum/difference_type.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nav/minus.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cons/ctor.reverse_iterator.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.elem/dereference.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cons/ctor.default.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/iter.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op.star/op_star.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op-/difference_type.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.oplt=/test.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op+/difference_type.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/reverse_iterator.pass.cpp
The file was modifiedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/iterator_concept_conformance.compile.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cmp/greater.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op=/reverse_iterator.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op==/test.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.elem/arrow.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.op--/pre.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nav/postincrement.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.conv/base.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.oplt/test.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nav/predecrement.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.conv/tested_elsewhere.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.opindex/difference_type.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nav/postdecrement.pass.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/iter.compile.fail.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nav/preincrement.pass.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.nav/plus.pass.cpp
Commit a3fd40b955ecbb970883ea5f097fd919058432bd by i
[docs] Update llvm-cov gcov

Mention some new options.

Remove outdated information about -g and -O0. -g0 works. -O1/-O2/-O3 work.
The file was modifiedllvm/docs/CommandGuide/llvm-cov.rst
Commit 1dff8637b11232a7e6e7994c2ed3526262564786 by pklausler
[flang] Fix crashes due to failure to find a subprogram

In error recovery situations, the mappings from source locations
to scopes were failing in a way that tripped some asserts.
Specifically, FindPureProcedureContaining() wasn't coping well
when starting at the global scope.  (And since the global scope
no longer has a source range, clean up the Semantics constructor
to avoid confusion.)

Differential Revision: https://reviews.llvm.org/D103567
The file was modifiedflang/lib/Frontend/FrontendActions.cpp
The file was modifiedflang/include/flang/Semantics/semantics.h
The file was modifiedflang/lib/Semantics/scope.cpp
The file was modifiedflang/lib/Semantics/check-io.cpp
The file was modifiedflang/tools/f18/f18.cpp
The file was modifiedflang/lib/Semantics/tools.cpp
Commit e4d3a993c2675f46cbe99acd1bf6e6d39d9c1aee by Louis Dionne
[libc++] Implement LWG3435 (constraints on reverse_iterator and move_iterator)
The file was modifiedlibcxx/docs/Cxx2bStatusIssuesStatus.csv
The file was addedlibcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.const/ctor.convert.LWG3435.verify.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.const/convert.compile.fail.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op=/move_iterator.compile.fail.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cons/ctor.reverse_iterator.LWG3435.verify.cpp
The file was modifiedlibcxx/include/iterator
The file was addedlibcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op=/assign.LWG3435.verify.cpp
The file was removedlibcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.const/iter.compile.fail.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op.const/ctor.iter.explicit.verify.cpp
The file was addedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.cons/assign.LWG3435.verify.cpp
The file was modifiedlibcxx/test/std/iterators/predef.iterators/move.iterators/move.iter.ops/move.iter.op=/move_iterator.pass.cpp
Commit 33e41eaecdd7f71184b0bc9dbfdc2892aa45534a by nikita.ppv
[LoopUnroll] Add additional test with one unpredictable exit (NFC)

One exit is unpredictable, the other has a known trip count. For
one function the predictable exit is the latch exit, for the other
the non-latch exit. Currently they are treated differently.
The file was addedllvm/test/Transforms/LoopUnroll/full-unroll-one-unpredictable-exit.ll
The file was removedllvm/test/Transforms/LoopUnroll/full-unroll-non-latch-exit.ll
Commit 53ab2d821ed5bf282a733e87e8f53511c55e5ea2 by brendon.cahoon
[GlobalISel] Add G_SBFX/G_UBFX to computeKnownBits

Differential Revision: https://reviews.llvm.org/D102969
The file was modifiedllvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
The file was modifiedllvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
Commit 6fa5353a5696bf8c4c2689126a025330c72aa8f9 by pklausler
[flang] Fix folding of CMPLX

The code for folding calls to the intrinsic function CMPLX was
incorrectly dependent on the number of arguments to distinguish its
two cases (conversion from one kind of complex to another, and
composition of a complex value from real & imaginary parts).
This was wrong since the optional KIND= argument has already been
taken into account by intrinsic processing; instead, the type of
the first argument should decide the issue.

Differential Revision: https://reviews.llvm.org/D103568
The file was modifiedflang/lib/Evaluate/fold-complex.cpp
Commit 41b3088c3f33d712e3d2f64b66ae4eb701fa4bfb by kda
Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always).

In addition:
  - optionally add global flag to capture compile intent for UAR:
    __asan_detect_use_after_return_always.
    The global is a SANITIZER_WEAK_ATTRIBUTE.

for issue: https://github.com/google/sanitizers/issues/1394

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D103304
The file was modifiedcompiler-rt/test/asan/TestCases/uar_and_exceptions.cpp
The file was modifiedcompiler-rt/lib/asan/asan_rtl.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/heavy_uar_test.cpp
The file was modifiedllvm/test/Instrumentation/AddressSanitizer/fake-stack.ll
The file was modifiedcompiler-rt/test/asan/TestCases/Linux/uar_signals.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/Windows/stack_use_after_return.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/Posix/stack-use-after-return.cpp
The file was modifiedcompiler-rt/lib/asan/asan_interface.inc
The file was modifiedcompiler-rt/test/asan/TestCases/Windows/dll_stack_use_after_return.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/pass-struct-byval-uar.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/scariness_score_test.cpp
The file was modifiedllvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Commit a14fc749aab2c8e1a45d19d512255ebfc69357c3 by i
[InstrProfiling] If no value profiling, make data variable private and (for Windows) use one comdat

`__profd_*` variables are referenced by code only when value profiling is
enabled. If disabled (e.g. default -fprofile-instr-generate), the symbols just
waste space on ELF/Mach-O. We change the comdat symbol from `__profd_*` to
`__profc_*` because an internal symbol does not provide deduplication features
on COFF. The choice doesn't matter on ELF.

(In -DLLVM_BUILD_INSTRUMENTED_COVERAGE=on build, there is now no `__profd_*` symbols.)

On Windows this enables further optimization. We are no longer affected by the
link.exe limitation: an external symbol in IMAGE_COMDAT_SELECT_ASSOCIATIVE can
cause duplicate definition error.
https://lists.llvm.org/pipermail/llvm-dev/2021-May/150758.html
We can thus use llvm.compiler.used instead of llvm.used like ELF (D97585).
This avoids many `/INCLUDE:` directives in `.drectve`.

Here is rnk's measurement for Chrome:
```
This reduced object file size of base_unittests.exe, compiled with coverage, optimizations, and gmlt debug info by 10%:

#BEFORE

$ find . -iname '*.obj' | xargs du -b | awk '{ sum += $1 } END { print sum}'
1047758867

$ du -cksh base_unittests.exe
82M     base_unittests.exe
82M     total

# AFTER

$ find . -iname '*.obj' | xargs du -b | awk '{ sum += $1 } END { print sum}'
937886499

$ du -cksh base_unittests.exe
78M     base_unittests.exe
78M     total
```

Reviewed By: davidxl, rnk

Differential Revision: https://reviews.llvm.org/D103372
The file was modifiedllvm/test/Transforms/PGOProfile/comdat_internal.ll
The file was modifiedllvm/test/Instrumentation/InstrProfiling/icall.ll
The file was modifiedllvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
The file was modifiedllvm/test/Instrumentation/InstrProfiling/platform.ll
The file was modifiedllvm/test/Instrumentation/InstrProfiling/comdat.ll
The file was modifiedllvm/test/Instrumentation/InstrProfiling/profiling.ll
The file was modifiedllvm/test/Instrumentation/InstrProfiling/linkage.ll
Commit cd9e1a020cf0902e79ae1178cc4b93f5c5ce9381 by Jinsong Ji
[Constants][PowerPC] Check exactlyValue for ppc_fp128 in isNullValue

PPC_FP128 determines isZero/isNan/isInf using high-order double value
only. Checking isZero/isNegative might return the isNullValue unexpectedly.
eg:
   0xM0000000000000000FFFFFFFFFFFFFFFFF

isZero, but it is not NullValue.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D103634
The file was modifiedllvm/lib/IR/Constants.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/ppc_fp128-bcwriter.ll
Commit e7a53f1e0472a991cea26c6e25594c3a1a8707ec by pklausler
[flang] Accept BOZ in array constructors w/o types

As a benign extension common to other Fortran compilers,
accept BOZ literals in array constructors w/o explicit
types, treating them as integers.

Differential Revision: https://reviews.llvm.org/D103569
The file was modifiedflang/lib/Semantics/expression.cpp
The file was modifiedflang/include/flang/Common/Fortran-features.h
The file was modifiedflang/docs/Extensions.md
Commit ba1fb0ff8c9f9ef7f9b7d1fe43cb95c8d1363f78 by i
[test] Update c-linkage-available_externally.c
The file was modifiedclang/test/Profile/c-linkage-available_externally.c
Commit 37821155c972b06de1af20ffe2282d7476d7f157 by julien.pages
[AMDGPU] Fix a crash when selecting a particular case of buffer_load_format_d16

In this particular example, we had a crash when compiling it
for several architectures. This patch extends the legalization
of extract_subvector to avoid this problem.

Differential Revision: https://reviews.llvm.org/D103344
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
The file was addedllvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.buffer.load.format.v3f16.ll
Commit da3ed58b97c1cc1356b7732d5dcbb6e4de3057da by i
[test] Update more clang/test/Profile tests
The file was modifiedclang/test/Profile/cxx-linkage.cpp
The file was modifiedclang/test/Profile/c-linkage.c
Commit f8f7002828ec66cd6261d3e00312e9b1f4b59b79 by pklausler
[flang] Catch procedure pointer interface error

A procedure pointer is allowed to name a specific intrinsic function
from F'2018 table 16.2 as its interface, but not other intrinsic
procedures.  Catch this error, and thereby also fix a crash resulting
from a failure later in compilation from failed characteristics;
while here, also catch the similar error with initializers.

Differential Revision: https://reviews.llvm.org/D103570
The file was modifiedflang/lib/Evaluate/characteristics.cpp
The file was modifiedflang/lib/Semantics/check-declarations.cpp
Commit 5c0d1b2f902aa6a9cf47cc7e42c5b83bb2217cf9 by listmail
[LoopUnroll] Eliminate PreserveCondBr parameter and fix a bug in the process

This builds on D103584. The change eliminates the coupling between unroll heuristic and implementation w.r.t. knowing when the passed in trip count is an exact trip count or a max trip count. In theory the new code is slightly less powerful (since it relies on exact computable trip counts), but in practice, it appears to cover all the same cases. It can also be extended if needed.

The test change shows what appears to be a bug in the existing code around the interaction of peeling and unrolling. The original loop only ran 8 iterations. The previous output had the loop peeled by 2, and then an exact unroll of 8. This meant the loop ran a total of 10 iterations which appears to have been a miscompile.

Differential Revision: https://reviews.llvm.org/D103620
The file was modifiedllvm/lib/Transforms/Utils/LoopUnroll.cpp
The file was modifiedllvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
The file was modifiedllvm/test/Transforms/LoopUnroll/pr45939-peel-count-and-complete-unroll.ll
The file was modifiedllvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
The file was modifiedllvm/include/llvm/Transforms/Utils/UnrollLoop.h
Commit cddcc4cff5052bc8a2311fea83f54b0caa1cbb4c by listmail
A couple style tweaks on top of 5c0d1b2f9 [nfc]
The file was modifiedllvm/lib/Transforms/Utils/LoopUnroll.cpp
Commit d0ee8b64ecf359737ce550d8f47f465ab6657be7 by tejohnson
[LTO] Fix -fwhole-program-vtables handling after HIP ThinLTO patch

A recent change (D99683) to support ThinLTO for HIP caused a regression
when compiling cuda code with -flto=thin -fwhole-program-vtables.
Specifically, we now get an error:
error: invalid argument '-fwhole-program-vtables' only allowed with '-flto'

This error is coming from the device offload cc1 action being set up for
the cuda compile, for which -flto=thin doesn't apply and gets dropped.
This is a regression, but points to a potential issue that was silently
occurring before the patch, details below.

Before D99683, the check for fwhole-program-vtables in the driver looked
like:

  if (WholeProgramVTables) {
    if (!D.isUsingLTO())
      D.Diag(diag::err_drv_argument_only_allowed_with)
          << "-fwhole-program-vtables"
          << "-flto";
    CmdArgs.push_back("-fwhole-program-vtables");
  }

And D.isUsingLTO() returned true since we have -flto=thin. However,
because the cuda cc1 compile is doing device offloading, which didn't
support any LTO, there was other code that suppressed -flto* options
from being passed to the cc1 invocation. So the cc1 invocation silently
had -fwhole-program-vtables without any -flto*. This seems potentially
problematic, since if we had any virtual calls we would get type test
assume sequences without the corresponding LTO pass that handles them.

However, with the patch, which adds support for device offloading LTO
option -foffload-lto=thin, the code has changed so that we set a bool
IsUsingLTO based on either -flto* or -foffload-lto*, depending on
whether this is the device offloading action. For the device offload
action in our compile, since we don't have -foffload-lto, IsUsingLTO is
false, and the check for LTO with -fwhole-program-vtables now fails.

What we should do is only pass through -fwhole-program-vtables to the
cc1 invocation that has LTO enabled (either the device offload action
with -foffload-lto, or the non-device offload action with -flto), and
otherwise drop the -fwhole-program-vtables for the non-LTO action.
Then we should error only if we have -fwhole-program-vtables without any
-f*lto* options.

Differential Revision: https://reviews.llvm.org/D103579
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/test/Driver/cuda-options.cu
The file was modifiedclang/test/Driver/hip-options.hip
Commit ac9641753bba836f2c22e0a2366b5233788d50b3 by pklausler
[flang] Support known constant lengths in DynamicType

The constexpr-capable class evaluate::DynamicType represented
CHARACTER length only with a nullable pointer into the declared
parameters of types in the symbol table, which works fine for
anything with a declaration but turns out to not suffice to
describe the results of the ACHAR() and CHAR() intrinsic
functions.  So extend DynamicType to also accommodate known
constant CHARACTER lengths, too; use them for ACHAR & CHAR;
clean up several use sites and fix regressions found in test.

Differential Revision: https://reviews.llvm.org/D103571
The file was modifiedflang/lib/Evaluate/variable.cpp
The file was modifiedflang/lib/Evaluate/formatting.cpp
The file was modifiedflang/test/Semantics/array-constr-values.f90
The file was modifiedflang/lib/Semantics/scope.cpp
The file was modifiedflang/test/Semantics/data02.f90
The file was modifiedflang/include/flang/Evaluate/fold.h
The file was modifiedflang/lib/Evaluate/characteristics.cpp
The file was modifiedflang/include/flang/Evaluate/type.h
The file was modifiedflang/lib/Evaluate/tools.cpp
The file was modifiedflang/lib/Evaluate/type.cpp
The file was modifiedflang/lib/Semantics/expression.cpp
The file was modifiedflang/lib/Evaluate/intrinsics.cpp
The file was modifiedflang/test/Semantics/separate-mp02.f90
Commit d4e4799998b830c2e41dee93a204870aa65083cf by leonardchan
[NFC][compiler-rt][hwasan] Refactor hwasan functions

This moves the implementations for HandleTagMismatch, __hwasan_tag_mismatch4,
and HwasanAtExit from hwasan_linux.cpp to hwasan.cpp and declares them in hwasan.h.
This way, calls to those functions can be shared with the fuchsia implementation
without duplicating code.

Differential Revision: https://reviews.llvm.org/D103562
The file was modifiedcompiler-rt/lib/hwasan/hwasan.cpp
The file was modifiedcompiler-rt/lib/hwasan/hwasan_linux.cpp
The file was modifiedcompiler-rt/lib/hwasan/hwasan.h
Commit 619fa0d7fc8a08f871f33815083adb8bb07b9751 by markus.boeck02
[NFC] Add missing includes for LLVM_ENABLE_MODULES builds

Building LLVM with the LLVM_ENABLE_MODULES cmake option fails when the modules are being compiled due to missing includes. This is a side effect of some transitive includes that changed recently.

Differential Revision: https://reviews.llvm.org/D103645
The file was modifiedllvm/include/llvm/CodeGen/MBFIWrapper.h
The file was modifiedllvm/include/llvm/Support/CFGUpdate.h
Commit a4b924a017dba3e5f891ef38e07a7a80da65a8b8 by listmail
Kill a variable which is unused after cddcc4cf [nfc]
The file was modifiedllvm/lib/Transforms/Utils/LoopUnroll.cpp
Commit e712a92b8fe706c4a736748af324382850d1515c by pklausler
[flang] Fix crash on structure constructor as selector

In something like "ASSOCIATE(X=>T(1))", the "T(1)" is parsed
as a Variable because it looks like a function reference or
array reference; if it turns out to be a structure constructor,
which is something we can't know until we're able to attempt
generic interface resolution in semantics, the parse tree needs
to be fixed up by replacing the Variable with an Expr.

The compiler could already do this for putative function references
encapsulated as Exprs, so this patch moves some code around and
adds parser::Selector to the overloads of expression analysis.

Differential Revision: https://reviews.llvm.org/D103572
The file was modifiedflang/include/flang/Semantics/expression.h
The file was modifiedflang/lib/Semantics/expression.cpp
The file was modifiedflang/lib/Semantics/resolve-names.cpp
Commit 56b6e4e2dfa932ddc0cbfecaab07ddf4ebfefc10 by Louis Dionne
[libc++] Also build the static library in the Apple cache
The file was modifiedlibcxx/cmake/caches/Apple.cmake
Commit db757ba7c523f8a456f884316a44c0f1124bcb9a by Louis Dionne
[libc++] Define _LIBCPP_NO_NATIVE_SEMAPHORES even outside of pthread

<semaphore> needs to know about whether native semaphores are supported
or not, even if we're not using the pthread API.
The file was modifiedlibcxx/include/__threading_support
Commit c1a024053d3b80a62bd65971fe9ac09539dea5ae by pklausler
[flang] Emit error about missing interface when needed

When a procedure pointer with no interface is called by a
function reference, complain about the lack.

Differential Revision: https://reviews.llvm.org/D103573
The file was modifiedflang/lib/Semantics/expression.cpp
The file was modifiedflang/test/Semantics/resolve09.f90
Commit 73c3530f5e057333eeac300b9d9925a13c55c9a6 by pklausler
[flang] Catch errors in function calls instead of crashing

Add some missing error messages, and permit the appearance
of EntityDetails symbols in dummy argument type characterization.

Differential Revision: https://reviews.llvm.org/D103576
The file was modifiedflang/lib/Semantics/check-declarations.cpp
The file was modifiedflang/lib/Evaluate/characteristics.cpp
The file was modifiedflang/lib/Semantics/expression.cpp
Commit a96f875fe98de5eb5f44b0148baa442c998364ed by i
[CMake][ELF] Add -fno-semantic-interposition for GCC and Clang>=13

In a `-DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_LINK_LLVM_DYLIB=on -DCLANG_LINK_CLANG_DYLIB=on`
build, libLLVM-13git.so is 2% smaller and libclang-cpp.so is 1% smaller (on top of -Wl,-Bsymbolic-functions).
There may be some small performance improvement as well because GCC
-fPIC suppresses interprocedural optimizations for non-inline
definitions by default.

Note: we cannot add -fno-semantic-interposition for Clang<13.  Clang<13's
implementation additionally optimizes global variables, which is incompatible
with unfortunate ELF -fno-pic default: direct access relocations for external
data. If the executable has a -fno-pic object file referencing a global variable
declared in a public header, the direct access relocation will cause a copy
relocation. The executable and libLLVM.so/libclang-cpp.so will disagree on the
address.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D102453
The file was modifiedllvm/cmake/modules/HandleLLVMOptions.cmake
Commit d515a52a3a58cea82f0adc168199b918f7d68541 by Louis Dionne
[libc++] Simplify apple-install-libcxx since we always use the same CMake cache
The file was modifiedlibcxx/utils/ci/apple-install-libcxx.sh
Commit 69a82d7c08be4c7d7ab6f3de7711944a00d3e4cc by pklausler
[flang] Fix spurious "already declared" errors for interfaces

When a subroutine or function symbol is defined in an INTERFACE
block, it's okay if a symbol of the same name appears in a
scope between the global scope and the scope of the INTERFACE.

Differential Revision: https://reviews.llvm.org/D103580
The file was modifiedflang/lib/Semantics/resolve-names.cpp
Commit edf2056ff3730316f376f29d9986c9913b95ceb1 by aeubanks
[BuildLibCalls] Properly set ABI attributes on arguments

Some floating point lib calls have ABI attributes that need to be set on
the caller. Found via D103412.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D103415
The file was modifiedllvm/test/Transforms/InstCombine/pow_fp_int16.ll
The file was modifiedllvm/test/Transforms/InstCombine/exp2-1.ll
The file was modifiedllvm/lib/Transforms/Utils/BuildLibCalls.cpp
The file was modifiedllvm/test/Transforms/InstCombine/pow_fp_int.ll
The file was modifiedllvm/test/Transforms/InstCombine/simplify-libcalls.ll
Commit 9255a5c1baa6020c009934b4fa342f9f6dbbcc46 by aeubanks
[TargetLowering] Only inspect attributes in the arguments for ArgListEntry

Parameter attributes are considered part of the function [1], and like
mismatched calling conventions [2], we can't have the verifier check for
mismatched parameter attributes.

Issues can be diagnosed with D103412.

[1] https://llvm.org/docs/LangRef.html#parameter-attributes
[2] https://llvm.org/docs/FAQ.html#why-does-instcombine-simplifycfg-turn-a-call-to-a-function-with-a-mismatched-calling-convention-into-unreachable-why-not-make-the-verifier-reject-it

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D101806
The file was modifiedllvm/docs/ReleaseNotes.rst
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
The file was addedllvm/test/CodeGen/X86/mismatched-byval.ll
Commit 986bef97826fc41cbac1b7ff74b4f40f4594ba68 by amy.zhuang
[mlir] Remove redundant loads

Reviewed By: vinayaka-polymage, bondhugula

Differential Revision: https://reviews.llvm.org/D103294
The file was modifiedmlir/lib/Transforms/MemRefDataFlowOpt.cpp
The file was modifiedmlir/test/Transforms/memref-dataflow-opt.mlir
Commit e42def62d8d9572190b31182e5db8c4b3a57cdaf by Yaxun.Liu
[HIP] Fix amdgcn builtin for long type

Currently some amdgcn builtins are defined with long int type,
which causes invalid IR on Windows since long int is 32 bit
on Windows whereas these builtins have 64 bit arguments.

long long int type cannot be used since it is 128 bit in OpenCL.

This patch uses 64 bit int type instead of long int to define 64 bit int
arguments or return for amdgcn builtins.

Reviewed by: Artem Belevich

Differential Revision: https://reviews.llvm.org/D103563
The file was modifiedclang/test/CodeGenCUDA/builtins-amdgcn.cu
The file was modifiedclang/include/clang/Basic/BuiltinsAMDGPU.def
Commit d6af89beb26df549d5b9e9041dac3b205b44e512 by riddleriver
[mlir-lsp-server] Add support for tracking the use/def chains of symbols

This revision adds assembly state tracking for uses of symbols, allowing for go-to-definition and references support for SymbolRefAttrs.

Differential Revision: https://reviews.llvm.org/D103585
The file was modifiedmlir/test/mlir-lsp-server/definition.test
The file was modifiedmlir/include/mlir/Parser/AsmParserState.h
The file was modifiedmlir/test/mlir-lsp-server/definition-split-file.test
The file was modifiedmlir/test/mlir-lsp-server/hover.test
The file was modifiedmlir/test/mlir-lsp-server/references.test
The file was modifiedmlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
The file was modifiedmlir/lib/Parser/AttributeParser.cpp
The file was modifiedmlir/lib/Parser/Parser.cpp
The file was modifiedmlir/lib/Parser/AsmParserState.cpp
Commit 13155138c1ce1e91032d467e20e557f9cdbf08f5 by thakis
[gn build] port d1d36f7ad (llvm-tapi-diff)
The file was modifiedllvm/utils/gn/secondary/llvm/test/BUILD.gn
The file was addedllvm/utils/gn/secondary/llvm/tools/llvm-tapi-diff/BUILD.gn
Commit cfa9ae99408fceb063473d9339b7006075c686a9 by ravishankarm
[mlir][SPIRV] Add lowering for math.log1p operation to SPIR-V dialect.

Differential Revision: https://reviews.llvm.org/D103635
The file was modifiedmlir/lib/Conversion/StandardToSPIRV/StandardToSPIRV.cpp
The file was modifiedmlir/test/Conversion/StandardToSPIRV/std-ops-to-spirv.mlir
Commit 8a96993da5ef408847505ec2e470805a71c30392 by jpienaar
[NFC] Add ArrayRef includes to two files.

These started failing on one of our buildbots. I didn't completely root cause the situation and just added the explicit includes that correct the issue.

Reviewed By: rriddle, jpienaar

Differential Revision: https://reviews.llvm.org/D103657
The file was modifiedmlir/include/mlir/Interfaces/FoldInterfaces.h
The file was modifiedmlir/include/mlir/IR/AffineExprVisitor.h
Commit e9313fa33ae501182666101380282228fb3f4acc by craig.topper
[RISCV] Simplify some code in RISCVInsertVSETVLI by calling an existing function that does the same thing. NFCI
The file was modifiedllvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Commit aaa826fac16bef995ff074bc13ce7baa37ab4d47 by aktoon
[CSSPGO][llvm-profgen] Make extended binary the default output format

Make extended binary the default output format for CSSPGO. This avoids having to pass flag every time when generating profile. It also matches llvm-profdata where binary profile is the default (should we switch to extbinary as default for llvm-profdata?).

We plan to compress name table for context profile, which depends on the built-in compression of extbinary.

Differential Revision: https://reviews.llvm.org/D103650
The file was modifiedllvm/test/tools/llvm-profgen/pseudoprobe-decoding.test
The file was modifiedllvm/test/tools/llvm-profgen/inline-cs-dangling-pseudoprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/truncated-pseudoprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/fname-canonicalization.test
The file was modifiedllvm/test/tools/llvm-profgen/recursion-compression-pseudoprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/noinline-cs-pseudoprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/merge-cold-profile.test
The file was modifiedllvm/test/tools/llvm-profgen/noinline-cs-noprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/cs-preinline.test
The file was modifiedllvm/test/tools/llvm-profgen/recursion-compression-noprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/inline-cs-pseudoprobe.test
The file was modifiedllvm/tools/llvm-profgen/ProfileGenerator.cpp
The file was modifiedllvm/test/tools/llvm-profgen/inline-cs-noprobe.test
Commit 1aae55ddea92c9a0eb1024305b248f20653778a2 by thakis
[lld/mac] Add test coverage for --reproduce + -flat_namespace

Works fine already, now it has a test too.

Differential Revision: https://reviews.llvm.org/D103643
The file was modifiedlld/test/MachO/flat-namespace.s
Commit 5c600dc6d4b75bc71dc3033f37ea187b3fd454d7 by thakis
Revert "Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always)."

This reverts commit 41b3088c3f33d712e3d2f64b66ae4eb701fa4bfb.
Doesn't build on macOS, see comments on https://reviews.llvm.org/D103304
The file was modifiedcompiler-rt/test/asan/TestCases/pass-struct-byval-uar.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/scariness_score_test.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/Posix/stack-use-after-return.cpp
The file was modifiedcompiler-rt/lib/asan/asan_rtl.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/Windows/stack_use_after_return.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/uar_and_exceptions.cpp
The file was modifiedcompiler-rt/lib/asan/asan_interface.inc
The file was modifiedcompiler-rt/test/asan/TestCases/Linux/uar_signals.cpp
The file was modifiedllvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/Windows/dll_stack_use_after_return.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/heavy_uar_test.cpp
The file was modifiedllvm/test/Instrumentation/AddressSanitizer/fake-stack.ll
Commit 868317b3fd765830c07ecf16cbfcf6c7708adc3c by kostyak
[scudo] Rework Vector/String

Some platforms (eg: Trusty) are extremelly memory constrained, which
doesn't necessarily work well with some of Scudo's current assumptions.

`Vector` by default (and as such `String` and `ScopedString`) maps a
page, which is a bit of a waste. This CL changes `Vector` to use a
buffer local to the class first, then potentially map more memory if
needed (`ScopedString` currently are all stack based so it would be
stack data). We also want to allow a platform to prevent any dynamic
resizing, so I added a `CanGrow` templated parameter that for now is
always `true` but would be set to `false` on Trusty.

Differential Revision: https://reviews.llvm.org/D103641
The file was modifiedcompiler-rt/lib/scudo/standalone/string_utils.cpp
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/strings_test.cpp
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/vector_test.cpp
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/primary_test.cpp
The file was modifiedcompiler-rt/lib/scudo/standalone/report.cpp
The file was modifiedcompiler-rt/lib/scudo/standalone/string_utils.h
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/quarantine_test.cpp
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/secondary_test.cpp
The file was modifiedcompiler-rt/lib/scudo/standalone/combined.h
The file was modifiedcompiler-rt/lib/scudo/standalone/primary64.h
The file was modifiedcompiler-rt/lib/scudo/standalone/size_class_map.h
The file was modifiedcompiler-rt/lib/scudo/standalone/vector.h
Commit 738abfdbea21acd2597d83ad3390daf5696b6d07 by aeubanks
[NFC] Remove checking pointee type for byval/preallocated type

These currently always require a type parameter. The bitcode reader
already upgrades old bitcode without the type parameter to use the
pointee type.
The file was modifiedllvm/include/llvm/IR/InstrTypes.h
Commit d71ff907ef23eaef86ad66ba2d711e4986cd6cb2 by mahesha.comp
[AMDGPU] Increase alignment of LDS globals if necessary before LDS lowering.

Before packing LDS globals into a sorted structure, make sure that
their alignment is properly updated based on their size. This will make
sure that the members of sorted structure are properly aligned, and
hence it will further reduce the probability of unaligned LDS access.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D103261
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/lds-global-value.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/ds_read2.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/promote-alloca-globals.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/lds-alignment.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/ds_read2_offset_order.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/ds_write2.ll
The file was addedllvm/test/CodeGen/AMDGPU/update-lds-alignment.ll
Commit 5337c7550d31597f04bcca0c49e1ce62000cc59b by Cyndy Ishida
Revert "[llvm] llvm-tapi-diff"

This reverts commit d1d36f7ad2ae82bea8a6fcc40d6c42a72e21f096.
Reverting this patch to investigate linux bot failures
+ fix with author offline
The file was removedllvm/test/tools/llvm-tapi-diff/tapi-diff-incorrect-format.test
The file was removedllvm/test/tools/llvm-tapi-diff/Inputs/v4E.tbd
The file was removedllvm/test/tools/llvm-tapi-diff/Inputs/v4A.tbd
The file was removedllvm/test/tools/llvm-tapi-diff/tapi-diff-misspelled-tbd.test
The file was modifiedllvm/lib/TextAPI/Target.cpp
The file was removedllvm/test/tools/llvm-tapi-diff/tapi-diff-mismatched-number-of-inlines.test
The file was modifiedllvm/include/llvm/TextAPI/Target.h
The file was removedllvm/test/tools/llvm-tapi-diff/Inputs/macho.yaml
The file was removedllvm/tools/llvm-tapi-diff/DiffEngine.cpp
The file was modifiedllvm/include/llvm/Object/TapiUniversal.h
The file was removedllvm/test/tools/llvm-tapi-diff/Inputs/v4C.tbd
The file was removedllvm/test/tools/llvm-tapi-diff/tapi-diff-tbd-has-single-inlineA.test
The file was removedllvm/test/tools/llvm-tapi-diff/Inputs/v4D.tbd
The file was removedllvm/tools/llvm-tapi-diff/DiffEngine.h
The file was modifiedllvm/include/llvm/TextAPI/Platform.h
The file was removedllvm/test/tools/llvm-tapi-diff/tapi-diff-tbd-has-single-inlineB.test
The file was removedllvm/test/tools/llvm-tapi-diff/tapi-diff-matching-tbd.test
The file was removedllvm/tools/llvm-tapi-diff/CMakeLists.txt
The file was modifiedllvm/lib/TextAPI/Platform.cpp
The file was removedllvm/test/tools/llvm-tapi-diff/tapi-diff-no-inlines.test
The file was removedllvm/test/tools/llvm-tapi-diff/tapi-diff-tbd-has-multiple-inlines.test
The file was modifiedllvm/include/llvm/TextAPI/Symbol.h
The file was removedllvm/test/tools/llvm-tapi-diff/tapi-diff-same-number-of-inlines.test
The file was removedllvm/test/tools/llvm-tapi-diff/Inputs/v4B.tbd
The file was removedllvm/tools/llvm-tapi-diff/llvm-tapi-diff.cpp