1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/tools/llvm-c-test
Nick Lewycky 3c1295f8dd 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
2019-09-26 00:58:55 +00:00
..
attributes.c llvm-c-test avoid calling malloc(0) 2019-07-04 14:36:34 +00:00
calc.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt Fix BUILD_SHARED_LIBS builds after r361567 2019-05-24 02:15:27 +00:00
debuginfo.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
diagnostic.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
disassemble.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
echo.cpp Improve C API support for atomicrmw and cmpxchg. 2019-09-26 00:58:55 +00:00
helpers.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
include-all.c [llvm-c-test] Make include-all.c do what its name says it does 2019-05-06 11:31:45 +00:00
llvm-c-test.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
main.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
metadata.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
module.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
object.c [LLVM-C] Add Section and Symbol Iterator Accessors for Object File Binaries 2019-04-09 21:53:31 +00:00
targets.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00