[llvm] [LLVM][Tablegen] Add Default arguments support for Intrinsics in TableGen (PR #198557)

Varad Rahul Kamthe via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 24 04:20:23 PDT 2026


================
@@ -386,6 +386,17 @@ CodeGenIntrinsic::CodeGenIntrinsic(const Record *R,
   for (auto &Attrs : ArgumentAttributes)
     llvm::sort(Attrs);
 
+  // Default values are not yet supported for overloaded intrinsics.
+  // (overloaded support will come in a follow-up).
+  if (isOverloaded) {
+    for (const std::optional<int64_t> &DV : ParamDefaultValues) {
----------------
varadk27 wrote:

Updated to use `llvm::any_of`. Thanks!

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


More information about the llvm-commits mailing list