[clang] [CIR] Add Extend (signext/zeroext) handling to CallConvLowering (PR #195745)

via cfe-commits cfe-commits at lists.llvm.org
Wed May 27 15:03:08 PDT 2026


================
@@ -303,6 +377,24 @@ LogicalResult CIRABIRewriteContext::rewriteCallSite(
     if (!newCall->hasAttr(attr.getName()))
       newCall->setAttr(attr.getName(), attr.getValue());
 
+  // Layer llvm.signext / llvm.zeroext onto the new call's arg_attrs and
+  // res_attrs for Extend args/return.
+  bool needsArgAttrUpdate = false;
+  for (const ArgClassification &ac : fc.argInfos)
----------------
adams381 wrote:

Done — `needsArgAttrUpdate` in both `rewriteFunctionDefinition` and `rewriteCallSite` now uses `llvm::any_of`.

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


More information about the cfe-commits mailing list