[clang] [CIR] Add Extend (signext/zeroext) handling to CallConvLowering (PR #195745)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Tue May 26 17:08:39 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)
+ if (ac.kind == ArgKind::Extend || ac.kind == ArgKind::Ignore) {
----------------
andykaylor wrote:
Why is this looking for `Extend || Ignore` but the similar loop in `updateArgAttrs` only looks for `Extend`?
https://github.com/llvm/llvm-project/pull/195745
More information about the cfe-commits
mailing list