Home
last modified time | relevance | path

Searched refs:AtomicCmpXchgInst (Results 1 – 25 of 79) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerAtomicPass.cpp45 else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(&Inst)) in runOnBasicBlock()
H A DInferAddressSpaces.cpp505 else if (auto *CmpX = dyn_cast<AtomicCmpXchgInst>(&I)) in collectFlatAddressExpressions()
1030 if (auto *CmpX = dyn_cast<AtomicCmpXchgInst>(Inst)) in isSimplePointerUseValidToReplace()
1031 return OpNo == AtomicCmpXchgInst::getPointerOperandIndex() && in isSimplePointerUseValidToReplace()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp92 bool expandPartwordCmpXchg(AtomicCmpXchgInst *I);
94 void expandAtomicCmpXchgToMaskedIntrinsic(AtomicCmpXchgInst *CI);
96 AtomicCmpXchgInst *convertCmpXchgToIntegerType(AtomicCmpXchgInst *CI);
102 bool tryExpandAtomicCmpXchg(AtomicCmpXchgInst *CI);
104 bool expandAtomicCmpXchg(AtomicCmpXchgInst *CI);
116 void expandAtomicCASToLibcall(AtomicCmpXchgInst *I);
190 static unsigned getAtomicOpSize(AtomicCmpXchgInst *CASI) { in getAtomicOpSize()
226 auto CASI = dyn_cast<AtomicCmpXchgInst>(I); in run()
517 AtomicCmpXchgInst::getStrongestFailureOrdering(Order)); in expandAtomicLoadToCmpXchg()
591 AtomicCmpXchgInst::getStrongestFailureOrdering(MemOpOrder), SSID); in createCmpXchgInstFun()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp831 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I1)) in hasSameSpecialState()
832 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() && in hasSameSpecialState()
833 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() && in hasSameSpecialState()
835 cast<AtomicCmpXchgInst>(I2)->getSuccessOrdering() && in hasSameSpecialState()
837 cast<AtomicCmpXchgInst>(I2)->getFailureOrdering() && in hasSameSpecialState()
839 cast<AtomicCmpXchgInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
1019 return cast<AtomicCmpXchgInst>(this)->isVolatile(); in isVolatile()
1046 return cast<AtomicCmpXchgInst>(this)->getNewValOperand()->getType(); in getAccessType()
H A DMemoryModelRelaxationAnnotations.cpp168 return isa<LoadInst>(I) || isa<StoreInst>(I) || isa<AtomicCmpXchgInst>(I) || in canInstructionHaveMMRAs()
H A DCore.cpp2122 if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(P)) in LLVMGetAlignment()
2142 else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(P)) in LLVMSetAlignment()
4011 return cast<AtomicCmpXchgInst>(P)->isVolatile(); in LLVMGetVolatile()
4022 return cast<AtomicCmpXchgInst>(P)->setVolatile(isVolatile); in LLVMSetVolatile()
4026 return unwrap<AtomicCmpXchgInst>(CmpXchgInst)->isWeak(); in LLVMGetWeak()
4030 return unwrap<AtomicCmpXchgInst>(CmpXchgInst)->setWeak(isWeak); in LLVMSetWeak()
4348 return cast<AtomicCmpXchgInst>(P)->getSyncScopeID() == in LLVMIsAtomicSingleThread()
4364 return cast<AtomicCmpXchgInst>(P)->setSyncScopeID(SSID); in LLVMSetAtomicSingleThread()
4369 return mapToLLVMOrdering(cast<AtomicCmpXchgInst>(P)->getSuccessOrdering()); in LLVMGetCmpXchgSuccessOrdering()
4377 return cast<AtomicCmpXchgInst>(P)->setSuccessOrdering(O); in LLVMSetCmpXchgSuccessOrdering()
[all …]
H A DInstructions.cpp1331 void AtomicCmpXchgInst::Init(Value *Ptr, Value *Cmp, Value *NewVal, in Init()
1351 AtomicCmpXchgInst::AtomicCmpXchgInst(Value *Ptr, Value *Cmp, Value *NewVal, in AtomicCmpXchgInst() function in AtomicCmpXchgInst
1359 AtomicCmpXchg, OperandTraits<AtomicCmpXchgInst>::op_begin(this), in AtomicCmpXchgInst()
1360 OperandTraits<AtomicCmpXchgInst>::operands(this), InsertBefore) { in AtomicCmpXchgInst()
4237 AtomicCmpXchgInst *AtomicCmpXchgInst::cloneImpl() const { in cloneImpl()
4238 AtomicCmpXchgInst *Result = new AtomicCmpXchgInst( in cloneImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLowerAtomic.h24 bool lowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp741 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(L)) { in cmpOperations()
743 cast<AtomicCmpXchgInst>(R)->isVolatile())) in cmpOperations()
746 cmpNumbers(CXI->isWeak(), cast<AtomicCmpXchgInst>(R)->isWeak())) in cmpOperations()
750 cast<AtomicCmpXchgInst>(R)->getSuccessOrdering())) in cmpOperations()
754 cast<AtomicCmpXchgInst>(R)->getFailureOrdering())) in cmpOperations()
757 cast<AtomicCmpXchgInst>(R)->getSyncScopeID()); in cmpOperations()
H A DLowerAtomic.cpp22 bool llvm::lowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI) { in lowerAtomicCmpXchgInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp167 } else if (AtomicCmpXchgInst *AI = dyn_cast<AtomicCmpXchgInst>(&I)) { in addBoundsChecking()
H A DThreadSanitizer.cpp760 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic()
H A DHWAddressSanitizer.cpp844 } else if (AtomicCmpXchgInst *XCHG = dyn_cast<AtomicCmpXchgInst>(I)) { in getInterestingMemoryOperands()
869 if (AtomicCmpXchgInst *XCHG = dyn_cast<AtomicCmpXchgInst>(I)) in getPointerOperandIndex()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryLocation.h32 class AtomicCmpXchgInst; variable
258 static MemoryLocation get(const AtomicCmpXchgInst *CXI);
H A DAliasAnalysis.h57 class AtomicCmpXchgInst; variable
597 ModRefInfo getModRefInfo(const AtomicCmpXchgInst *CX,
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryLocation.cpp59 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get()
87 return get(cast<AtomicCmpXchgInst>(Inst)); in getOrNone()
H A DAliasAnalysis.cpp568 ModRefInfo AAResults::getModRefInfo(const AtomicCmpXchgInst *CX, in getModRefInfo()
624 return getModRefInfo((const AtomicCmpXchgInst *)I, Loc, AAQIP); in getModRefInfo()
H A DCaptureTracking.cpp359 auto *ACXI = cast<AtomicCmpXchgInst>(I); in DetermineUseCaptureKind()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.h199 shouldExpandAtomicCmpXchgInIR(AtomicCmpXchgInst *CI) const override;
201 AtomicCmpXchgInst *CI,
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp166 Instruction *visitAtomicCmpXchgInst(AtomicCmpXchgInst &I);
204 isa<ExtractValueInst>(I) || isa<AtomicCmpXchgInst>(I); in isMemInstrToReplace()
439 } else if (auto *Ref = dyn_cast<AtomicCmpXchgInst>(I)) { in deduceElementTypeHelper()
662 } else if (auto *Ref = dyn_cast<AtomicCmpXchgInst>(I)) { in deduceOperandElementType()
667 AtomicCmpXchgInst::getPointerOperandIndex())); in deduceOperandElementType()
1348 Instruction *SPIRVEmitIntrinsics::visitAtomicCmpXchgInst(AtomicCmpXchgInst &I) { in visitAtomicCmpXchgInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUMemoryUtils.cpp318 if (checkNoAlias(dyn_cast<AtomicCmpXchgInst>(DefInst)) || in isReallyAClobber()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h45 class AtomicCmpXchgInst; variable
601 void visitAtomicCmpXchg(const AtomicCmpXchgInst &I);
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstVisitor.h171 RetTy visitAtomicCmpXchgInst(AtomicCmpXchgInst &I) { DELEGATE(Instruction);} in visitAtomicCmpXchgInst()
H A DInstruction.def176 HANDLE_MEMORY_INST(36, AtomicCmpXchg , AtomicCmpXchgInst )
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGAtomic.cpp388 llvm::AtomicCmpXchgInst *Pair = CGF.Builder.CreateAtomicCmpXchg( in emitAtomicCmpXchg()
1767 auto Failure = llvm::AtomicCmpXchgInst::getStrongestFailureOrdering(AO); in EmitAtomicUpdateLibcall()
1796 auto Failure = llvm::AtomicCmpXchgInst::getStrongestFailureOrdering(AO); in EmitAtomicUpdateOp()
1858 auto Failure = llvm::AtomicCmpXchgInst::getStrongestFailureOrdering(AO); in EmitAtomicUpdateLibcall()
1883 auto Failure = llvm::AtomicCmpXchgInst::getStrongestFailureOrdering(AO); in EmitAtomicUpdateOp()

1234