PostgreSQL Source Code  git master
llvmjit_wrap.cpp File Reference
#include "postgres.h"
#include <llvm-c/Core.h>
#include <llvm/IR/Function.h>
#include "jit/llvmjit.h"
Include dependency graph for llvmjit_wrap.cpp:

Go to the source code of this file.

Functions

LLVMTypeRef LLVMGetFunctionReturnType (LLVMValueRef r)
 
LLVMTypeRef LLVMGetFunctionType (LLVMValueRef r)
 

Function Documentation

◆ LLVMGetFunctionReturnType()

LLVMTypeRef LLVMGetFunctionReturnType ( LLVMValueRef  r)

Definition at line 34 of file llvmjit_wrap.cpp.

35 {
36  return llvm::wrap(llvm::unwrap<llvm::Function>(r)->getReturnType());
37 }

Referenced by llvm_copy_attributes(), and load_return_type().

◆ LLVMGetFunctionType()

LLVMTypeRef LLVMGetFunctionType ( LLVMValueRef  r)

Definition at line 40 of file llvmjit_wrap.cpp.

41 {
42  return llvm::wrap(llvm::unwrap<llvm::Function>(r)->getFunctionType());
43 }

Referenced by build_EvalXFuncInt(), BuildV1Call(), llvm_function_reference(), llvm_pg_func(), llvm_pg_var_func_type(), and slot_compile_deform().