[llvm] bdf4224 - [NFC] Add explicit instantiation to releaseNode

Qiu Chaofan via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 05:16:53 PST 2020


Author: Qiu Chaofan
Date: 2020-01-02T21:16:22+08:00
New Revision: bdf4224f9cef5fda34eebd409562e9e06bfde982

URL: https://github.com/llvm/llvm-project/commit/bdf4224f9cef5fda34eebd409562e9e06bfde982
DIFF: https://github.com/llvm/llvm-project/commit/bdf4224f9cef5fda34eebd409562e9e06bfde982.diff

LOG: [NFC] Add explicit instantiation to releaseNode

Resolve a build failure about undefined symbols introduced by f9f78cf.

Differential Revision: https://reviews.llvm.org/D72069

Added: 
    

Modified: 
    llvm/lib/CodeGen/MachineScheduler.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index dca90b203c8d..bee7848ba4c9 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -2088,6 +2088,11 @@ getOtherResourceCount(unsigned &OtherCritIdx) {
   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");


        


More information about the llvm-commits mailing list