DAG: Move get_dynamic_area_offset type check to IR verifier (#145268)

Also fix the LangRef to match the implementation. This was checking
against the alloca address space size rather than the default address
space.

The check was also more permissive than the LangRef. The error
check permitted any size less than the pointer size; follow the
stricter wording of the LangRef.
This commit is contained in:
Matt Arsenault
2025-06-24 11:11:52 +09:00
committed by GitHub
parent 90a6819cfe
commit f0d898f36b
4 changed files with 40 additions and 7 deletions

View File

@@ -14600,7 +14600,7 @@ Semantics:
compile-time-known constant value.
The return value type of :ref:`llvm.get.dynamic.area.offset <int_get_dynamic_area_offset>`
must match the target's default address space's (address space 0) pointer type.
must match the target's :ref:`alloca address space <alloca_addrspace>` type.
'``llvm.prefetch``' Intrinsic
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^