All Downloads are FREE. Search and download functionalities are using the official Maven repository.

astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_IntrinsicInst_cxx_0xf3d3b074.cc Maven / Gradle / Ivy

The newest version!
#include 
#include 
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instruction.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_IntrinsicInst_1cxx_10xf3d3b074__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
    return (jint)sizeof(llvm::IntrinsicInst);
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetArgOperand(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
	return reinterpret_cast(reinterpret_cast(ptr)->getArgOperand(arg0));
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetCalledFunction(JNIEnv*, jclass, jlong ptr) {
	return reinterpret_cast(reinterpret_cast(ptr)->getCalledFunction());
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetCalledOperand(JNIEnv*, jclass, jlong ptr) {
	return reinterpret_cast(reinterpret_cast(ptr)->getCalledOperand());
}

JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetCallingConv(JNIEnv*, jclass, jlong ptr) {
	return (jint)(reinterpret_cast(ptr)->getCallingConv());
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetFunctionType(JNIEnv*, jclass, jlong ptr) {
	return reinterpret_cast(reinterpret_cast(ptr)->getFunctionType());
}

JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetIntrinsicIDRaw(JNIEnv*, jclass, jlong ptr) {
	return (jint)(reinterpret_cast(ptr)->getIntrinsicID());
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_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_IntrinsicInst_1cxx_10xf3d3b074_nativeGetNumArgOperands(JNIEnv*, jclass, jlong ptr) {
	return (jint)(reinterpret_cast(ptr)->getNumArgOperands());
}

JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetNumOperands(JNIEnv*, jclass, jlong ptr) {
	return (jint)(reinterpret_cast(ptr)->getNumOperands());
}

JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetOpcode(JNIEnv*, jclass, jlong ptr) {
	return (jint)(reinterpret_cast(ptr)->getOpcode());
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetOperand(JNIEnv*, jclass, jlong ptr, jint arg0 /* index0 */) {
	return reinterpret_cast(reinterpret_cast(ptr)->getOperand(arg0));
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetParent(JNIEnv*, jclass, jlong ptr) {
	return reinterpret_cast(reinterpret_cast(ptr)->getParent());
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetType(JNIEnv*, jclass, jlong ptr) {
	return reinterpret_cast(reinterpret_cast(ptr)->getType());
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetTypeOriginal(JNIEnv*, jclass, jlong ptr) {
	return reinterpret_cast(reinterpret_cast(ptr)->getType());
}

JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeGetValueID(JNIEnv*, jclass, jlong ptr) {
	return (jint)(reinterpret_cast(ptr)->getValueID());
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeHasByValArgument(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasByValArgument()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeHasStructRetAttr(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasStructRetAttr()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_IntrinsicInst_1cxx_10xf3d3b074_nativeUseEmpty(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->use_empty()) ? JNI_TRUE : JNI_FALSE;
}

#ifdef __cplusplus
}
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy