diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-02-14 01:35:12 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-02-14 01:35:12 +0000 |
commit | a5b195a1dcc252916f68cadb81163a47d8995ee3 (patch) | |
tree | 6fd0ab86477d2a77778c391df234200c6412390e /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 6866a3c6f4c6ac4c368f4292b6567e456646b07b (diff) | |
download | llvm-a5b195a1dcc252916f68cadb81163a47d8995ee3.zip llvm-a5b195a1dcc252916f68cadb81163a47d8995ee3.tar.gz llvm-a5b195a1dcc252916f68cadb81163a47d8995ee3.tar.bz2 |
Revert "Revert r229082 for a bit, it caused PR22577."
This reverts commit r229123. It was a red herring, the bug was present
without r229082.
llvm-svn: 229205
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 12f066b..ea8166b 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2147,11 +2147,21 @@ public: void EmitAtomicInit(Expr *E, LValue lvalue); + bool LValueIsSuitableForInlineAtomic(LValue Src); + bool typeIsSuitableForInlineAtomic(QualType Ty, bool IsVolatile) const; + + RValue EmitAtomicLoad(LValue LV, SourceLocation SL, + AggValueSlot Slot = AggValueSlot::ignored()); + RValue EmitAtomicLoad(LValue lvalue, SourceLocation loc, + llvm::AtomicOrdering AO, bool IsVolatile = false, AggValueSlot slot = AggValueSlot::ignored()); void EmitAtomicStore(RValue rvalue, LValue lvalue, bool isInit); + void EmitAtomicStore(RValue rvalue, LValue lvalue, llvm::AtomicOrdering AO, + bool IsVolatile, bool isInit); + std::pair<RValue, RValue> EmitAtomicCompareExchange( LValue Obj, RValue Expected, RValue Desired, SourceLocation Loc, llvm::AtomicOrdering Success = llvm::SequentiallyConsistent, |