aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorhev <wangrui@loongson.cn>2024-11-25 11:22:49 +0800
committerGitHub <noreply@github.com>2024-11-25 11:22:49 +0800
commite26af0938c7a272cf0de11c92aa069485868e130 (patch)
treea13e7c9543f9ab9e9b2ee22db2681d6721640505 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent0bfc9514715b3beb967f1a245e9db310d2aafa50 (diff)
downloadllvm-e26af0938c7a272cf0de11c92aa069485868e130.zip
llvm-e26af0938c7a272cf0de11c92aa069485868e130.tar.gz
llvm-e26af0938c7a272cf0de11c92aa069485868e130.tar.bz2
[llvm] Add `BasicTTIImpl::areInlineCompatible` for target feature subset checks (#117493)
This patch moves the `areInlineCompatible` implementation from multiple subclasses (`AArch64TTIImpl`, `RISCVTTIImpl`, `WebAssemblyTTIImpl`) to the base class `BasicTTIImpl`. The new implementation checks whether the callee's target features are a subset of the caller's, enabling consistent behavior across targets. Subclasses now simply delegate to the base implementation, reducing code duplication and improving maintainability.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions