Nathan =?utf-8?q?Gauër?= <[email protected]>,
Nathan =?utf-8?q?Gauër?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


================
@@ -1029,6 +1029,11 @@ def int_call_preallocated_teardown : 
DefaultAttrsIntrinsic<[], [llvm_token_ty]>;
 def int_callbr_landingpad : Intrinsic<[llvm_any_ty], [LLVMMatchType<0>],
                                       [IntrNoMerge]>;
 
+def int_structured_gep
+    : Intrinsic<[llvm_anyptr_ty],
+                [llvm_any_ty, LLVMMatchType<0>, llvm_vararg_ty],
+                [IntrNoMem, IntrWillReturn]>;
----------------
Flakebi wrote:

Two points:
- Use elementtype instead of the poison dummy argument
- Use DefaultAttrsIntrinsic (which includes WillReturn and a few other useful 
ones, look out for `IntrinsicProperty<1>` to find all default ones)

```suggestion
def int_structured_gep
    : DefaultAttrsIntrinsic<[llvm_anyptr_ty],
                [LLVMMatchType<0>, llvm_vararg_ty],
                [IntrNoMem]>;
```

https://github.com/llvm/llvm-project/pull/176145
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to