[llvm] [llvm-tblgen] Increase Coverage Index Size (PR #118329)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 12:54:03 PST 2024


================
@@ -381,8 +381,8 @@ static void EndEmitFunction(raw_ostream &OS) {
 
 void MatcherTableEmitter::EmitPatternMatchTable(raw_ostream &OS) {
 
-  assert(isUInt<16>(VecPatterns.size()) &&
-         "Using only 16 bits to encode offset into Pattern Table");
+  assert(isUInt<32>(VecPatterns.size()) &&
+         "Using only 32 bits to encode offset into Pattern Table");
----------------
arsenm wrote:

This probably should have been / should be report_fatal_error if it depends on the number of patterns in the target 

https://github.com/llvm/llvm-project/pull/118329


More information about the llvm-commits mailing list