[PATCH] D72069: [NFC] Add explicit instantiation to releaseNode

Qiu Chaofan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 01:21:48 PST 2020


qiucf updated this revision to Diff 235834.
qiucf retitled this revision from "[NFC] Put implementation of releaseNode into header file" to "[NFC] Add explicit instantiation to releaseNode".
qiucf added a comment.

Use explicit template instantiation approach.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72069

Files:
  llvm/lib/CodeGen/MachineScheduler.cpp


Index: llvm/lib/CodeGen/MachineScheduler.cpp
===================================================================
--- llvm/lib/CodeGen/MachineScheduler.cpp
+++ llvm/lib/CodeGen/MachineScheduler.cpp
@@ -2088,6 +2088,11 @@
   return OtherCritCount;
 }
 
+template void SchedBoundary::releaseNode<true>(SUnit *SU, unsigned ReadyCycle,
+                                               unsigned Idx);
+template void SchedBoundary::releaseNode<false>(SUnit *SU, unsigned ReadyCycle,
+                                                unsigned Idx);
+
 template <bool InPQueue>
 void SchedBoundary::releaseNode(SUnit *SU, unsigned ReadyCycle, unsigned Idx) {
   assert(SU->getInstr() && "Scheduled SUnit must have instr");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72069.235834.patch
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200102/c90e60c4/attachment.bin>


More information about the llvm-commits mailing list