@@ -454,24 +454,6 @@ class TargetTransformInfo {
454454 // / Return false if a \p AS0 address cannot possibly alias a \p AS1 address.
455455 bool addrspacesMayAlias (unsigned AS0, unsigned AS1) const ;
456456
457- // / Returns the address space ID for a target's 'flat' address space. Note
458- // / this is not necessarily the same as addrspace(0), which LLVM sometimes
459- // / refers to as the generic address space. The flat address space is a
460- // / generic address space that can be used access multiple segments of memory
461- // / with different address spaces. Access of a memory location through a
462- // / pointer with this address space is expected to be legal but slower
463- // / compared to the same memory location accessed through a pointer with a
464- // / different address space.
465- //
466- // / This is for targets with different pointer representations which can
467- // / be converted with the addrspacecast instruction. If a pointer is converted
468- // / to this address space, optimizations should attempt to replace the access
469- // / with the source address space.
470- // /
471- // / \returns ~0u if the target does not have such a flat address space to
472- // / optimize away.
473- unsigned getFlatAddressSpace () const ;
474-
475457 // / Return any intrinsic address operand indexes which may be rewritten if
476458 // / they use a flat address space pointer.
477459 // /
@@ -1870,7 +1852,6 @@ class TargetTransformInfo::Concept {
18701852 virtual bool isAlwaysUniform (const Value *V) = 0;
18711853 virtual bool isValidAddrSpaceCast (unsigned FromAS, unsigned ToAS) const = 0;
18721854 virtual bool addrspacesMayAlias (unsigned AS0, unsigned AS1) const = 0;
1873- virtual unsigned getFlatAddressSpace () = 0;
18741855 virtual bool collectFlatAddressOperands (SmallVectorImpl<int > &OpIndexes,
18751856 Intrinsic::ID IID) const = 0;
18761857 virtual bool isNoopAddrSpaceCast (unsigned FromAS, unsigned ToAS) const = 0;
@@ -2312,8 +2293,6 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
23122293 return Impl.addrspacesMayAlias (AS0, AS1);
23132294 }
23142295
2315- unsigned getFlatAddressSpace () override { return Impl.getFlatAddressSpace (); }
2316-
23172296 bool collectFlatAddressOperands (SmallVectorImpl<int > &OpIndexes,
23182297 Intrinsic::ID IID) const override {
23192298 return Impl.collectFlatAddressOperands (OpIndexes, IID);
0 commit comments