[llvm] 0a08139 - [globalisel] Attempt to fix ARM bots that emit the correct number in the wrong place
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 18 06:15:22 PST 2019
Author: Daniel Sanders
Date: 2019-12-18T14:15:11Z
New Revision: 0a0813962d656c37b3eebba9a3fa24fa8ec12eac
URL: https://github.com/llvm/llvm-project/commit/0a0813962d656c37b3eebba9a3fa24fa8ec12eac
DIFF: https://github.com/llvm/llvm-project/commit/0a0813962d656c37b3eebba9a3fa24fa8ec12eac.diff
LOG: [globalisel] Attempt to fix ARM bots that emit the correct number in the wrong place
Added:
Modified:
llvm/utils/TableGen/GICombinerEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/GICombinerEmitter.cpp b/llvm/utils/TableGen/GICombinerEmitter.cpp
index c83936f2ba45..0e64b22a556a 100644
--- a/llvm/utils/TableGen/GICombinerEmitter.cpp
+++ b/llvm/utils/TableGen/GICombinerEmitter.cpp
@@ -24,6 +24,7 @@
#include "GlobalISel/CodeExpander.h"
#include "GlobalISel/CodeExpansions.h"
#include "GlobalISel/GIMatchDag.h"
+#include <cstdint>
using namespace llvm;
@@ -289,8 +290,8 @@ 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) {
@@ -298,8 +299,8 @@ StringRef makeDebugName(CombineRule &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,
More information about the llvm-commits
mailing list