[PATCH] D105915: [CallSiteInfo][CallGraphSection] Extend CallSiteInfo for indirect call type ids

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 16 14:13:24 PDT 2021


vitalybuka added a reviewer: vitalybuka.
vitalybuka added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/MachineFunction.h:419
+
+  struct CallSiteInfo {
+    /// Vector of call argument and its forwarding register.
----------------
Try to extract separate NFC patch for SmallVector<ArgRegPair, 1> -> struct CallSiteInfo


================
Comment at: llvm/lib/CodeGen/MIRPrinter.cpp:522
     // Construct call arguments and theirs forwarding register info.
-    for (auto ArgReg : CSInfo.second) {
+    for (auto ArgReg : CSInfo.second.ArgRegPairs) {
       yaml::CallSiteInfo::ArgRegPair YmlArgReg;
----------------
You can avoid many of them with begin() end() implementation


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105915/new/

https://reviews.llvm.org/D105915



More information about the llvm-commits mailing list