[llvm] [RISCV] Support the large code model. (PR #70308)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 20:43:49 PDT 2024
================
@@ -7368,6 +7400,9 @@ SDValue RISCVTargetLowering::getAddr(NodeTy *N, SelectionDAG &DAG,
// expands to (addi (auipc %pcrel_hi(sym)) %pcrel_lo(auipc)).
return DAG.getNode(RISCVISD::LLA, DL, Ty, Addr);
}
+ case CodeModel::Large: {
+ return getLargeAddr(N, DL, Ty, DAG);
----------------
topperc wrote:
Can we inline this function into the switch? It doesn't look any more complicated than the other code model code.
https://github.com/llvm/llvm-project/pull/70308
More information about the llvm-commits
mailing list