devel/spirv-llvm-translator: unbreak llvm12 flavor with clang 21
With clang 21 the llvm12 flavor of devel/spirv-llvm-translator fails to
build, with errors similar to:
In file included from /wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/OCLTypeToSPIRV.cpp:44:
In file included from /wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/OCLUtil.h:42:
In file included from /wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/SPIRVInternal.h:43:
In file included from /wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/libSPIRV/SPIRVEnum.h:44:
In file included from /wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/libSPIRV/SPIRVOpCode.h:45:
/wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/libSPIRV/spirv_internal.hpp:120:31: error: constexpr variable 'FunctionControlOptNoneINTELMask' must be initialized by a constant expression
120 | constexpr FunctionControlMask FunctionControlOptNoneINTELMask =
| ^
121 | static_cast<FunctionControlMask>(IFunctionControlOptNoneINTELMask);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/libSPIRV/spirv_internal.hpp:121:5: note: integer value 65536 is outside the valid range of values [0, 15] for the enumeration type 'FunctionControlMask'
121 | static_cast<FunctionControlMask>(IFunctionControlOptNoneINTELMask);
| ^
[10 lines not shown]
devel/spirv-llvm-translator: split port patches by flavor
Add patches to files.llvm*/ instead of files/ subdirectory.
For now, it lacks support for patches common to all flavors.
PR: 293293
(cherry picked from commit a93fd63ae97f7bb7737ede009224b492545f0e95)
devel/spirv-llvm-translator: unbreak llvm12 flavor with clang 21
With clang 21 the llvm12 flavor of devel/spirv-llvm-translator fails to
build, with errors similar to:
In file included from /wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/OCLTypeToSPIRV.cpp:44:
In file included from /wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/OCLUtil.h:42:
In file included from /wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/SPIRVInternal.h:43:
In file included from /wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/libSPIRV/SPIRVEnum.h:44:
In file included from /wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/libSPIRV/SPIRVOpCode.h:45:
/wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/libSPIRV/spirv_internal.hpp:120:31: error: constexpr variable 'FunctionControlOptNoneINTELMask' must be initialized by a constant expression
120 | constexpr FunctionControlMask FunctionControlOptNoneINTELMask =
| ^
121 | static_cast<FunctionControlMask>(IFunctionControlOptNoneINTELMask);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/devel/spirv-llvm-translator/work-llvm12/SPIRV-LLVM-Translator-12.0.1/lib/SPIRV/libSPIRV/spirv_internal.hpp:121:5: note: integer value 65536 is outside the valid range of values [0, 15] for the enumeration type 'FunctionControlMask'
121 | static_cast<FunctionControlMask>(IFunctionControlOptNoneINTELMask);
| ^
[9 lines not shown]
devel/spirv-llvm-translator: split port patches by flavor
Add patches to files.llvm*/ instead of files/ subdirectory.
For now, it lacks support for patches common to all flavors.
PR: 293293
[AMDGPU] Add target features to guard DPP controls (#182391)
This patch adds target features:
- `+dpp-wavefront-shifts`, for DPP `wave_shl/rol/shr/ror`
- `+dpp-row-bcast`, for DPP `row_bcast15/31`
These DPP controls are not available in gfx10+, so these target features
enable `AMDGPURemoveIncompatibleFunctions` to remove functions that rely
on these controls when compiling for newer GPUs.
Convert etc plugin to using dataclasses
This commit robustizes how we manage config file generation
through the middleware plugin by ensuring that directives for
how to render different configuration file groups are using
properly typed python data classes. This reduces risk of
developer having a typo in the configuration.
[Clang][AST][NFC] Correct Comment in GenericSelectionExpr (#180850)
Correct a misleading comment about the number/type of trailing objects
in the GenericSelectionExpr.
[lldb][test] delayed-definition-die-searching.test: compile without simple template names
Fails on Darwin after we made `-gsimple-template-names` the default (in https://github.com/llvm/llvm-project/pull/182297):
```
13:42:19 | # CHECK: DWARFASTParserClang::ParseTypeFromDWARF{{.*}}DW_TAG_structure_type (DW_TAG_structure_type) name = 't2<t1>'
13:42:19 | ^
13:42:19 | <stdin>:9:12: note: scanning from here
13:42:19 | (lldb) p v1
13:42:19 | ^
13:42:19 | <stdin>:10:278: note: possible intended match here
13:42:19 | (arm64) /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake-os-verficiation/lldb-build/tools/lldb/test/Shell/SymbolFile/DWARF/Output/delayed-definition-die-searching.test.tmp.out: DWARFASTParserClang::ParseTypeFromDWARF (die = 0x0000000000000037, decl_ctx = 0x0000000B723D2030 (die 0x000000000000000c)) DW_TAG_structure_type (DW_TAG_structure_type) name = 't2')
13:42:19 |
```
This just checks the delayed definition search. It used to always run without `-gsimple-template-names`, so we're not losing coverage here. Also the failure is expected with `-gsimple-template-names` because the DIE name no longer include template parameters. I didn't want to make the `CHECK` less strict because it useful to check that the types being resolved are the correct instantiations.
[DA] Add tests for dependencies are missed due to addrecs wrap (NFC) (#179683)
Add test cases where dependencies are missed since nowrap properties of
addrecs are not checked properly. This patch doesn't contain test cases
for the MIV tests.
NAS-139889 / 25.10.2.1 / add missing DumpInterrupted exception (#18253)
While fixing memory leaks in the network library, this error condition
was omitted which means the retry loop in list_interface_states() will
not get executed because a generic NetlinkError is raised instead of the
proper DumpInterrupted.
NAS-139892 / 25.10.2.1 / Remove LEGACY_SHARE validation for path_suffix (by anodos325) (#18254)
Prior to 25.10 we did not validate what users were putting as
a path_suffix in SMB shares that supported them. When the new
schema was added, a common path suffix type was used to limit
users to what is safe or makes sense.
Among specific items excluded were:
* Options that were under the client's control rather than
the server's control. Allowing clients to partially
dictate the share path can create an incorrect impression
of enhanced security because admin may not realize that
the client can change these.
* Options that often will break path creation or the ability
to auto-create ZFS datasets based on the naming schema
generated by the macro expansion.
This commit removes the path suffix validation from the
[5 lines not shown]
NAS-139892 / 26.0.0-BETA.1 / Remove LEGACY_SHARE validation for path_suffix (#18251)
Prior to 25.10 we did not validate what users were putting as
a path_suffix in SMB shares that supported them. When the new
schema was added, a common path suffix type was used to limit
users to what is safe or makes sense.
Among specific items excluded were:
* Options that were under the client's control rather than
the server's control. Allowing clients to partially
dictate the share path can create an incorrect impression
of enhanced security because admin may not realize that
the client can change these.
* Options that often will break path creation or the ability
to auto-create ZFS datasets based on the naming schema
generated by the macro expansion.
This commit removes the path suffix validation from the
[3 lines not shown]
[SLP]Do not convert inversed cmp nodes, if they reordered/reused
If the cmp node with inversed compares must be reordered/shuffled with
the reuses, disable transformation for such nodes for now, they require
some special processing.
Fixes https://github.com/llvm/llvm-project/pull/181580#issuecomment-3933026221