[clang] [llvm] [IR][HLSL] Add llvm.structured.gep instruction (PR #176145)
Sebastian Neubauer via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 15 05:51:29 PST 2026
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/176145 at github.com>
================
@@ -14991,6 +14991,188 @@ Semantics:
See the description for :ref:`llvm.stacksave <int_stacksave>`.
+.. _i_structured_gep:
+
+'``llvm.structured.gep``' Intrinsic
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Syntax:
+"""""""
+
+::
+
+ declare <ret_type>
+ @llvm.structured.gep(ptr elementtype(<basetype>) <source>
+ {, [i32/i64] <index> }*)
+
+Overview:
+"""""""""
+
+The '``llvm.structured.gep``' intrinsic (structured **G**\ et\ **E**\ lement\ **P**\ tr) computes a new pointer address
+resulting of a logical indexing into the ``<source>`` pointer. The returned
+address depends on the indices and may depend on the layout of %basetype at
----------------
Flakebi wrote:
%basetype → ``<basetype>``
(Unless the % has some special meaning?)
https://github.com/llvm/llvm-project/pull/176145
More information about the cfe-commits
mailing list