PostgreSQL Source Code git master
Loading...
Searching...
No Matches
llvmjit_wrap.cpp File Reference
#include "postgres.h"
#include <llvm-c/Core.h>
#include <llvm/IR/Function.h>
#include "jit/llvmjit.h"
#include "jit/llvmjit_backport.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 38 of file llvmjit_wrap.cpp.

39{
40 return llvm::wrap(llvm::unwrap<llvm::Function>(r)->getReturnType());
41}
static int fb(int x)

References fb().

Referenced by llvm_copy_attributes(), and load_return_type().

◆ LLVMGetFunctionType()

LLVMTypeRef LLVMGetFunctionType ( LLVMValueRef  r)

Definition at line 44 of file llvmjit_wrap.cpp.

45{
46 return llvm::wrap(llvm::unwrap<llvm::Function>(r)->getFunctionType());
47}

References fb().

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