Add a more complete example to mlir-reduce docs (#116085)
This PR was started because I noticed bugs in the docs:
- The interestingness test checked for an error, but did not redirect
stderr to stdout to include it in the pipe.
- The interestingness test pipe ended with grep, but then checked for an
exit code of 1 to mark the input as interesting. However, a pipe's
overall exit code is the exit code of the rightmost command, and grep's
exit code is zero when it detects the query string, and 1 when it does
not detect the query string. So the test was backwards.
Then I wanted to test my fixes to be sure I got it right, and I realized
that the doc has no properly runnable example. This PR adds a working
example. h/t @aidint for fixing up the input.
[offload-arch] Fix HIP DLL discovery and loading on Windows (#194063)
On Windows, offload-arch fails to find or loads the wrong amdhip64 DLL
when running from a source-built LLVM/Clang installation where the
executable and HIP runtime are in different subdirectories.
Three fixes:
1. getSearchPaths(): walk parent directories appending /bin to each, so
layouts like <root>/lib/llvm/bin/offload-arch can discover
<root>/bin/amdhip64_*.dll. Capped at 6 levels with root detection.
Case-insensitive dedup for Windows paths.
2. findNewestHIPDLL(): use stable_sort to preserve search-path order on
version ties, so a colocated build DLL wins over a system copy.
3. printGPUsByHIP(): prime the DLL load with LoadLibraryExW and
LOAD_WITH_ALTERED_SEARCH_PATH so transitive dependencies resolve from
the DLL own directory. Uses LLVM convertUTF8ToUTF16String for path
[7 lines not shown]
platforms: Remove 13.x support tier information
Move platforms not supored by 14.x and newer to unsupported platforms
table.
Sponsored by: The FreeBSD Foundation
[compiler-rt] [Darwin] Internal lit shell support for Darwin.haswell-symbolication.cpp (#196380)
Somehow, #196152 fixed a bug where the x86_64h feature wasn't getting
correctly set and so some tests that weren't running before started
running. One such test is
[AddressSanitizer-x86_64-darwin.TestCases/Darwin.haswell-symbolication.cpp](https://green.lab.llvm.org/job/llvm.org/job/clang-stage1-RA-cmake-incremental/job/main/872/testReport/AddressSanitizer-x86_64-darwin/TestCases_Darwin/haswell_symbolication_cpp/),
which appears to have never been updated for the internal lit shell.
The internal lit shell does not support sub-shells, so the typical
pattern appears to be to write results to a file and use
`%{readfile:%t.whatever}`.
rdar://176390171
[lldb] Strip metadata bits on function pointer in IndirectCallEdge::GetCallee (#196204)
IndirectCallEdge::GetCallee calculates the raw address of a function
pointer and tries to resolve a load address for it. If the function
pointer has metadata bits in it (e.g. a signed pointer in arm64e) then
the resolution will fail.
---------
Co-authored-by: Jonas Devlieghere <jonas at devlieghere.com>
[flang][cuda] Do not repack CUDA device dummy arguments (#195950)
-frepack-arrays (implied by -Ofast) was inserting fir.pack_array /
fir.unpack_array for assumed-shape dummy arguments with CUDA data
attributes (device, managed, etc.). The repacking allocates a host-side
temporary and copies the descriptor, but the data lives in device
memory. When the CUF kernel subsequently receives the host descriptor
pointer, accessing it from the GPU triggers cudaErrorIllegalAddress.
Skip repacking in needsRepack() for any symbol that carries a CUDA data
attribute.
smartpqi: Add runtime sysctl for debug_level and log device state changes
The smartpqi driver did not log device add/remove or controller events
to syslog, and hw.smartpqi.debug_level could only be set at boot via
loader.conf with no runtime sysctl interface.
Add a read-write sysctl at dev.smartpqi.N.debug_level for runtime
debug level changes. Add device_printf calls for device addition,
removal, and controller events (hotplug, hardware, physical/logical
device, AIO state/config changes) so state changes always appear in
dmesg. Add DBG_DISC logging for discovery state transitions. Fix
spelling errors in strings and comments across the driver.
Bump driver version to 14.4691.1.2000 / 15.2.1.2000.
PR: 294161
Reviewed by: imp
Approved by: imp
MFC after: 2 weeks
[2 lines not shown]
In session_graceful_restart() also arm the SessionDown timer
session_graceful_restart() does more or less the same as session_down()
and therefor needs to arm the SessionDown timer and on top of that
update stats.last_updown. The interval for the SessionDown timer needs
to depend on the graceful restart timer, since that one needs to fire
first.
OK tb@
[flang][CUDA] Support module-scope variables in `global` kernels under `-gpu=mem:unified` (#196228)
Under `-gpu=mem:unified`, plain Fortran module-scope variables
referenced directly from a `global` kernel previously produced wrong
results. This adds a `cuda-unified` option to the CUF passes:
- CUFDeviceGlobal: when set, plain (un-attributed, non-constant) module
globals are mirrored into the GPU module as no-body declarations, so PTX
emits `.extern .global ...`.
- CUFAddConstructor: when set, emits a CUFRegisterExternalVariable call
for each such global from `__cudaFortranConstructor`.
- New runtime entry `CUFRegisterExternalVariable` wraps
`__cudaRegisterHostVar` so the CUDA driver maps the device extern to the
host pointer at module-load time. HMM/ATS handles migration from there.
net/wormhole-willian: update to version 1.0.8.
Apparently this fixes the riscv64 build also.
Diff from "mischief <mischief at offblast.org>". OK sthen@.
Thanks both.
[mlir][tosa] Avoid introducing int <-> float casts (#195882)
As part of the NonNarrowingCastsOptimization we were optimizing away
some cases where the inner input was an integer and the outer output was
a float.
Not all of the resulting dtype combinations for these cases are
supported by TOSA, so these scenarios are no longer optimized as part of
canonicalizations.
---------
Signed-off-by: Ian Tayler Lessa <ian.taylerlessa at arm.com>
Pull up the following, requested by christos in ticket #271:
crypto/external/bsd/openssh/dist/ed25519-openssl.c up to 1.1.1.1
crypto/external/bsd/openssh/dist/ssherr-libcrypto.c up to 1.1.1.1
crypto/external/bsd/openssh/dist/ssherr-nolibcrypto.c up to 1.1.1.1
crypto/external/bsd/openssh/dist/hash.c delete
crypto/external/bsd/openssh/dist/PROTOCOL up to 1.26
crypto/external/bsd/openssh/dist/addr.c up to 1.9
crypto/external/bsd/openssh/dist/addr.h up to 1.1.1.4
crypto/external/bsd/openssh/dist/addrmatch.c up to 1.16
crypto/external/bsd/openssh/dist/auth-bsdauth.c up to 1.10
crypto/external/bsd/openssh/dist/auth-krb5.c up to 1.20
crypto/external/bsd/openssh/dist/auth.c up to 1.40
crypto/external/bsd/openssh/dist/auth.h up to 1.26
crypto/external/bsd/openssh/dist/auth2-chall.c up to 1.22
crypto/external/bsd/openssh/dist/auth2-gss.c up to 1.19
crypto/external/bsd/openssh/dist/auth2-hostbased.c up to 1.26
crypto/external/bsd/openssh/dist/auth2-pubkey.c up to 1.38
crypto/external/bsd/openssh/dist/auth2-pubkeyfile.c up to 1.5
[130 lines not shown]
[lldb] Real-time console pane for output in lldb tui (#177160)
Creating a feature branch.
New Console Pane that -
- captures stdout/stderr msgs from debugged process
- displays output to console in real-time
- provides scrolling and navigation features
- manages 10K line circular buffer
- auto-scroll on/off feature
<img width="2940" height="1744" alt="image"
src="https://github.com/user-attachments/assets/49e9dd3e-9f6f-4383-820b-ce365a46208f"
/>
Controls -
enable / disable : F5 + o
tab to switch to Console pane
[4 lines not shown]
Pull up the following, requested by christos in ticket #270:
external/public-domain/xz/dist/doc/examples/11_file_info.c up to 1.1.1.1
external/public-domain/xz/dist/po/pt_BR.gmo up to 1.1.1.1
external/public-domain/xz/dist/po/ca.gmo up to 1.1.1.1
external/public-domain/xz/dist/po/ca.po up to 1.1.1.1
external/public-domain/xz/dist/po/da.gmo up to 1.1.1.1
external/public-domain/xz/dist/po/da.po up to 1.1.1.1
external/public-domain/xz/dist/po/eo.gmo up to 1.1.1.1
external/public-domain/xz/dist/po/eo.po up to 1.1.1.1
external/public-domain/xz/dist/po/es.gmo up to 1.1.1.1
external/public-domain/xz/dist/po/es.po up to 1.1.1.1
external/public-domain/xz/dist/po/fi.gmo up to 1.1.1.1
external/public-domain/xz/dist/po/fi.po up to 1.1.1.1
external/public-domain/xz/dist/po/hr.gmo up to 1.1.1.1
external/public-domain/xz/dist/po/hr.po up to 1.1.1.1
external/public-domain/xz/dist/po/hu.gmo up to 1.1.1.1
external/public-domain/xz/dist/po/hu.po up to 1.1.1.1
external/public-domain/xz/dist/po/ka.gmo up to 1.1.1.1
[524 lines not shown]