Changes

Summary

  1. [ms] [llvm-ml] Add support for INCLUDE environment variable (details)
  2. [tests] Precommit test for D103991 (details)
  3. [RISCV] Remove unused method from RISCVInsertVSETVLI. NFC (details)
  4. Folds linalg.pad_tensor with zero padding (details)
  5. Fix to Windows temp file change. (details)
  6. [lld/mac] When handling @loader_path, use realpath() of symlinks (details)
  7. [lld/mac] Make framework symlinks in tests more realistic (details)
  8. Save/restore OuterTemplateParams in AbstractManglingParser::parseEncoding. (details)
  9. Annotate memcpy's of globals with info about the src/dst (details)
  10. [clang][RISCV][test] Add more tests of the -mabi and -march options (details)
  11. Add .mailmap entries for myself, and sort the list (details)
  12. [libomptarget][amdgpu] Remove stray fprintf in rtl.cpp (details)
  13. [lld/mac] Print dylib search details with --print-dylib-search or RC_TRACE_DYLIB_SEARCHING (details)
  14. [AIX] Add traceback ssp canary bit support (details)
  15. [AMDGPU] Fix missing lowering of LDS used in global scope. (details)
  16. [HIP] Add --gpu-bundle-output (details)
  17. Reland "[llvm] llvm-tapi-diff" (details)
  18. [llvm-objdump][XCOFF] Enable the -l (--line-numbers) option. (details)
  19. [Utils][vim] Highlight 'ptr' type (details)
  20. [ConstantFolding] Enable folding of min/max/copysign for all floats (details)
  21. [libc] Remove libc-fuzzer as a dependency to check-libc. (details)
Commit 4b5317e937ac5c87c30a67bc76a4e253c2c3516c by epastor
[ms] [llvm-ml] Add support for INCLUDE environment variable

Also adds support for the ML.exe command-line flag /X, which ignores the INCLUDE environment variable.

This relands commit c43f413b01b021a8f7b6fce013296114fa92a245 using lit's cross-platform `env` support.

Differential Revision: https://reviews.llvm.org/D103989
The file was modifiedllvm/tools/llvm-ml/Opts.td (diff)
The file was addedllvm/test/tools/llvm-ml/include_by_env_var.asm
The file was addedllvm/test/tools/llvm-ml/include_by_env_var_errors.asm
The file was modifiedllvm/tools/llvm-ml/llvm-ml.cpp (diff)
Commit 4ac3dae57f276ee3c83ef5b18c864a2b1eb07add by listmail
[tests] Precommit test for D103991
The file was addedllvm/test/Analysis/ScalarEvolution/ne-overflow.ll
Commit 8dfd0810f240cd97d9cdf9fde4635025f2462853 by craig.topper
[RISCV] Remove unused method from RISCVInsertVSETVLI. NFC

If this becomes needed its trivial to add it back.
The file was modifiedllvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp (diff)
Commit b9d7ffd9cf5f9caefb9796468bf4cbeec709b320 by ataei
Folds linalg.pad_tensor with zero padding

Differential Revision: https://reviews.llvm.org/D103984
The file was modifiedmlir/test/Dialect/Linalg/canonicalize.mlir (diff)
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgOps.cpp (diff)
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td (diff)
Commit cf11d9585afd5c43031aaaaa9fb622c8c31b4bef by akhuang
Fix to Windows temp file change.

Original change passed wrong parameters to the raw_fd_ostream ctor.
Fixes a bug in https://reviews.llvm.org/D102736.
The file was modifiedclang/lib/Frontend/CompilerInstance.cpp (diff)
Commit 0e399eb5273b13d37a70acaa7ad7291ee6273fb8 by thakis
[lld/mac] When handling @loader_path, use realpath() of symlinks

This is important for Frameworks, which are usually symlinks.

ld64 gets this right for @rpath that's replaced with @loader_path, but not for
bare @loader_path -- ld64's code calls realpath() in that case too, but ignores
the result.

ld64 somehow manages to find libbar1.dylib in the test without the
explicit `-rpath` in Foo1. I don't understand why or how. But this
change is a step forward and fixes an immediate problem I'm having,
so let's start with this :)

Differential Revision: https://reviews.llvm.org/D103990
The file was addedlld/test/MachO/link-search-at-loader-path-symlink.s
The file was modifiedlld/MachO/InputFiles.cpp (diff)
Commit bbe6f51b726f9d4265df4407736772dd68ac6f98 by thakis
[lld/mac] Make framework symlinks in tests more realistic

In a framework Foo.framework, Foo.framework/Foo is usually a relative
symbolic link to Foo.framework/Versions/Current/Foo,
and Foo.framework/Versions/Current is usually a relative symbolic
link to A.

Our tests used absolute symbolic links. Now they use relative symbolic links.

No behavior change, just makes the tests more representative of the real world.

(implicit-dylib.s omits the "Current" folder too, but I'm not changing that
here.)

Differential Revision: https://reviews.llvm.org/D103998
The file was modifiedlld/test/MachO/implicit-dylibs.s (diff)
The file was modifiedlld/test/MachO/framework.s (diff)
Commit c962491a41c3fbc6de50b4c109a67d21b2044d71 by justin.lebar
Save/restore OuterTemplateParams in AbstractManglingParser::parseEncoding.

Previously we were only saving plain TemplateParams.

Differential Revision: https://reviews.llvm.org/D103996
The file was modifiedlibcxxabi/src/demangle/ItaniumDemangle.h (diff)
The file was modifiedlibcxxabi/test/test_demangle.pass.cpp (diff)
The file was modifiedllvm/include/llvm/Demangle/ItaniumDemangle.h (diff)
Commit f8f1c9c38989e804946697b301a6e064e43b5e52 by Jon Roelofs
Annotate memcpy's of globals with info about the src/dst

Differential revision: https://reviews.llvm.org/D103994
The file was modifiedllvm/test/CodeGen/AArch64/memsize-remarks.ll (diff)
The file was modifiedllvm/lib/Transforms/Utils/MemoryOpRemark.cpp (diff)
Commit b0eb3919835a7bb57cb28ae684d77fece8ff025c by powerman1st
[clang][RISCV][test] Add more tests of the -mabi and -march options

1. There is no tests for mabi=ilp32e, and my patch covers that.
2. The tests in riscv-abi.c will show default ABI changes for special archs
   in the future, especially the arch with the F but without the D extension.
3. The tests in riscv-arch.c will show default arch changes for abi=ilp32,
   which is rv32imacfd currently, but it is better to be rv32imac.
   And it is also better for abi=ilp32f defaults to arch=imacf.

Reviewed By: MaskRay, luismarques

Differential Revision: https://reviews.llvm.org/D103878
The file was modifiedclang/test/Driver/riscv-arch.c (diff)
The file was modifiedclang/test/Driver/riscv-abi.c (diff)
Commit 047f6d99158caeeb033986d44265bde5b3339228 by Jon Roelofs
Add .mailmap entries for myself, and sort the list
The file was modified.mailmap (diff)
Commit 91f147792e815d401ae408989992f3c1530cc18a by Pushpinder.Singh
[libomptarget][amdgpu] Remove stray fprintf in rtl.cpp

remove unintended fprintf in rtl.cpp

Reviewed By: pdhaliwal

Differential Revision: https://reviews.llvm.org/D104003
The file was modifiedopenmp/libomptarget/plugins/amdgpu/src/rtl.cpp (diff)
Commit e87c095af3e3b964a7f400a1767ae1e302cfb0c4 by thakis
[lld/mac] Print dylib search details with --print-dylib-search or RC_TRACE_DYLIB_SEARCHING

For debugging dylib loading, it's useful to have some insight into what
the linker is doing.

ld64 has the undocumented RC_TRACE_DYLIB_SEARCHING env var
for this printing dylib search candidates.

This adds a flag --print-dylib-search to make lld print the seame information.
It's useful for users, but also for writing tests. The output is formatted
slightly differently than ld64, but we still support RC_TRACE_DYLIB_SEARCHING
to offer at least a compatible way to trigger this.

ld64 has both `-print_statistics` and `-trace_symbol_output` to enable
diagnostics output. I went with "print" since that seems like a more
straightforward name.

Differential Revision: https://reviews.llvm.org/D103985
The file was modifiedlld/MachO/Driver.cpp (diff)
The file was modifiedlld/MachO/Driver.h (diff)
The file was modifiedlld/MachO/Options.td (diff)
The file was modifiedlld/MachO/DriverUtils.cpp (diff)
The file was modifiedlld/MachO/Config.h (diff)
The file was modifiedlld/test/MachO/link-search-order.s (diff)
Commit 4a89ed373cdaf2033a8c164d27c4dfe28b3680bd by Jinsong Ji
[AIX] Add traceback ssp canary bit support

We will need to set the ssp canary bit in traceback table to communicate
with unwinder about the canary.

Reviewed By: #powerpc, shchenz

Differential Revision: https://reviews.llvm.org/D103202
The file was modifiedllvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (diff)
The file was addedllvm/test/CodeGen/PowerPC/aix-emit-tracebacktable-ssp.ll
The file was modifiedllvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h (diff)
The file was modifiedllvm/lib/Target/PowerPC/PPCAsmPrinter.cpp (diff)
Commit f6632f11ed196bbb383357e9e7ecd1cf33e08a6a by mahesha.comp
[AMDGPU] Fix missing lowering of LDS used in global scope.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D103431
The file was addedllvm/test/CodeGen/AMDGPU/lower-kernel-lds-global-uses.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp (diff)
The file was modifiedllvm/lib/Target/AMDGPU/Utils/AMDGPULDSUtils.h (diff)
The file was addedllvm/test/CodeGen/AMDGPU/lower-module-lds-global-uses.ll
The file was modifiedllvm/lib/Target/AMDGPU/Utils/AMDGPULDSUtils.cpp (diff)
The file was addedllvm/test/CodeGen/AMDGPU/lower-module-lds-global-alias.ll
Commit 5fc2673fbce247e107094b28c22cbb2d5f1691a8 by Yaxun.Liu
[HIP] Add --gpu-bundle-output

Added --gpu-bundle-output to control bundling/unbundling output of HIP device compilation.

By default preprocessor expansion, llvm bitcode and assembly are unbundled, code objects are
bundled.

Reviewed by: Artem Belevich, Jan Svoboda

Differential Revision: https://reviews.llvm.org/D101630
The file was modifiedclang/test/Driver/clang-offload-bundler.c (diff)
The file was modifiedclang/lib/Driver/Driver.cpp (diff)
The file was modifiedclang/test/Driver/hip-device-compile.hip (diff)
The file was modifiedclang/test/Driver/hip-phases.hip (diff)
The file was modifiedclang/test/Driver/hip-rdc-device-only.hip (diff)
The file was modifiedclang/include/clang/Driver/Options.td (diff)
The file was modifiedclang/tools/clang-offload-bundler/ClangOffloadBundler.cpp (diff)
The file was modifiedclang/test/Driver/hip-output-file-name.hip (diff)
Commit 5b5ab80e31958b3b4a52de13ce4306a2c6c8765d by Cyndy Ishida
Reland "[llvm] llvm-tapi-diff"

This is relanding commit d1d36f7ad2ae82bea8a6fcc40d6c42a72e21f096 .
This patch additionally addresses failures found in buildbots due to unstable build ordering & post review comments.

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 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-tbd-has-single-inlineB.test
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-matching-tbd.test
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-incorrect-format.test
The file was addedllvm/tools/llvm-tapi-diff/CMakeLists.txt
The file was addedllvm/tools/llvm-tapi-diff/llvm-tapi-diff.cpp
The file was modifiedllvm/test/CMakeLists.txt (diff)
The file was addedllvm/test/tools/llvm-tapi-diff/Inputs/v4C.tbd
The file was modifiedllvm/test/lit.cfg.py (diff)
The file was modifiedllvm/lib/TextAPI/Platform.cpp (diff)
The file was addedllvm/test/tools/llvm-tapi-diff/Inputs/v4A.tbd
The file was modifiedllvm/include/llvm/TextAPI/Platform.h (diff)
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-same-number-of-inlines.test
The file was modifiedllvm/lib/TextAPI/Target.cpp (diff)
The file was addedllvm/tools/llvm-tapi-diff/DiffEngine.h
The file was modifiedllvm/include/llvm/Object/TapiUniversal.h (diff)
The file was addedllvm/tools/llvm-tapi-diff/DiffEngine.cpp
The file was modifiedllvm/include/llvm/TextAPI/Target.h (diff)
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-misspelled-tbd.test
The file was addedllvm/test/tools/llvm-tapi-diff/Inputs/v4D.tbd
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-no-inlines.test
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-tbd-has-multiple-inlines.test
The file was addedllvm/test/tools/llvm-tapi-diff/Inputs/macho.yaml
The file was modifiedllvm/include/llvm/TextAPI/Symbol.h (diff)
The file was addedllvm/test/tools/llvm-tapi-diff/tapi-diff-mismatched-number-of-inlines.test
Commit 8a23f74eb79f85879507809553555892673a9c01 by esme.yi
[llvm-objdump][XCOFF] Enable the -l (--line-numbers) option.

Summary: Add support for dumping line number
information for XCOFF object files in llvm-objdump.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D101272
The file was modifiedllvm/include/llvm/Object/XCOFFObjectFile.h (diff)
The file was modifiedllvm/test/tools/llvm-objdump/XCOFF/disassemble-symbol-description.test (diff)
The file was addedllvm/test/tools/llvm-objdump/XCOFF/print-linenumber.test
The file was addedllvm/test/tools/llvm-objdump/XCOFF/Inputs/basic64.o
The file was modifiedllvm/lib/Object/XCOFFObjectFile.cpp (diff)
The file was modifiedllvm/lib/Object/SymbolSize.cpp (diff)
The file was addedllvm/test/tools/llvm-objdump/XCOFF/lit.local.cfg
The file was addedllvm/test/tools/llvm-objdump/XCOFF/Inputs/basic32.o
The file was modifiedllvm/test/tools/llvm-objdump/XCOFF/disassemble-all.test (diff)
The file was modifiedllvm/test/tools/llvm-objdump/XCOFF/print-reloc.test (diff)
Commit b6f983dd842e773cf045a96744f595aa5ce7af9d by tstellar
[Utils][vim] Highlight 'ptr' type

Differential Revision: https://reviews.llvm.org/D102460
The file was modifiedllvm/utils/vim/syntax/llvm.vim (diff)
Commit 8ff36aab69ece2cc91ba30f82847d19fe877a7ab by sepavloff
[ConstantFolding] Enable folding of min/max/copysign for all floats

Previously such folding was enabled for half, float and double values
only. With this change it is allowed for other floating point values
also.

Differential Revision: https://reviews.llvm.org/D103956
The file was modifiedllvm/lib/Analysis/ConstantFolding.cpp (diff)
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/copysign.ll (diff)
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/min-max.ll (diff)
Commit b5d6da3587469246a77d573fdf17ffa85a07673c by sivachandra
[libc] Remove libc-fuzzer as a dependency to check-libc.
The file was modifiedlibc/fuzzing/CMakeLists.txt (diff)