likun666661 commented on PR #39441: URL: https://github.com/apache/arrow/pull/39441#issuecomment-1884095215
> What is the point of adding this to Gandiva? It won't take advantage of the JIT compiler since it is purely a wrapper around the re2 library. It will take advantage of JIT. The regexp_like will give an holder to llvm_generator and llvm_generator will generator ir code like `%gdv_fn_regexp_like_utf8_utf8_utf8 = call i1 @gdv_fn_regexp_like_utf8_utf8_utf8(i64 %holder_mem, i8* %15, i32 %f0Len, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @0, i32 0, i32 0), i32 3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @1, i32 0, i32 0), i32 1)`. Also , in gandiva,like function is also use holder like regexp_like,regexp_replace,etc.They all take advantage of jit. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
