llvm::TargetLoweringBase::shouldInsertFencesForAtomic

Return true if AtomicExpandPass should insert fences and relax ordering for this atomic instruction.

Synopsis

Declared in <llvm/CodeGen/TargetLowering.h>

virtual
bool
shouldInsertFencesForAtomic(Instruction const* I) const;

Description

Whether AtomicExpandPass should automatically insert fences and reduce ordering for this atomic. This should be true for most architectures with weak memory ordering. Defaults to false.

Return Value

True if AtomicExpandPass should insert fences and relax ordering for this atomic instruction.

Parameters

NameDescription
IInstruction being queried.