Pull Request已成功合入, 合并人@CANN-robot
(感谢 jianwei10 的贡献)Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| cmake | ✅ 诸葛洵, chenyiyuan (2/2) | ✅ 诸葛洵 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
Geminiver, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


问题/功能描述
本次PR旨在增强C/C++内核函数签名解析工具的兼容性。原工具的正则表达式仅支持 __attribute__((cce_kernel)) [aicore] 这一种属性声明语法,导致无法正确解析使用 __attribute__((cce_kernel)) __attribute__((cce_aicore)) 新语法的代码。此问题影响了代码生成和配置处理的准确性。
修改方案描述
修改方案核心是扩展两个Python文件中的正则表达式模式。将原先仅匹配 [aicore] 的模式,升级为能同时匹配 [aicore] 和 __attribute__((cce_aicore)) 两种形式的模式。这一改动使工具能够正确识别和解析两种不同风格的内核函数属性声明,确保了功能的兼容性和后续流程的稳定运行。


流水线任务触发成功
任务链接 [21d7f5baffb84b6696f780346dc8eb0b][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> | |
| anti_virus | ❌ FAILED | ||
| codecheck | ❌ FAILED | ||
| Check_Pr | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ✅ SUCCESS | >>>>> | |
| UT_Test_3 | ⚪ ABORTED | ||
| UT_Test_2 | ⚪ ABORTED | ||
| UT_Test_1 | ⚪ ABORTED | ||
| UT_Test | ⚪ ABORTED | ||
| API_Check | ⚪ ABORTED | >>>>> | |
| UT_Test_report | ⚪ ABORTED | >>>>> |
[2026-04-08 16:40:43] CI执行失败


compile


流水线任务触发成功
任务链接 [264b05ce4dc04f799a7dcee528dae647][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| codecheck | ❌ FAILED | ||
| Check_Pr | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ✅ SUCCESS | >>>>> | |
| UT_Test_3 | ⚪ ABORTED | ||
| UT_Test_2 | ⚪ ABORTED | ||
| UT_Test_1 | ⚪ ABORTED | ||
| UT_Test | ⚪ ABORTED | ||
| API_Check | ⚪ ABORTED | >>>>> | |
| UT_Test_report | ⚪ ABORTED | >>>>> |
[2026-04-09 10:23:21] CI执行失败


compile


流水线任务触发成功
任务链接 [182190b812dd4facaf9ab2cb960dc379][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| codecheck | ❌ FAILED | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ✅ SUCCESS | >>>>> | |
| UT_Test_3 | ⚪ ABORTED | ||
| UT_Test_2 | ⚪ ABORTED | ||
| UT_Test_1 | ⚪ ABORTED | ||
| UT_Test | ⚪ ABORTED | ||
| API_Check | ⚪ ABORTED | >>>>> | |
| UT_Test_report | ⚪ ABORTED | >>>>> |
[2026-04-09 11:24:17] CI执行失败


compile


流水线任务触发成功
任务链接 [e8641184ccbf4ea18baecd8d081a5e6c][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| codecheck | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ✅ SUCCESS | >>>>> | |
| UT_Test_3 | ✅ SUCCESS | ||
| UT_Test_2 | ✅ SUCCESS | ||
| UT_Test_1 | ✅ SUCCESS | ||
| UT_Test | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> | |
| UT_Test_report | ✅ SUCCESS | >>>>> |
[2026-04-09 11:47:02] CI执行结束


/lgtm
/approve


/lgtm


/approve


The following label is not ready.
ci-pipeline-passed: The ci-pipeline-passed label is expired. Please compile again.


compile


流水线任务触发成功
任务链接 [7267b634bbfd494e93484ada5788ce9d][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| codecheck | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ✅ SUCCESS | >>>>> | |
| UT_Test_3 | ✅ SUCCESS | ||
| UT_Test_2 | ✅ SUCCESS | ||
| UT_Test_1 | ✅ SUCCESS | ||
| UT_Test | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> | |
| UT_Test_report | ✅ SUCCESS | >>>>> |
[2026-04-14 09:25:36] CI执行结束


Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: 诸葛洵.
Reviewers who wrote a comment of /lgtm are: 诸葛洵, chenyiyuan.


描述
新增正则表达式匹配项,支持__aicore__新展开内容
关联的Issue
测试
文档更新
类型标签