Conversation
|
Review updated until commit 4ef1de6 Description
|
| Relevant files |
|---|
PR Reviewer Guide
Here are some key observations to aid the review process:
| 🧪 PR contains tests |
| ⚡ No major issues detected |
Greptile SummaryThis PR simplifies the API by changing Key changes:
Impact: Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 4ef1de6 |
|
!test |
|
!test |
csrc/codegen.cpp
Outdated
| .arg(has_warp_specialized_ ? false : isAligned()) // aligned | ||
|
|
||
| auto sync_idx = genCall( | ||
| auto sync_idx = genCall( |
There was a problem hiding this comment.
Missing semicolon causes compilation error
The semicolon was dropped when the inline comment style was changed from /*Aligned=*/ to // aligned. Without it, the auto sync_idx = genCall( on the next line is parsed as a continuation of the chained method call, resulting in a syntax error.
| .arg(has_warp_specialized_ ? false : isAligned()) // aligned | |
| auto sync_idx = genCall( | |
| auto sync_idx = genCall( | |
| .arg(has_warp_specialized_ ? false : isAligned()); // aligned | |
| auto sync_idx = genCall( |
csrc/codegen.cpp
Outdated
| .arg(has_warp_specialized_ ? false : isAligned()) // aligned | ||
|
|
||
| auto sync_idx = genCall( | ||
| auto sync_idx = genCall( |
There was a problem hiding this comment.
Missing semicolon causes compilation error
| .arg(has_warp_specialized_ ? false : isAligned()) // aligned | |
| auto sync_idx = genCall( | |
| auto sync_idx = genCall( | |
| .arg(has_warp_specialized_ ? false : isAligned()); // aligned | |
| auto sync_idx = genCall( |
- Val::getDataType() now returns DataType; throws if dtype is Null - Remove Statement::getDataType() (was only returning nullopt for Exprs) - Update all call sites: drop .value(), valueOrError(), *, .has_value() - Remove redundant NVF_ERROR in fusion aliasOutputToInput Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Summary
Val::getDataType()previously returnedstd::optional<DataType>and threw when dtype was Null, so the optional added no value and forced callers to use.value(),valueOrError(), or*.Changes
DataTypedirectly; still throws ifdtype_is Null.std::nulloptfor Exprs;getDataType()is only used on Vals)..value(),valueOrError(),*, and.has_value()where they were unwrappinggetDataType().NVF_ERRORinaliasOutputToInput(check was redundant after the API change).Build verified with
_bn.Made with Cursor