[PATCH] D51842: [X86ISel] Implement byval lowering for Win64 calling convention

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 10 11:50:01 PDT 2018


rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

lgtm with a tweaked comment. Thanks!



================
Comment at: lib/Target/X86/X86ISelLowering.cpp:3625
+      if (isByVal) {
+        // Copy the argument into a temportary spill slot
+        int FrameIdx = MF.getFrameInfo().CreateStackObject(
----------------
I wouldn't call this a spill slot, I would say, copy the argument so that the caller does not see modifications.


Repository:
  rL LLVM

https://reviews.llvm.org/D51842





More information about the llvm-commits mailing list