@@ -451,24 +451,6 @@ class TargetTransformInfo {
451451 // / Return false if a \p AS0 address cannot possibly alias a \p AS1 address.
452452 bool addrspacesMayAlias (unsigned AS0, unsigned AS1) const ;
453453
454- // / Returns the address space ID for a target's 'flat' address space. Note
455- // / this is not necessarily the same as addrspace(0), which LLVM sometimes
456- // / refers to as the generic address space. The flat address space is a
457- // / generic address space that can be used access multiple segments of memory
458- // / with different address spaces. Access of a memory location through a
459- // / pointer with this address space is expected to be legal but slower
460- // / compared to the same memory location accessed through a pointer with a
461- // / different address space.
462- //
463- // / This is for targets with different pointer representations which can
464- // / be converted with the addrspacecast instruction. If a pointer is converted
465- // / to this address space, optimizations should attempt to replace the access
466- // / with the source address space.
467- // /
468- // / \returns ~0u if the target does not have such a flat address space to
469- // / optimize away.
470- unsigned getFlatAddressSpace () const ;
471-
472454 // / Return any intrinsic address operand indexes which may be rewritten if
473455 // / they use a flat address space pointer.
474456 // /
@@ -1836,7 +1818,6 @@ class TargetTransformInfo::Concept {
18361818 virtual bool isAlwaysUniform (const Value *V) = 0;
18371819 virtual bool isValidAddrSpaceCast (unsigned FromAS, unsigned ToAS) const = 0;
18381820 virtual bool addrspacesMayAlias (unsigned AS0, unsigned AS1) const = 0;
1839- virtual unsigned getFlatAddressSpace () = 0;
18401821 virtual bool collectFlatAddressOperands (SmallVectorImpl<int > &OpIndexes,
18411822 Intrinsic::ID IID) const = 0;
18421823 virtual bool isNoopAddrSpaceCast (unsigned FromAS, unsigned ToAS) const = 0;
@@ -2263,8 +2244,6 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
22632244 return Impl.addrspacesMayAlias (AS0, AS1);
22642245 }
22652246
2266- unsigned getFlatAddressSpace () override { return Impl.getFlatAddressSpace (); }
2267-
22682247 bool collectFlatAddressOperands (SmallVectorImpl<int > &OpIndexes,
22692248 Intrinsic::ID IID) const override {
22702249 return Impl.collectFlatAddressOperands (OpIndexes, IID);
0 commit comments