@@ -50,7 +50,7 @@ bool InstrumentManager::supportsInstrumentType(StringRef Type) const {
5050}
5151
5252bool InstrumentManager::canCustomize (
53- const llvm::SmallVector <Instrument *> & IVec) const {
53+ const ArrayRef <Instrument *> IVec) const {
5454 for (const auto I : IVec) {
5555 if (I->getDesc () == LatencyInstrument::DESC_NAME) {
5656 auto LatInst = static_cast <LatencyInstrument *>(I);
@@ -60,13 +60,13 @@ bool InstrumentManager::canCustomize(
6060 return false ;
6161}
6262
63- void InstrumentManager::customize (const llvm::SmallVector <Instrument *> & IVec,
63+ void InstrumentManager::customize (const ArrayRef <Instrument *> IVec,
6464 InstrDesc &ID) const {
6565 for (const auto I : IVec) {
6666 if (I->getDesc () == LatencyInstrument::DESC_NAME) {
6767 auto LatInst = static_cast <LatencyInstrument *>(I);
6868 if (LatInst->hasValue ()) {
69- auto Latency = LatInst->getLatency ();
69+ unsigned Latency = LatInst->getLatency ();
7070 // TODO Allow to customize a subset of ID.Writes
7171 for (auto &W : ID.Writes )
7272 W.Latency = Latency;
@@ -76,8 +76,8 @@ void InstrumentManager::customize(const llvm::SmallVector<Instrument *> &IVec,
7676 }
7777}
7878
79- UniqueInstrument InstrumentManager::createInstrument (llvm:: StringRef Desc,
80- llvm:: StringRef Data) {
79+ UniqueInstrument InstrumentManager::createInstrument (StringRef Desc,
80+ StringRef Data) {
8181 if (EnableInstruments) {
8282 if (Desc == LatencyInstrument::DESC_NAME)
8383 return std::make_unique<LatencyInstrument>(Data);
0 commit comments