[HLSL][LongVector] Implement fmod (#224123)
resolves https://github.com/llvm/llvm-project/issues/220649
This is as much a refactor as it is adding long vector support.
I noticed the fmod helper had many issues. THe SPIR-V implementatiion
wasn't properly put into a SPIR-V macro
fmod had a scalar \ vector version that was unecessary.
The tests seemed to be raw register defines so
source code changes caused the names to all change.
Fixing this meant we could simplify the tablegen
and helpers.
Also the tests are much more clean with no -D defines
[libc] Add getgrnam and getgrgid entrypoints (#224858)
Add the non-reentrant group database lookup entrypoints getgrnam and
getgrgid.
Both entrypoints delegate to grp::find_by_name and grp::find_by_gid,
sharing the single static DynamicBuffer and struct group with getgrent
as permitted by POSIX. Because endgrent closes the file stream without
freeing the shared buffer, calling endgrent does not invalidate pointers
returned by getgrnam or getgrgid.
* Add getgrnam and getgrgid entrypoints
* Add non-reentrant find_by_name and find_by_gid overloads in grp_utils
* Define getgrnam and getgrgid in include/grp.yaml
* Add hermetic unit tests for getgrnam and getgrgid
Assisted-by: Automated tooling, human reviewed.
[compiler-rt][hwasan] Fix decorate-proc-maps.c test (#225496)
Avoid returning the heap pointer address from main, which causes the
process to exit with a non-zero exit status whenever the lowest byte of
the allocated address is non-zero.
Previously, `malloc(100)` (size class 112) was the first allocation in
its size class, returning page-aligned chunk 0 (`offset 0x00`, exit
code 0). Commit 5a50c15fa686 (#224953) removed `SinkOpts` (48 bytes)
from `llvm::cl::SubCommand`, shrinking `sizeof(SubCommand)` from 160 to
112 bytes. With the internal symbolizer enabled, two pre-main
`ManagedStatic<SubCommand>` allocations now take chunks 0 and 1 in the
112-byte size class, pushing `malloc(100)` to chunk 2 (`offset 0xe0`,
exit code 224).
Assisted-by: Gemini
[NFC][AMDGPU] Refactor isDPALU_DPP to only check if the instruction requires the feature (#224373)
Previously the helper function was a combination of checking if the
instruction required the feature and if the feature is available. This
behavior diverges from similar isDPALU_DPP32BitOpc and can cause
confusion. This refactor aligns the two for consistency, and users
should also check if the feature is available if needed.
Mk/Uses/npm.mk: Preserve WRKDIR itself after archiving node modules
Removing WRKDIR itself breaks the makesum phase. So only removes the
contents of WRKDIR (node-modules-cache directory and
node-modules-cache.mtree file).
[libc] Implement posix_fallocate in fcntl (#225475)
Implement the standard POSIX.1-2008 / POSIX.1-2024 function
`posix_fallocate` in `<fcntl.h>`.
Fixes #225469
18460 bhyve: fix boot device ordering
Reviewed by: Bill Sommerfeld <sommerfeld at hamachi.org>
Reviewed by: Andy Fiddaman <illumos at fiddaman.net>
Approved by: Gordon Ross <gordon.w.ross at gmail.com>
[mlir][docs] Regenerate Toy Ch6 sample output against current main (#225457)
The Ch6 tutorial tells you to run toyc-ch6 with `-emit=mlir-llvm` and
compare against the chapter, but the listings still show typed pointers
like `!llvm<"double*">` and a four-field memref descriptor, and some
lines don't parse at all. #224908 is a beginner hitting exactly that.
This replaces the three listings (LLVM dialect, LLVM IR, optimized LLVM
IR) with what the tool prints today on
`test/Examples/Toy/Ch6/llvm-lowering.mlir`. The LLVM IR listings leave
out the target triple, data layout and `!dbg` metadata since those
depend on the host machine, and the text now says so.
The C++ snippets in the same chapter quoted the old typed-pointer API
for the printf declaration and a pattern list without the memref
patterns, so I updated those to match what's in `examples/toy/Ch6` now,
along with the `dumpLLVMIR` and `runJit` listings. If you'd prefer this
PR stick to the IR output, I can drop those hunks.
[6 lines not shown]
NAS-144030 / 26.0.0-RC.1 / Raise the S3 service server cap from 8 to 12 (by yocalebo) (#19846)
The plugin ceiling, both API models and the bounds test now allow up to
twelve reactor threads. The per CPU limit is unchanged.
Original PR: https://github.com/truenas/middleware/pull/19844
Co-authored-by: Caleb St. John <30729806+yocalebo at users.noreply.github.com>
NAS-144030 / 26.0.0 / Raise the S3 service server cap from 8 to 12 (by yocalebo) (#19845)
The plugin ceiling, both API models and the bounds test now allow up to
twelve reactor threads. The per CPU limit is unchanged.
Original PR: https://github.com/truenas/middleware/pull/19844
Co-authored-by: Caleb St. John <30729806+yocalebo at users.noreply.github.com>
Add TLSv1.2 error handling
Provide error handling for use with the TLSv1.2 context - for now this
is a duplicate of the TLSv1.3 error handling, which we may deduplicate
in the future.
ok tb@
[SCEV] Use SCEVUse to access MulOpLists. (#225450)
After https://github.com/llvm/llvm-project/pull/224974, we can reach
this patch with SCEV Mul expressions with operands that have use-flags.
Update loop to access map with SCEVUse instead of const SCEV *.
Fixes a crash in the added test case.