astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_Function_cxx_0x2068c2af.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalObject.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/Constant.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_Function_1cxx_10x2068c2af__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::Function);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeArg_1size(JNIEnv*, jclass, jlong ptr) {
return (jlong)(reinterpret_cast(ptr)->arg_size());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetArg(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return reinterpret_cast(reinterpret_cast(ptr)->getArg(arg0));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetBasicBlockList(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(&(reinterpret_cast(ptr)->getBasicBlockList()));
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetCallingConv(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getCallingConv());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetEntryBlock(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(&(reinterpret_cast(ptr)->getEntryBlock()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetFunctionType(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getFunctionType());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetLinkage(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getLinkage());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_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_Function_1cxx_10x2068c2af_nativeGetNumOperands(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getNumOperands());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetOperand(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return reinterpret_cast(reinterpret_cast(ptr)->getOperand(arg0));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetParent(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getParent());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetType(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getType());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetTypeOriginal(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getType());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetValueID(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getValueID());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetValueType(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getValueType());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeGetVisibility(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getVisibility());
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeHasAtLeastLocalUnnamedAddr(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->hasAtLeastLocalUnnamedAddr()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeHasDefaultVisibility(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->hasDefaultVisibility()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeHasExactDefinition(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->hasExactDefinition()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeHasExternalLinkage(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->hasExternalLinkage()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeIsDeclaration(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isDeclaration()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeIsIntrinsic(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isIntrinsic()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_Function_1cxx_10x2068c2af_nativeUseEmpty(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->use_empty()) ? JNI_TRUE : JNI_FALSE;
}
#ifdef __cplusplus
}
#endif