[llvm] [LoongArch] Emit error messages when using emulated TLS (PR #92483)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 23:23:59 PDT 2024
================
@@ -937,6 +937,9 @@ LoongArchTargetLowering::lowerGlobalTLSAddress(SDValue Op,
GlobalAddressSDNode *N = cast<GlobalAddressSDNode>(Op);
assert(N->getOffset() == 0 && "unexpected offset in global node");
+ if (DAG.getTarget().useEmulatedTLS())
+ DAG.getContext()->emitError("the emulated TLS is prohibited.");
----------------
wangleiat wrote:
thanks!
https://github.com/llvm/llvm-project/pull/92483
More information about the llvm-commits
mailing list