diff options
author | hev <wangrui@loongson.cn> | 2024-11-25 11:22:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-25 11:22:49 +0800 |
commit | e26af0938c7a272cf0de11c92aa069485868e130 (patch) | |
tree | a13e7c9543f9ab9e9b2ee22db2681d6721640505 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 0bfc9514715b3beb967f1a245e9db310d2aafa50 (diff) | |
download | llvm-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