[llvm] [LoongArch] Emit error messages when using emulated TLS (PR #92483)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 21:02:19 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.");
----------------
MaskRay wrote:
https://llvm.org/docs/CodingStandards.html#error-and-warning-messages no trailing period :)
https://github.com/llvm/llvm-project/pull/92483
More information about the llvm-commits
mailing list