Lines Matching refs:RMW

16065 static bool fpModeMatchesGlobalFPAtomicMode(const AtomicRMWInst *RMW) {
16066 const fltSemantics &Flt = RMW->getType()->getScalarType()->getFltSemantics();
16067 auto DenormMode = RMW->getParent()->getParent()->getDenormalMode(Flt);
16083 static OptimizationRemark emitAtomicRMWLegalRemark(const AtomicRMWInst *RMW) { in emitAtomicRMWLegalRemark() argument
16084 LLVMContext &Ctx = RMW->getContext(); in emitAtomicRMWLegalRemark()
16087 StringRef MemScope = SSNs[RMW->getSyncScopeID()].empty() in emitAtomicRMWLegalRemark()
16089 : SSNs[RMW->getSyncScopeID()]; in emitAtomicRMWLegalRemark()
16091 return OptimizationRemark(DEBUG_TYPE, "Passed", RMW) in emitAtomicRMWLegalRemark()
16093 << RMW->getOperationName(RMW->getOperation()) in emitAtomicRMWLegalRemark()
16118 SITargetLowering::shouldExpandAtomicRMWInIR(AtomicRMWInst *RMW) const { in shouldExpandAtomicRMWInIR()
16119 unsigned AS = RMW->getPointerAddressSpace(); in shouldExpandAtomicRMWInIR()
16124 OptimizationRemarkEmitter ORE(RMW->getFunction()); in shouldExpandAtomicRMWInIR()
16126 return emitAtomicRMWLegalRemark(RMW) << " due to an unsafe request."; in shouldExpandAtomicRMWInIR()
16131 auto SSID = RMW->getSyncScopeID(); in shouldExpandAtomicRMWInIR()
16134 SSID == RMW->getContext().getOrInsertSyncScopeID("one-as"); in shouldExpandAtomicRMWInIR()
16136 switch (RMW->getOperation()) { in shouldExpandAtomicRMWInIR()
16143 if (Constant *ConstVal = dyn_cast<Constant>(RMW->getValOperand()); in shouldExpandAtomicRMWInIR()
16151 Type *Ty = RMW->getType(); in shouldExpandAtomicRMWInIR()
16215 if (unsafeFPAtomicsDisabled(RMW->getFunction())) in shouldExpandAtomicRMWInIR()
16229 if (RMW->use_empty() && Subtarget->hasAtomicFaddNoRtnInsts()) in shouldExpandAtomicRMWInIR()
16232 if (!RMW->use_empty() && Subtarget->hasAtomicFaddRtnInsts()) in shouldExpandAtomicRMWInIR()
16236 if (RMW->use_empty() && in shouldExpandAtomicRMWInIR()
16253 if (RMW->use_empty() && Subtarget->hasAtomicFaddNoRtnInsts()) in shouldExpandAtomicRMWInIR()
16255 if (!RMW->use_empty() && Subtarget->hasAtomicFaddRtnInsts()) in shouldExpandAtomicRMWInIR()
16264 Type *Ty = RMW->getType(); in shouldExpandAtomicRMWInIR()
16270 if (unsafeFPAtomicsDisabled(RMW->getFunction())) in shouldExpandAtomicRMWInIR()
16318 return AMDGPUTargetLowering::shouldExpandAtomicRMWInIR(RMW); in shouldExpandAtomicRMWInIR()