[llvm] github: Add llvm:mc label for generic MC interface (PR #153737)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 15 10:01:40 PDT 2025


https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/153737

>From ee5577a192aa30384a966322df43a6cc3aa82134 Mon Sep 17 00:00:00 2001
From: Fangrui Song <i at maskray.me>
Date: Thu, 14 Aug 2025 20:46:11 -0700
Subject: [PATCH 1/2] github: Add llvm:mc label for generic MC interface

As a member of github.com/orgs/llvm/teams/pr-subscribers-llvm-mc , I was not notified about PR #149935.

This commit introduces the `llvm:mc` label to cover the generic MC
interface, excluding target-specific MCTargetDesc files.

- Rename the `mc` label to `llvm:mc` for consistency with other LLVM subdirectory labels.
- Exclude `llvm/test/MC` from the label scope, as it contains many target-specific directories.

Admin: please change the name of https://github.com/orgs/llvm/teams/pr-subscribers-llvm-mc
to "pr-subscribers-llvm:mc", similar to pr-subscribers-llvm:ir
---
 .github/new-prs-labeler.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/new-prs-labeler.yml b/.github/new-prs-labeler.yml
index 8e0fa8d42d735..d3e5d1c57ccde 100644
--- a/.github/new-prs-labeler.yml
+++ b/.github/new-prs-labeler.yml
@@ -90,9 +90,6 @@ LTO:
   - llvm/lib/Transforms/*/FunctionImport*
   - llvm/tools/gold/**
 
-mc:
-  - llvm/*/MC/**
-
 clang:driver:
   - clang/*/Driver/**
 
@@ -621,6 +618,10 @@ llvm:adt:
 llvm:support:
   - llvm/**/Support/**
 
+# Skip llvm/test/MC, which includes target-specific directories
+llvm:mc:
+  - llvm/lib/MC/**
+
 llvm:transforms:
   - llvm/lib/Transforms/**
   - llvm/include/llvm/Transforms/**

>From b7b3d5777dc694778d91ee2fd067f6e7dd4eb72c Mon Sep 17 00:00:00 2001
From: Fangrui Song <i at maskray.me>
Date: Fri, 15 Aug 2025 09:36:34 -0700
Subject: [PATCH 2/2] more patterns

---
 .github/new-prs-labeler.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/new-prs-labeler.yml b/.github/new-prs-labeler.yml
index d3e5d1c57ccde..dab3db2616f59 100644
--- a/.github/new-prs-labeler.yml
+++ b/.github/new-prs-labeler.yml
@@ -618,9 +618,11 @@ llvm:adt:
 llvm:support:
   - llvm/**/Support/**
 
-# Skip llvm/test/MC, which includes target-specific directories
+# Skip llvm/test/MC and llvm/unittests/MC, which includes target-specific directories.
 llvm:mc:
+  - llvm/include/llvm/MC/**
   - llvm/lib/MC/**
+  - llvm/tools/llvm-mc/**
 
 llvm:transforms:
   - llvm/lib/Transforms/**



More information about the llvm-commits mailing list