[clang] [llvm] [IR] Add llvm.structured.gep instruction (PR #176145)

Nathan Gauër via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 20 04:03:17 PST 2026


================
@@ -32,6 +32,7 @@
 #include "llvm/IR/InstrTypes.h"
 #include "llvm/IR/Instruction.h"
 #include "llvm/IR/Instructions.h"
+#include "llvm/IR/IntrinsicInst.h"
----------------
Keenuts wrote:

It was used in the frontend change: when creating the SGEP, it then had to call the `getResultElementType` function, so instead of doing `cast<SGEP>(Builder.createSGEP())` I found returning the created instruction was better. Is there a reason not to want that?

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


More information about the cfe-commits mailing list