[llvm] [IR] llvm.reloc.none intrinsic for no-op symbol references (PR #147427)
Daniel Thornburgh via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 16 11:16:33 PDT 2025
================
@@ -7750,6 +7750,17 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
return;
}
+ case Intrinsic::reloc_none: {
+ SDValue V = getValue(I.getArgOperand(0));
+ const auto *GA = cast<GlobalAddressSDNode>(V);
+ SDValue Ops[2];
+ Ops[0] = getRoot();
+ Ops[1] = DAG.getTargetGlobalAddress(GA->getGlobal(), sdl, V.getValueType(),
+ GA->getOffset());
----------------
mysterymath wrote:
Thanks; done.
https://github.com/llvm/llvm-project/pull/147427
More information about the llvm-commits
mailing list