reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/CodeGen/AtomicExpandPass.cpp
 1054   auto *M = CI->getModule();
 1055   Type *NewTy = getCorrespondingIntegerType(CI->getCompareOperand()->getType(),
 1058   IRBuilder<> Builder(CI);
 1060   Value *Addr = CI->getPointerOperand();
 1065   Value *NewCmp = Builder.CreatePtrToInt(CI->getCompareOperand(), NewTy);
 1066   Value *NewNewVal = Builder.CreatePtrToInt(CI->getNewValOperand(), NewTy);
 1070                                             CI->getSuccessOrdering(),
 1071                                             CI->getFailureOrdering(),
 1072                                             CI->getSyncScopeID());
 1073   NewCI->setVolatile(CI->isVolatile());
 1074   NewCI->setWeak(CI->isWeak());
 1075   LLVM_DEBUG(dbgs() << "Replaced " << *CI << " with " << *NewCI << "\n");
 1080   OldVal = Builder.CreateIntToPtr(OldVal, CI->getCompareOperand()->getType());
 1082   Value *Res = UndefValue::get(CI->getType());
 1086   CI->replaceAllUsesWith(Res);
 1087   CI->eraseFromParent();