llvm.org GIT mirror llvm / a227e07
[NFC] Update documentation for AtomicCmpXchgInst Fix bz#42325 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363914 91177308-0d34-0410-b5e6-96231b3b80d8 Serge Guelton 2 months ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
520520 // AtomicCmpXchgInst Class
521521 //===----------------------------------------------------------------------===//
522522
523 /// an instruction that atomically checks whether a
523 /// An instruction that atomically checks whether a
524524 /// specified value is in a memory location, and, if it is, stores a new value
525 /// there. Returns the value that was loaded.
525 /// there. The value returned by this instruction is a pair containing the
526 /// original value as first element, and an i1 indicating success (true) or
527 /// failure (false) as second element.
526528 ///
527529 class AtomicCmpXchgInst : public Instruction {
528530 void Init(Value *Ptr, Value *Cmp, Value *NewVal,