[llvm] [MIR] Quote basic block names that are not plain identifiers (PR #214054)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 15:50:47 PDT 2026


================
@@ -0,0 +1,27 @@
+; Basic block names that are not plain identifiers must be quoted when printed,
+; otherwise the MIR that llc emits cannot be parsed back by llc. The names here
+; contain commas and spaces, which is the shape a Fortran front end emits.
+;
+; Check both that the name is quoted on the way out and that the result parses.
+
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -stop-before=greedy -o %t.mir %s
----------------
arsenm wrote:

Use new triples 

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


More information about the llvm-commits mailing list