[llvm] [InferAddressSpaces] Handle unconverted ptrmask (PR #140802)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 5 10:47:48 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:
I mean, yes and no. The no part is that I don't see any target-dependent part here that can't be handled with information from the data layout.
https://github.com/llvm/llvm-project/pull/140802
More information about the llvm-commits
mailing list