astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_ConstantDataVector_cxx_0xb004668.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/IR/Constants.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Constants.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_ConstantDataVector_1cxx_10xb004668__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::ConstantDataVector);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetAsCStringOrignal(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) llvm::StringRef(reinterpret_cast(ptr)->getAsCString()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetAsStringOrignal(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) llvm::StringRef(reinterpret_cast(ptr)->getAsString()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetElementAsConstant(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return reinterpret_cast(reinterpret_cast(ptr)->getElementAsConstant(arg0));
}
JNIEXPORT
jdouble JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetElementAsDouble(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return (jdouble)(reinterpret_cast(ptr)->getElementAsDouble(arg0));
}
JNIEXPORT
jfloat JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetElementAsFloat(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return (jfloat)(reinterpret_cast(ptr)->getElementAsFloat(arg0));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetElementAsInteger(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return (jlong)(reinterpret_cast(ptr)->getElementAsInteger(arg0));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetElementType(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getElementType());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_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_ConstantDataVector_1cxx_10xb004668_nativeGetNumElements(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getNumElements());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetNumOperands(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getNumOperands());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetOperand(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return reinterpret_cast(reinterpret_cast(ptr)->getOperand(arg0));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetType(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getType());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetTypeOriginal(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getType());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeGetValueID(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getValueID());
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeIsCString(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isCString()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeIsString(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isString()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_ConstantDataVector_1cxx_10xb004668_nativeUseEmpty(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->use_empty()) ? JNI_TRUE : JNI_FALSE;
}
#ifdef __cplusplus
}
#endif