[llvm-mca] Make the resource cost a double.
This is done in preparation for the fix for PR36874.
The number of cycles consumed for each pipe is now a double quantity. This
allows reuse of the resource pressure view to print out instruction tables.
llvm-svn: 328335
diff --git a/llvm/tools/llvm-mca/Scheduler.h b/llvm/tools/llvm-mca/Scheduler.h
index 6f67774..a3ef144 100644
--- a/llvm/tools/llvm-mca/Scheduler.h
+++ b/llvm/tools/llvm-mca/Scheduler.h
@@ -363,7 +363,7 @@
void issueInstruction(
unsigned Index, const InstrDesc &Desc,
- llvm::SmallVectorImpl<std::pair<ResourceRef, unsigned>> &Pipes);
+ llvm::SmallVectorImpl<std::pair<ResourceRef, double>> &Pipes);
void cycleEvent(llvm::SmallVectorImpl<ResourceRef> &ResourcesFreed);
@@ -420,7 +420,7 @@
void notifyInstructionIssued(
unsigned Index,
- llvm::ArrayRef<std::pair<ResourceRef, unsigned>> Used);
+ llvm::ArrayRef<std::pair<ResourceRef, double>> Used);
void notifyInstructionExecuted(unsigned Index);
void notifyInstructionReady(unsigned Index);
void notifyResourceAvailable(const ResourceRef &RR);