Home
last modified time | relevance | path

Searched refs:FenceInst (Results 1 – 25 of 44) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerAtomicPass.cpp24 static bool LowerFenceInst(FenceInst *FI) { in LowerFenceInst()
42 if (FenceInst *FI = dyn_cast<FenceInst>(&Inst)) in runOnBasicBlock()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DContext.cpp77 auto *LLVMFence = cast<llvm::FenceInst>(LLVMV); in getOrCreateValueInternal()
78 It->second = std::unique_ptr<FenceInst>(new FenceInst(LLVMFence, *this)); in getOrCreateValueInternal()
467 FenceInst *Context::createFenceInst(llvm::FenceInst *SI) { in createFenceInst()
468 auto NewPtr = std::unique_ptr<FenceInst>(new FenceInst(SI, *this)); in createFenceInst()
469 return cast<FenceInst>(registerValue(std::move(NewPtr))); in createFenceInst()
H A DInstruction.cpp307 FenceInst *FenceInst::create(AtomicOrdering Ordering, InsertPosition Pos, in create()
310 llvm::FenceInst *LLVMI = Builder.CreateFence(Ordering, SSID); in create()
314 void FenceInst::setOrdering(AtomicOrdering Ordering) { in setOrdering()
317 GenericSetter<&FenceInst::getOrdering, &FenceInst::setOrdering>>( in setOrdering()
319 cast<llvm::FenceInst>(Val)->setOrdering(Ordering); in setOrdering()
322 void FenceInst::setSyncScopeID(SyncScope::ID SSID) { in setSyncScopeID()
324 .emplaceIfTracking<GenericSetter<&FenceInst::getSyncScopeID, in setSyncScopeID()
325 &FenceInst::setSyncScopeID>>(this); in setSyncScopeID()
326 cast<llvm::FenceInst>(Val)->setSyncScopeID(SSID); in setSyncScopeID()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DContext.h163 LLVM_ABI FenceInst *createFenceInst(llvm::FenceInst *SI);
164 friend FenceInst; // For createFenceInst()
H A DValues.def68 DEF_INSTR(Fence, OP(Fence), FenceInst)
H A DInstruction.h64 friend class FenceInst; // For getTopmostLLVMInstruction(). variable
412 class FenceInst : public SingleLLVMInstructionImpl<llvm::FenceInst> {
413 FenceInst(llvm::FenceInst *FI, Context &Ctx) in FenceInst() function
418 LLVM_ABI static FenceInst *create(AtomicOrdering Ordering, InsertPosition Pos,
423 return cast<llvm::FenceInst>(Val)->getOrdering(); in getOrdering()
430 return cast<llvm::FenceInst>(Val)->getSyncScopeID(); in getSyncScopeID()
H A DValue.h113 friend class FenceInst; // For getting `Val`. variable
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DMemoryModelRelaxationAnnotations.cpp168 isa<AtomicRMWInst>(I) || isa<FenceInst>(I) || isReadWriteMemCall(I); in canInstructionHaveMMRAs()
H A DInstruction.cpp900 if (const FenceInst *FI = dyn_cast<FenceInst>(I1)) in hasSameSpecialState()
901 return FI->getOrdering() == cast<FenceInst>(I2)->getOrdering() && in hasSameSpecialState()
902 FI->getSyncScopeID() == cast<FenceInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
H A DInstructions.cpp1512 FenceInst::FenceInst(LLVMContext &C, AtomicOrdering Ordering, in FenceInst() function in FenceInst
4386 FenceInst *FenceInst::cloneImpl() const { in cloneImpl()
4387 return new FenceInst(getContext(), getOrdering(), getSyncScopeID()); in cloneImpl()
H A DCore.cpp4116 else if (FenceInst *FI = dyn_cast<FenceInst>(P)) in LLVMGetOrdering()
4129 else if (FenceInst *FI = dyn_cast<FenceInst>(P)) in LLVMSetOrdering()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp748 if (const FenceInst *FI = dyn_cast<FenceInst>(L)) { in cmpOperations()
750 cmpOrderings(FI->getOrdering(), cast<FenceInst>(R)->getOrdering())) in cmpOperations()
753 cast<FenceInst>(R)->getSyncScopeID()); in cmpOperations()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DAliasAnalysis.cpp464 ModRefInfo AAResults::getModRefInfo(const FenceInst *S, in getModRefInfo()
574 return getModRefInfo((const FenceInst *)I, Loc, AAQIP); in getModRefInfo()
H A DMemoryDependenceAnalysis.cpp609 if (FenceInst *FI = dyn_cast<FenceInst>(Inst)) in getSimplePointerDependencyFrom()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMemoryUtils.cpp346 if (isa<FenceInst>(DefInst)) in isReallyAClobber()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h63 class FenceInst; variable
602 void visitFence(const FenceInst &I);
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DAliasAnalysis.h61 class FenceInst; variable
608 LLVM_ABI ModRefInfo getModRefInfo(const FenceInst *S,
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstVisitor.h173 RetTy visitFenceInst(FenceInst &I) { DELEGATE(Instruction);} in visitFenceInst()
H A DInstruction.def175 HANDLE_MEMORY_INST(35, Fence , FenceInst )
H A DInstructions.h429 class FenceInst : public Instruction {
440 LLVM_ABI FenceInst *cloneImpl() const;
445 LLVM_ABI FenceInst(LLVMContext &C, AtomicOrdering Ordering,
5120 if (auto *AI = dyn_cast<FenceInst>(I))
5136 else if (auto *AI = dyn_cast<FenceInst>(I))
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp796 } else if (FenceInst *FI = dyn_cast<FenceInst>(I)) { in instrumentAtomic()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp4047 MCInst ShlInst, FenceInst; in applyLVICFIMitigation() local
4058 FenceInst.setOpcode(X86::LFENCE); in applyLVICFIMitigation()
4060 Out.emitInstruction(FenceInst, getSTI()); in applyLVICFIMitigation()
4117 MCInst FenceInst; in applyLVILoadHardeningMitigation() local
4118 FenceInst.setOpcode(X86::LFENCE); in applyLVILoadHardeningMitigation()
4119 Out.emitInstruction(FenceInst, getSTI()); in applyLVILoadHardeningMitigation()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp3915 Instruction *InstCombinerImpl::visitFenceInst(FenceInst &FI) { in visitFenceInst()
3916 auto *NFI = dyn_cast<FenceInst>(FI.getNextNonDebugInstruction()); in visitFenceInst()
3923 auto isIdenticalOrStrongerFence = [](FenceInst *FI1, FenceInst *FI2) { in visitFenceInst()
3936 if (auto *PFI = dyn_cast_or_null<FenceInst>(FI.getPrevNonDebugInstruction())) in visitFenceInst()
H A DInstCombineInternal.h168 Instruction *visitFenceInst(FenceInst &FI);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DOpenMPOpt.cpp2803 bool isNoOpFence(const FenceInst &FI) const override { in isNoOpFence()
2986 SmallPtrSet<const FenceInst *, 8> NonNoOpFences;
3155 if (auto *FI = dyn_cast<FenceInst>(&I)) { in updateImpl()
5589 if (auto *FI = dyn_cast<FenceInst>(&I)) { in registerAAsForFunction()

12