Revert "mmc: Allow HS400ES with HS400 at a single I/O voltage"
llm-postcr reports multiple issues with this as-is.
This reverts commit e70868afa99d40087363d6478488a9904459be71.
devel/llvm*: fix plist for MLIR + WITH_DEBUG
The name of the MLIR objects directory embeds ${CMAKE_BUILD_TYPE}.
Update plists to reflect that. This is more convoluted than ideal
due to PLIST_SUB containing CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:tl},
but no version in the original PascalCase format.
PR: 301094
Reported by: Jonah Quist <jonahquist at gmail.com>
[mlir][gpu] Split target-specific passes out of the GPU C API and Python bindings
#234903 moved the target-specific GPU passes into per-target libraries,
but `MLIRCAPIGPU` and the `_mlirGPUPasses` Python extension still
linked all of them. Since the exported C API pass constructors are kept
alive, every user of the `gpu` dialect Python bindings thus embedded the
AMDGPU, ROCDL, SPIR-V and XeVM dialects.
Give each target its own C API library and Python extension. In Python,
the passes of a target are registered by importing
`mlir.dialects.gpu.passes.<target>`, which is a separate source group
that packages opt into.
C API users of the target-specific passes have to include
`mlir-c/Dialect/GPU/<Target>Passes.h` and link
`MLIRCAPIGPU<Target>Passes`. Python packages have to add
`MLIRPythonSources.Dialects.gpu.passes.<target>` and import the module.
The link closure of `MLIRCAPIGPU` no longer contains any target
[3 lines not shown]
[MC][NFC] Remove subtarget-dep MaxInstLength from MCAsmInfo (#246645)
The only user of the subtarget-dependent MCAsmInfo::getMaxInstLength was
AMDGPU, added in ca64ef20434c0cb6912e795c85567d5b00ad9b0d. Remove this
virtual function from MCAsmInfo and permit callers to override the
maximum instruction length in getInlineAsmLength.
In an all-target LLVM build, this reduces the size of .data.rel.ro by
~400B.
[MC] Replace useCodeAlign with isText (#246649)
Remove the virtual useCodeAlign hook and always use code alignment
inside text sections. While this is usually identical and no test is
impacted, this is not strictly NFC:
- Darwin text section that are not S_ATTR_PURE_INSTRUCTIONS will now use
nop-padding.
- GOFF text sections will now use nop-padding.
- Wasm text sections will now use nop-padding.
I don't think this has pratically relevant implications, however.
History: useCodeAlign was previously a virtual function of MCSection and
was moved to MCAsmInfo in e9de1ee9f57c0.
This reduces the size of .data.rel.ro by ~400B in an all-target build.
[mlir][CAPI] Drop translation registration deps from MLIRCAPITarget (#246674)
`MLIRCAPITarget` linked `MLIRToLLVMIRTranslationRegistration` and with
it the LLVM IR translation of every dialect, although `LLVMIR.cpp` never
registers a translation. Users of the C API library, such as the LLVM
dialect Python bindings, therefore pulled in the ArmSME, OpenMP, ROCDL,
SPIR-V, VCIX and XeVM dialects.
Link the LLVM IR export and import libraries that it actually uses
instead. Translations stay registered by the caller, e.g. through
`mlirRegisterAllLLVMTranslations`.
This shrinks the link closure of `MLIRCAPITarget` from 247 to 131 CMake
targets.
Co-authored-by: Claude <noreply at anthropic.com>
[ELF] Unmap input files in parallel before exit. NFC (#246533)
On exit, Linux exit_mmap() removes memory maps serially. Release them in
parallel with `dontNeedIfMmap` instead. dontNeedIfMmap is a no-op on
other systems.
--threads=8
```
before after
clang-release 142.4 ms 137.2 ms (-5.2 +- 1.1)
clang-debug 3436 ms 3274 ms (-162 +- 8)
chrome-release-x86_64 1306.9 ms 1292.3 ms (-14.7 +- 8.4)
```
[AMDGPU][NFCI] Let novm operands be parsed and created (#246647)
b9b7b31e2368 set AlwaysIgnoreNegative for exp_vm, so novm is parsed and
then dropped without producing an operand. This is not needed, because
vm is already an optional operand.