[llvm-branch-commits] [WIP] Introduce a G_PTRTOADDR GIsel node (PR #140300)

Alexander Richardson via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jun 11 16:52:20 PDT 2025


================
@@ -204,6 +207,10 @@ LegacyLegalizerInfo::getAspectAction(const InstrAspect &Aspect) const {
   if (Aspect.Type.isScalar() || Aspect.Type.isPointer())
     return findScalarLegalAction(Aspect);
   assert(Aspect.Type.isVector());
+  if (Aspect.Opcode == TargetOpcode::G_PTRTOADDR) {
----------------
arichardson wrote:

This is really ugly and I don't know if there is a better solution?

https://github.com/llvm/llvm-project/pull/140300


More information about the llvm-branch-commits mailing list