[llvm] Improve file patterns for some backends. (PR #147633)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 8 18:12:29 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Peter Collingbourne (pcc)
<details>
<summary>Changes</summary>
I noticed that one of my PRs, #<!-- -->147624, did not get automatically
labelled with `backend:RISC-V` when it touched a test under
`llvm/test/CodeGen/RISCV`. This seems to be because the pattern only
looks for files named `*RISCV*` or `*riscv* and not necessarily files
in a directory named like that. To fix that, let's make RISC-V use
a more accepting pattern, similar to AMDGPU, and do the same for two
other backends.
---
Full diff: https://github.com/llvm/llvm-project/pull/147633.diff
1 Files Affected:
- (modified) .github/new-prs-labeler.yml (+10-8)
``````````diff
diff --git a/.github/new-prs-labeler.yml b/.github/new-prs-labeler.yml
index 863090af9af7e..b05e9c6c56ed0 100644
--- a/.github/new-prs-labeler.yml
+++ b/.github/new-prs-labeler.yml
@@ -784,18 +784,20 @@ backend:NVPTX:
backend:MIPS:
- '**/*mips*'
- '**/*Mips*'
+ - '**/*mips*/**'
+ - '**/*Mips*/**'
backend:RISC-V:
- - clang/**/*riscv*
- - clang/**/*RISCV*
- - llvm/**/*riscv*
- - llvm/**/*RISCV*
+ - '**/*riscv*'
+ - '**/*RISCV*'
+ - '**/*riscv*/**'
+ - '**/*RISCV*/**'
backend:Xtensa:
- - clang/**/*xtensa*
- - clang/**/*Xtensa*
- - llvm/**/*xtensa*
- - llvm/**/*Xtensa*
+ - '**/*xtensa*'
+ - '**/*Xtensa*'
+ - '**/*xtensa*/**'
+ - '**/*Xtensa*/**'
lld:coff:
- lld/**/COFF/**
``````````
</details>
https://github.com/llvm/llvm-project/pull/147633
More information about the llvm-commits
mailing list