[llvm] [modulemap] Fix module build after #189515 (PR #196106)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 09:11:25 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-ir
Author: Steven Wu (cachemeifyoucan)
<details>
<summary>Changes</summary>
Mark newly added `.def` file as textual header to fix module include and
module cycle issue. Also added a missing CMake analysis_gen dependency
that might cause build failure.
---
Full diff: https://github.com/llvm/llvm-project/pull/196106.diff
2 Files Affected:
- (modified) llvm/include/module.modulemap (+3)
- (modified) llvm/lib/IR/CMakeLists.txt (+1)
``````````diff
diff --git a/llvm/include/module.modulemap b/llvm/include/module.modulemap
index cf3ef4b08965d..91b06b849eb3a 100644
--- a/llvm/include/module.modulemap
+++ b/llvm/include/module.modulemap
@@ -353,6 +353,8 @@ module LLVM_Transforms {
// Requires DEBUG_TYPE to be defined by including file.
exclude header "llvm/Transforms/Utils/InstructionWorklist.h"
+
+ textual header "llvm/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIRValues.def"
}
extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
@@ -453,4 +455,5 @@ module LLVM_SandboxIR {
module * { export * }
textual header "llvm/SandboxIR/Values.def"
+ textual header "llvm/SandboxIR/ValuesDefFilesList.def"
}
diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt
index ff362356fe65a..5511c3b33b0d7 100644
--- a/llvm/lib/IR/CMakeLists.txt
+++ b/llvm/lib/IR/CMakeLists.txt
@@ -91,6 +91,7 @@ add_llvm_component_library(LLVMCore
${LLVM_PTHREAD_LIB}
DEPENDS
+ analysis_gen
intrinsics_gen
LINK_COMPONENTS
``````````
</details>
https://github.com/llvm/llvm-project/pull/196106
More information about the llvm-commits
mailing list