astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_cxx_0xf86bcdd4.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/User.h"
#include "llvm/IR/Value.h"
#include "llvm/ADT/StringRef.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::AtomicCmpXchgInst);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetCompareOperand(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getCompareOperand());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetFailureOrdering(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getFailureOrdering());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetNameOriginal(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) llvm::StringRef(reinterpret_cast(ptr)->getName()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetNewValOperand(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getNewValOperand());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetNumOperands(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getNumOperands());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetOpcode(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getOpcode());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetOperand(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return reinterpret_cast(reinterpret_cast(ptr)->getOperand(arg0));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetParent(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getParent());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetPointerOperand(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getPointerOperand());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetSuccessOrdering(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getSuccessOrdering());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetType(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getType());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetTypeOriginal(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getType());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeGetValueID(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getValueID());
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeIsVolatile(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isVolatile()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeIsWeak(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isWeak()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_AtomicCmpXchgInst_1cxx_10xf86bcdd4_nativeUseEmpty(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->use_empty()) ? JNI_TRUE : JNI_FALSE;
}
#ifdef __cplusplus
}
#endif