diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2019-09-26 00:58:55 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2019-09-26 00:58:55 +0000 |
| commit | f57e968dd036b2230c59c00e1ed10fecf1668828 (patch) | |
| tree | cbde2866a50cbab1452dd416ca34c03fb5b7d0dd /clang/lib/Format/Format.cpp | |
| parent | da3cf6165406ccf57c4379cf517f1b4040e4f9d0 (diff) | |
| download | bcm5719-llvm-f57e968dd036b2230c59c00e1ed10fecf1668828.tar.gz bcm5719-llvm-f57e968dd036b2230c59c00e1ed10fecf1668828.zip | |
Improve C API support for atomicrmw and cmpxchg.
atomicrmw and cmpxchg have a volatile flag, so allow them to be get and set with LLVM{Get,Set}Volatile. atomicrmw and fence have orderings, so allow them to be get and set with LLVM{Get,Set}Ordering. Add missing LLVMAtomicRMWBinOpFAdd and LLVMAtomicRMWBinOpFSub enum constants. AtomicCmpXchg also has a weak flag, add a getter/setter for that too. Add a getter/setter for the binary-op of an atomicrmw.
atomicrmw and cmpxchg have a volatile flag, so allow it to be set/get with LLVMGetVolatile and LLVMSetVolatile. Add missing LLVMAtomicRMWBinOpFAdd and LLVMAtomicRMWBinOpFSub enum constants. AtomicCmpXchg also has a weak flag, add a getter/setter for that too. Add a getter/setter for the binary-op of an atomicrmw.
Add LLVMIsA## for CatchSwitchInst, CallBrInst and FenceInst, as well as AtomicCmpXchgInst and AtomicRMWInst.
Update llvm-c-test to include atomicrmw and fence, and to copy volatile for the four applicable instructions.
Differential Revision: https://reviews.llvm.org/D67132
llvm-svn: 372938
Diffstat (limited to 'clang/lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions

