Skip to content

Added check on tessera calls for no capture#2513

Draft
jessicacotturone21 wants to merge 1 commit into
mainfrom
tessera-capturing
Draft

Added check on tessera calls for no capture#2513
jessicacotturone21 wants to merge 1 commit into
mainfrom
tessera-capturing

Conversation

@jessicacotturone21
Copy link
Copy Markdown
Collaborator

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 25.10%. Comparing base (d0b1927) to head (d0fc87b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2513   +/-   ##
=======================================
  Coverage   25.10%   25.10%           
=======================================
  Files         221      221           
  Lines       44682    44682           
=======================================
  Hits        11218    11218           
  Misses      33464    33464           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

if (calleeAttr) {
auto callee = SymbolTable::lookupSymbolIn(
callOp->getParentOfType<ModuleOp>(), calleeAttr);
auto defineOp = dyn_cast_or_null<tessera::DefineOp>(callee);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

functionopinterface [and then it applies to all fns]

int offset = 0;
if (defineOp.getNumArguments() > 0 &&
defineOp.getArgAttr(0, LLVM::LLVMDialect::getStructRetAttrName()))
offset = 1;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be here if using function op interface [but the getArgAttr for defineOp should do the indexing change]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants