OmniSciDB
a5dc49c757
|
Functions | |
llvm::Value * | codegen_smem_dest_slot_ptr (llvm::LLVMContext &context, const QueryMemoryDescriptor &query_mem_desc, llvm::IRBuilder<> &ir_builder, const size_t slot_idx, const TargetInfo &target_info, llvm::Value *dest_byte_stream, llvm::Value *byte_offset) |
void | replace_called_function_with (llvm::Function *main_func, const std::string &target_func_name, llvm::Function *replace_func) |
llvm::Value* anonymous_namespace{GpuSharedMemoryUtils.cpp}::codegen_smem_dest_slot_ptr | ( | llvm::LLVMContext & | context, |
const QueryMemoryDescriptor & | query_mem_desc, | ||
llvm::IRBuilder<> & | ir_builder, | ||
const size_t | slot_idx, | ||
const TargetInfo & | target_info, | ||
llvm::Value * | dest_byte_stream, | ||
llvm::Value * | byte_offset | ||
) |
Definition at line 220 of file GpuSharedMemoryUtils.cpp.
References CHECK, get_compact_type(), QueryMemoryDescriptor::getPaddedSlotWidthBytes(), to_string(), and UNREACHABLE.
Referenced by GpuSharedMemCodeBuilder::codegenInitialization().
void anonymous_namespace{GpuSharedMemoryUtils.cpp}::replace_called_function_with | ( | llvm::Function * | main_func, |
const std::string & | target_func_name, | ||
llvm::Function * | replace_func | ||
) |
searches through the main function for the first appearance of called function "target_func_name", and if found it replaces it with replace_func while keeping the same arguments
Definition at line 379 of file GpuSharedMemoryUtils.cpp.
References run_benchmark_import::args, CodegenUtil::getCalledFunctionName(), and UNREACHABLE.
Referenced by GpuSharedMemCodeBuilder::injectFunctionsInto().