[PATCH] D17011: [lanai] Add Lanai backend.

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 20:00:21 PST 2016


t.p.northover added inline comments.

================
Comment at: lib/Target/Lanai/LanaiTargetMachine.cpp:114
@@ +113,3 @@
+  // or indirect call.
+  addPass(createLanaiSaveReturnAddressPass());
+}
----------------
Oh, and I've just noticed this definitely should be happening after all scheduling (and anything else that might fiddle around) since it hard-codes RCA == PC + 16.

In fact, I'm almost tempted to say you want to do it in MCInstLowering because of that. It's probably where I'd put it myself for my own peace of mind, but I'll leave the decision to you.


http://reviews.llvm.org/D17011





More information about the llvm-commits mailing list