• Home
  • Raw
  • Download

Lines Matching refs:TLI

34     const TargetLowering *TLI;  member in __anond40669aa0111::AtomicExpand
38 : FunctionPass(ID), TM(TM), TLI(nullptr) { in AtomicExpand()
73 TLI = TM->getSubtargetImpl(F)->getTargetLowering(); in runOnFunction()
95 if (TLI->getInsertFencesForAtomic()) { in runOnFunction()
111 } else if (CASI && !TLI->hasLoadLinkedStoreConditional() && in runOnFunction()
129 if (LI && TLI->shouldExpandAtomicLoadInIR(LI)) { in runOnFunction()
131 } else if (SI && TLI->shouldExpandAtomicStoreInIR(SI)) { in runOnFunction()
144 } else if (CASI && TLI->hasLoadLinkedStoreConditional()) { in runOnFunction()
155 auto LeadingFence = TLI->emitLeadingFence(Builder, Order, IsStore, IsLoad); in bracketInstWithFences()
157 auto TrailingFence = TLI->emitTrailingFence(Builder, Order, IsStore, IsLoad); in bracketInstWithFences()
173 if (TLI->hasLoadLinkedStoreConditional()) in expandAtomicLoad()
186 TLI->emitLoadLinked(Builder, LI->getPointerOperand(), LI->getOrdering()); in expandAtomicLoadToLL()
230 switch (TLI->shouldExpandAtomicRMWInIR(AI)) { in tryExpandAtomicRMW()
234 assert(TLI->hasLoadLinkedStoreConditional() && in tryExpandAtomicRMW()
321 Value *Loaded = TLI->emitLoadLinked(Builder, Addr, MemOpOrder); in expandAtomicRMWToLLSC()
327 TLI->emitStoreConditional(Builder, NewVal, Addr, MemOpOrder); in expandAtomicRMWToLLSC()
416 TLI->getInsertFencesForAtomic() ? Monotonic : SuccessOrder; in expandAtomicCmpXchg()
457 TLI->emitLeadingFence(Builder, SuccessOrder, /*IsStore=*/true, in expandAtomicCmpXchg()
463 Value *Loaded = TLI->emitLoadLinked(Builder, Addr, MemOpOrder); in expandAtomicCmpXchg()
472 Value *StoreSuccess = TLI->emitStoreConditional( in expandAtomicCmpXchg()
481 TLI->emitTrailingFence(Builder, SuccessOrder, /*IsStore=*/true, in expandAtomicCmpXchg()
486 TLI->emitTrailingFence(Builder, FailureOrder, /*IsStore=*/true, in expandAtomicCmpXchg()
558 if (auto ResultingLoad = TLI->lowerIdempotentRMWIntoFencedLoad(RMWI)) { in simplifyIdempotentRMW()
559 if (TLI->shouldExpandAtomicLoadInIR(ResultingLoad)) in simplifyIdempotentRMW()