[clang] [offload-arch] Report gfx1250-strict to match rocminfo (PR #224480)

A. Cauble via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 07:03:47 PDT 2026


================
@@ -64,13 +76,15 @@ int printGPUsByKFD(StringRef NodePath) {
     uint64_t Capability = 0;
     for (line_iterator Lines(**BufferOrErr, false); !Lines.is_at_end();
          ++Lines) {
-      // Split by ' ' to differentiate capability and capability2
-      auto [Key, Value] = StringRef(*Lines).split(' ');
-      if (Key == "gfx_target_version") {
-        if (Value.trim().consumeInteger(10, GFXVersion))
+      StringRef Line(*Lines);
+      if (Line.consume_front("gfx_target_version")) {
+        if (Line.drop_while([](char C) { return std::isspace(C); })
+                .consumeInteger(10, GFXVersion))
           return 1;
-      } else if (Key == "capability") {
-        if (Value.trim().consumeInteger(10, Capability))
+        // ' ' is necessary to differentiate capability and capability2
+      } else if (Line.consume_front("capability ")) {
----------------
accauble wrote:

Okay doing this. Is there a chance of additions capability properties being added?

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


More information about the cfe-commits mailing list