astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_DataLayout_cxx_0xec23e48b.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/IR/DataLayout.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_DataLayout_1cxx_10xec23e48b__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::DataLayout);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_DataLayout_1cxx_10xec23e48b_nativeGetStructLayout(JNIEnv*, jclass, jlong ptr, jlong arg0 /* type0 */) {
return reinterpret_cast(reinterpret_cast(ptr)->getStructLayout(reinterpret_cast(arg0)));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_DataLayout_1cxx_10xec23e48b_nativeGetTypeAllocSize(JNIEnv*, jclass, jlong ptr, jlong arg0 /* type0 */) {
return (jlong)(reinterpret_cast(ptr)->getTypeAllocSize(reinterpret_cast(arg0)));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_DataLayout_1cxx_10xec23e48b_nativeGetTypeAllocSizeInBits(JNIEnv*, jclass, jlong ptr, jlong arg0 /* type0 */) {
return (jlong)(reinterpret_cast(ptr)->getTypeAllocSizeInBits(reinterpret_cast(arg0)));
}
#ifdef __cplusplus
}
#endif