Home
last modified time | relevance | path

Searched refs:CXI (Results 1 – 15 of 15) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerAtomic.cpp22 bool llvm::lowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI) { in lowerAtomicCmpXchgInst() argument
23 IRBuilder<> Builder(CXI); in lowerAtomicCmpXchgInst()
24 Value *Ptr = CXI->getPointerOperand(); in lowerAtomicCmpXchgInst()
25 Value *Cmp = CXI->getCompareOperand(); in lowerAtomicCmpXchgInst()
26 Value *Val = CXI->getNewValOperand(); in lowerAtomicCmpXchgInst()
33 Res = Builder.CreateInsertValue(PoisonValue::get(CXI->getType()), Orig, 0); in lowerAtomicCmpXchgInst()
36 CXI->replaceAllUsesWith(Res); in lowerAtomicCmpXchgInst()
37 CXI->eraseFromParent(); in lowerAtomicCmpXchgInst()
H A DFunctionComparator.cpp741 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(L)) { in cmpOperations() local
742 if (int Res = cmpNumbers(CXI->isVolatile(), in cmpOperations()
746 cmpNumbers(CXI->isWeak(), cast<AtomicCmpXchgInst>(R)->isWeak())) in cmpOperations()
749 cmpOrderings(CXI->getSuccessOrdering(), in cmpOperations()
753 cmpOrderings(CXI->getFailureOrdering(), in cmpOperations()
756 return cmpNumbers(CXI->getSyncScopeID(), in cmpOperations()
H A DInlineFunction.cpp1179 else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I)) in AddAliasScopeMetadata() local
1180 PtrArgs.push_back(CXI->getPointerOperand()); in AddAliasScopeMetadata()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryLocation.cpp59 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get() argument
60 const auto &DL = CXI->getDataLayout(); in get()
62 return MemoryLocation(CXI->getPointerOperand(), in get()
64 CXI->getCompareOperand()->getType())), in get()
65 CXI->getAAMetadata()); in get()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerAtomicPass.cpp45 else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(&Inst)) in runOnBasicBlock() local
46 Changed |= lowerAtomicCmpXchgInst(CXI); in runOnBasicBlock()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLowerAtomic.h24 bool lowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp831 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I1)) in hasSameSpecialState() local
832 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() && in hasSameSpecialState()
833 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() && in hasSameSpecialState()
834 CXI->getSuccessOrdering() == in hasSameSpecialState()
836 CXI->getFailureOrdering() == in hasSameSpecialState()
838 CXI->getSyncScopeID() == in hasSameSpecialState()
H A DAsmWriter.cpp4630 } else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(&I)) { in printInstruction() local
4631 writeAtomicCmpXchg(CXI->getContext(), CXI->getSuccessOrdering(), in printInstruction()
4632 CXI->getFailureOrdering(), CXI->getSyncScopeID()); in printInstruction()
4633 Out << ", align " << CXI->getAlign().value(); in printInstruction()
H A DVerifier.cpp593 void visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI);
4302 void Verifier::visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI) { in visitAtomicCmpXchgInst() argument
4303 Type *ElTy = CXI.getOperand(1)->getType(); in visitAtomicCmpXchgInst()
4305 "cmpxchg operand must have integer or pointer type", ElTy, &CXI); in visitAtomicCmpXchgInst()
4306 checkAtomicMemAccessSize(ElTy, &CXI); in visitAtomicCmpXchgInst()
4307 visitInstruction(CXI); in visitAtomicCmpXchgInst()
H A DCore.cpp2122 if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(P)) in LLVMGetAlignment() local
2123 return CXI->getAlign().value(); in LLVMGetAlignment()
2142 else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(P)) in LLVMSetAlignment() local
2143 CXI->setAlignment(Align(Bytes)); in LLVMSetAlignment()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryLocation.h258 static MemoryLocation get(const AtomicCmpXchgInst *CXI);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp282 if (auto *CXI = dyn_cast<AtomicCmpXchgInst>(I)) { in getPointerOperand() local
283 return CXI->getPointerOperand(); in getPointerOperand()
1873 if (auto *CXI = dyn_cast<AtomicCmpXchgInst>(Usr)) in updateImpl() local
1875 *CXI, nullptr, *CXI->getNewValOperand()->getType(), in updateImpl()
1876 {CXI->getCompareOperand(), CXI->getNewValOperand()}, in updateImpl()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp8309 AtomicCmpXchgInst *CXI = in parseCmpXchg() local
8312 CXI->setVolatile(isVolatile); in parseCmpXchg()
8313 CXI->setWeak(isWeak); in parseCmpXchg()
8315 Inst = CXI; in parseCmpXchg()
/freebsd/contrib/file/magic/Magdir/
H A Dconsole1071 >0x18D byte&2 2 Executable Image (CXI)
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp426 auto *CXI = CGF.Builder.CreateAtomicCmpXchg(DestAddr, Comparand, Exchange, in EmitAtomicCmpXchg128ForMSIntrin() local
433 CXI->setVolatile(true); in EmitAtomicCmpXchg128ForMSIntrin()
436 CGF.Builder.CreateStore(CGF.Builder.CreateExtractValue(CXI, 0), in EmitAtomicCmpXchg128ForMSIntrin()
440 Value *Success = CGF.Builder.CreateExtractValue(CXI, 1); in EmitAtomicCmpXchg128ForMSIntrin()