[Clang] refactor CodeGenFunction::EmitAsmStmt NFC
authorNick Desaulniers <ndesaulniers@google.com>
Fri, 17 Feb 2023 01:49:16 +0000 (17:49 -0800)
committerNick Desaulniers <ndesaulniers@google.com>
Fri, 17 Feb 2023 01:58:34 +0000 (17:58 -0800)
commitb1bc723dfe9734a8b3157dbf50328b5d62436bd6
treee8116b64e4a8b731d0ba04f8684f7ae85176f8f6
parenta3a84c9e2511c06f1c47af76e26581b674149b82
[Clang] refactor CodeGenFunction::EmitAsmStmt NFC

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.

Reviewed By: void, jyknight

Differential Revision: https://reviews.llvm.org/D137113
clang/lib/CodeGen/CGStmt.cpp