This is an archive of the discontinued LLVM Phabricator instance.

[Clang] refactor CodeGenFunction::EmitAsmStmt NFC
ClosedPublic

Authored by nickdesaulniers on Oct 31 2022, 2:17 PM.

Details

Summary

Prerequisite to further modifications in D136497.

Basically, there is a large body of code in CodeGenFunction::EmitAsmStmt
for emitting stores of outputs. We want to be able to repeat this logic,
for each destination of a callbr (rather than just the default
destination which is what the code currently does).

Also does some smaller cleanups like whitespace cleanups, and removing
pointless casts.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 31 2022, 2:17 PM
Herald added a subscriber: StephenFan. · View Herald Transcript
nickdesaulniers requested review of this revision.Oct 31 2022, 2:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 31 2022, 2:17 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
  • move asserts
void accepted this revision.Oct 31 2022, 2:45 PM

Thanks!

This revision is now accepted and ready to land.Oct 31 2022, 2:45 PM
void accepted this revision.Dec 21 2022, 3:24 PM
  • rebase, format
void accepted this revision.Jan 18 2023, 3:51 PM

Still LGTM :-)

jyknight accepted this revision.Jan 27 2023, 4:31 PM
shafik added a subscriber: shafik.Feb 6 2023, 7:02 PM
shafik added inline comments.
clang/lib/CodeGen/CGStmt.cpp
2405

To be consistent with bugprone-argument-comment

  • final rebase
nickdesaulniers marked an inline comment as done.
  • fix bugprone-argument-comment as per @shafik
This revision was landed with ongoing or failed builds.Feb 16 2023, 6:04 PM
This revision was automatically updated to reflect the committed changes.