Skip to content

Commit

Permalink
[globalisel] Attempt to fix ARM bots that emit the correct number in …
Browse files Browse the repository at this point in the history
…the wrong place
  • Loading branch information
dsandersllvm committed Dec 18, 2019
1 parent d129aa1 commit 0a08139
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions llvm/utils/TableGen/GICombinerEmitter.cpp
Expand Up @@ -24,6 +24,7 @@
#include "GlobalISel/CodeExpander.h"
#include "GlobalISel/CodeExpansions.h"
#include "GlobalISel/GIMatchDag.h"
#include <cstdint>

using namespace llvm;

Expand Down Expand Up @@ -289,17 +290,17 @@ static const DagInit *getDagWithOperatorOfSubClass(const Init &N,
}

StringRef makeNameForAnonInstr(CombineRule &Rule) {
return insertStrTab(
to_string(format("__anon%d_%d", Rule.getID(), Rule.allocUID())));
return insertStrTab(to_string(
format("__anon%" PRIu64 "_%" PRIu64, Rule.getID(), Rule.allocUID())));
}

StringRef makeDebugName(CombineRule &Rule, StringRef Name) {
return insertStrTab(Name.empty() ? makeNameForAnonInstr(Rule) : StringRef(Name));
}

StringRef makeNameForAnonPredicate(CombineRule &Rule) {
return insertStrTab(
to_string(format("__anonpred%d_%d", Rule.getID(), Rule.allocUID())));
return insertStrTab(to_string(
format("__anonpred%" PRIu64 "_%" PRIu64, Rule.getID(), Rule.allocUID())));
}

void CombineRule::declareMatchData(StringRef PatternSymbol, StringRef Type,
Expand Down

0 comments on commit 0a08139

Please sign in to comment.