[clang] [llvm] [IR] Add flags operand to structured.gep (PR #200093)

Krzysztof Drewniak via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 3 07:56:12 PDT 2026


================
@@ -1048,7 +1048,8 @@ def int_callbr_landingpad : Intrinsic<[llvm_any_ty], [LLVMMatchType<0>],
 
 def int_structured_gep
     : DefaultAttrsIntrinsic<[llvm_anyptr_ty],
-                            [LLVMMatchType<0>, llvm_vararg_ty],
+                            [LLVMMatchType<0>, llvm_anyvector_ty,
+                             llvm_vararg_ty],
----------------
krzysz00 wrote:

(and I partially take back what I said about default drop - generally these are "preserve if you have preserved the semantics")

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


More information about the cfe-commits mailing list