[PATCH] D137113: [Clang] refactor CodeGenFunction::EmitAsmStmt NFC

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 31 14:17:23 PDT 2022


nickdesaulniers created this revision.
nickdesaulniers added reviewers: void, nikic, jyknight, efriedma, craig.topper.
Herald added a subscriber: StephenFan.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Prerequisite to further modifications in D136497 <https://reviews.llvm.org/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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137113

Files:
  clang/lib/CodeGen/CGStmt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137113.472129.patch
Type: text/x-patch
Size: 9139 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221031/140c04f6/attachment.bin>


More information about the cfe-commits mailing list