astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_BranchInst_cxx_0xfda3541f.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_BranchInst_1cxx_10xfda3541f__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::BranchInst);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeGetCondition(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getCondition());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeGetNameOriginal(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) llvm::StringRef(reinterpret_cast(ptr)->getName()));
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeGetNumOperands(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getNumOperands());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeGetNumSuccessors(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getNumSuccessors());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeGetOpcode(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getOpcode());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeGetOperand(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return reinterpret_cast(reinterpret_cast(ptr)->getOperand(arg0));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeGetParent(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getParent());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeGetSuccessor1(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return reinterpret_cast(reinterpret_cast(ptr)->getSuccessor(arg0));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeGetType(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getType());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeGetTypeOriginal(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getType());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeGetValueID(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getValueID());
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeIsConditional(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isConditional()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeIsUnconditional(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isUnconditional()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_BranchInst_1cxx_10xfda3541f_nativeUseEmpty(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->use_empty()) ? JNI_TRUE : JNI_FALSE;
}
#ifdef __cplusplus
}
#endif