[llvm] [InferAddressSpaces] Handle unconverted ptrmask (PR #140802)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 5 09:52:25 PDT 2025
================
@@ -495,6 +495,13 @@ class TargetTransformInfo {
LLVM_ABI bool isNoopAddrSpaceCast(unsigned FromAS, unsigned ToAS) const;
+ LLVM_ABI std::pair<KnownBits, KnownBits>
+ computeKnownBitsAddrSpaceCast(unsigned FromAS, unsigned ToAS,
+ const Value &PtrOp) const;
+
+ LLVM_ABI KnownBits computeKnownBitsAddrSpaceCast(
----------------
shiltian wrote:
Why do these two functions have to be in TTI?
https://github.com/llvm/llvm-project/pull/140802
More information about the llvm-commits
mailing list