================
@@ -6843,6 +6845,24 @@ SDValue 
RISCVTargetLowering::getDynamicTLSAddr(GlobalAddressSDNode *N,
   return LowerCallTo(CLI).first;
 }
 
+SDValue
+RISCVTargetLowering::getGeneralDynamicTLSDescAddr(GlobalAddressSDNode *N,
----------------
ilovepi wrote:

Well, AArch64 handles lowering for llvm's general-dynamic and local-dynamic 
cases differently. I was trying to make it clear here that we're not trying to 
do anything fancy like elide loads of the `__MODULE_BASE__` for multiple 
accesses.  I'm not convinced we want to do that in RISC-V, so it's probably 
fine to rename this.

Maybe `getTLSDescAddr` is good enough? at least until we decide that we want to 
optimize them differently.

https://github.com/llvm/llvm-project/pull/66915
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to