LuoYuanke wrote: Sorry, I am not quite experienced with Clang frontend. C++ developer may write the the code https://godbolt.org/z/aeda83jv8, and frontend has to emit ptrtoint/inttoptr instructions. https://github.com/llvm/llvm-project/pull/173244