astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_ConstantInt_cxx_0x77129774.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#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_ConstantInt_1cxx_10x77129774__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::ConstantInt);
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_ConstantInt_1cxx_10x77129774_nativeGetBitWidth(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getBitWidth());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantInt_1cxx_10x77129774_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_ConstantInt_1cxx_10x77129774_nativeGetNumOperands(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getNumOperands());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantInt_1cxx_10x77129774_nativeGetOperand(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
return reinterpret_cast(reinterpret_cast(ptr)->getOperand(arg0));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantInt_1cxx_10x77129774_nativeGetSExtValue(JNIEnv*, jclass, jlong ptr) {
return (jlong)(reinterpret_cast(ptr)->getSExtValue());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantInt_1cxx_10x77129774_nativeGetType(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getType());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantInt_1cxx_10x77129774_nativeGetTypeOriginal(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getType());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_ConstantInt_1cxx_10x77129774_nativeGetValueID(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getValueID());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ConstantInt_1cxx_10x77129774_nativeGetZExtValue(JNIEnv*, jclass, jlong ptr) {
return (jlong)(reinterpret_cast(ptr)->getZExtValue());
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_ConstantInt_1cxx_10x77129774_nativeUseEmpty(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->use_empty()) ? JNI_TRUE : JNI_FALSE;
}
#ifdef __cplusplus
}
#endif