1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/include/llvm-c
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
..
Transforms [LLVM-C] Improve Bindings to The Internalize Pass 2019-07-23 04:56:44 +00:00
Analysis.h
BitReader.h
BitWriter.h
Comdat.h
Core.h Improve C API support for atomicrmw and cmpxchg. 2019-09-26 00:58:55 +00:00
DataTypes.h
DebugInfo.h Remove the obsolete BlockByRefStruct flag from LLVM IR 2019-09-18 22:38:56 +00:00
Disassembler.h
DisassemblerTypes.h
Error.h [llvm-c] Make LLVMGetStringErrorTypeId a proper prototype 2019-05-06 06:42:06 +00:00
ErrorHandling.h
ExecutionEngine.h
Initialization.h
IRReader.h
Linker.h
LinkTimeOptimizer.h
lto.h [LTO][Legacy] Add new C inferface to query libcall functions 2019-09-16 18:49:54 +00:00
module.modulemap
Object.h [LLVM-C] Add Accessor for Mach-O Universal Binary Slices 2019-05-25 16:47:27 +00:00
OrcBindings.h
Remarks.h [Remarks] Add parser for bitstream remarks 2019-09-09 17:43:50 +00:00
Support.h
Target.h
TargetMachine.h
Types.h