@@ -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 // /
@@ -1838,7 +1820,6 @@ class TargetTransformInfo::Concept {
18381820 virtual bool isAlwaysUniform (const Value *V) = 0;
18391821 virtual bool isValidAddrSpaceCast (unsigned FromAS, unsigned ToAS) const = 0;
18401822 virtual bool addrspacesMayAlias (unsigned AS0, unsigned AS1) const = 0;
1841- virtual unsigned getFlatAddressSpace () = 0;
18421823 virtual bool collectFlatAddressOperands (SmallVectorImpl<int > &OpIndexes,
18431824 Intrinsic::ID IID) const = 0;
18441825 virtual bool isNoopAddrSpaceCast (unsigned FromAS, unsigned ToAS) const = 0;
@@ -2266,8 +2247,6 @@ class TargetTransformInfo::Model final : public TargetTransformInfo::Concept {
22662247 return Impl.addrspacesMayAlias (AS0, AS1);
22672248 }
22682249
2269- unsigned getFlatAddressSpace () override { return Impl.getFlatAddressSpace (); }
2270-
22712250 bool collectFlatAddressOperands (SmallVectorImpl<int > &OpIndexes,
22722251 Intrinsic::ID IID) const override {
22732252 return Impl.collectFlatAddressOperands (OpIndexes, IID);
0 commit comments