[all-commits] [llvm/llvm-project] 3d2e5b: WebAssembly: Partially clean up subtarget construc...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Thu Sep 17 06:48:46 PDT 2026
Branch: refs/heads/users/arsenm/wasm/nfc-cleanup-getsubtargetimpl
Home: https://github.com/llvm/llvm-project
Commit: 3d2e5b5d0bf3e733edc39f5e07c91735b31eddb3
https://github.com/llvm/llvm-project/commit/3d2e5b5d0bf3e733edc39f5e07c91735b31eddb3
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2026-09-17 (Thu, 17 Sep 2026)
Changed paths:
M llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
M llvm/lib/Target/WebAssembly/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp
M llvm/lib/Target/WebAssembly/WebAssemblySubtarget.cpp
M llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h
M llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
M llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h
Log Message:
-----------
WebAssembly: Partially clean up subtarget construction
There should be just one getSubtargetImpl(Function&) override like every
other target, but this is relying on the global subtarget. Remove the
argumentless form since it's unnecessary.
WebAssemblyCoalesceFeaturesAndStripAtomics doesn't really need to construct
a full new subtarget for its purpose and can directly take the global subtarget
feature bits. This pass is also doing quite a lot of other bad things, like
mutating the TargetMachine.
Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list