[llvm] [modulemap] Fix module build after #189515 (PR #196106)
Steven Wu via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 09:10:24 PDT 2026
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/196106
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.
>From 9003d1877d1b496b8aa320f6ae900de04461edb3 Mon Sep 17 00:00:00 2001
From: Steven Wu <stevenwu at apple.com>
Date: Wed, 6 May 2026 09:10:11 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.7
---
llvm/include/module.modulemap | 3 +++
llvm/lib/IR/CMakeLists.txt | 1 +
2 files changed, 4 insertions(+)
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
More information about the llvm-commits
mailing list