[llvm] [clang-tools-extra] [RISCV] Support Global Dynamic TLSDESC in the RISC-V backend (PR #66915)
Paul Kirth via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 18 12:05:50 PST 2023
================
@@ -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
More information about the llvm-commits
mailing list