Issue 75734
Summary How does ORCJIT deal with symbols during compilation? What is the difference between C and C++?
Labels new issue
Assignees
Reporter Thrrreeee
    When I try to compile LLVM IR that was compiled from a C++ file, I find that the first time that ORCJIT looks up TLS variables is during the `J->initialize()` phase. However, for a C file, the same operation is performed during the` J->lookup('main') `step, which follows the initialization phase. 
I know that compilers use different methods to compile C and C++ files, because C++ supports overriding but C does not. Therefore, when a compiler deals with symbols from C++, it needs to use mangling methods to ensure that each symbol is unique. So is it maybe caused by this? I cannot understand what the ORCJIT does when it is initialized, especially for symbols. 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to