astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_BasicBlock_cxx_0x68666216.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/IR/BasicBlock.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_BasicBlock_1cxx_10x68666216__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::BasicBlock);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BasicBlock_1cxx_10x68666216_nativeGetInstList(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(&(reinterpret_cast(ptr)->getInstList()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BasicBlock_1cxx_10x68666216_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_BasicBlock_1cxx_10x68666216_nativeGetParent(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getParent());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BasicBlock_1cxx_10x68666216_nativeGetSinglePredecessor(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getSinglePredecessor());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BasicBlock_1cxx_10x68666216_nativeGetSingleSuccessor(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getSingleSuccessor());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BasicBlock_1cxx_10x68666216_nativeGetTerminator(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getTerminator());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_BasicBlock_1cxx_10x68666216_nativeGetTypeOriginal(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getType());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_BasicBlock_1cxx_10x68666216_nativeGetValueID(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getValueID());
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_BasicBlock_1cxx_10x68666216_nativeHasNPredecessors(JNIEnv*, jclass, jlong ptr, jint arg0 /* N0 */) {
return (reinterpret_cast(ptr)->hasNPredecessors(arg0)) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_BasicBlock_1cxx_10x68666216_nativeUseEmpty(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->use_empty()) ? JNI_TRUE : JNI_FALSE;
}
#ifdef __cplusplus
}
#endif