yxsamliu wrote: > Ping. You situation is similar to overloading resolution of functions called in global variable initializer. You may consider using a similar approach as https://reviews.llvm.org/D158247 https://github.com/llvm/llvm-project/pull/93546