| 98 | } |
| 99 | |
| 100 | Status FunctionRegistry::Register(const std::vector<NativeFunction>& funcs, |
| 101 | const std::string& bitcode_path) { |
| 102 | ARROW_ASSIGN_OR_RAISE(auto llvm_buffer, GetBufferFromFile(bitcode_path)); |
| 103 | auto buffer = std::make_shared<LLVMMemoryArrowBuffer>(std::move(llvm_buffer)); |
| 104 | return Register(funcs, std::move(buffer)); |
| 105 | } |
| 106 | |
| 107 | arrow::Status FunctionRegistry::Register(const std::vector<NativeFunction>& funcs, |
| 108 | std::shared_ptr<arrow::Buffer> bitcode_buffer) { |