19 Commits

Author SHA1 Message Date
Jon Roelofs
2aaef84bf6
[llvm] Fix modules build after 2e614f353871a9a0738c3b49d35d5ed4e480633b (#186302) 2026-03-12 20:22:48 -07:00
Kai Nacke
a7878d4b7f
[modules] Fix warning: missing submodule 'LLVM_IR.FunctionProperties' (#181888)
When compiling LLVM with LLVM_ENABLE_MODULES=ON, I get the warning

```
warning: missing submodule 'LLVM_IR.FunctionProperties' [-Wincomplete-umbrella]
```

Fix is to add file `FunctionProperties.def` to the module map.
2026-02-18 08:08:56 -05:00
Kai Nacke
0c085c43a1
Fix build breakage when using modules (#168883)
Commit c9f573463ebd7b4e46da4877802f2364f700e54a removed the file
TargetLibraryInfo.def but did not remove it from the module map.
2025-11-20 10:40:19 -05:00
Steven Wu
5a1243cfbf
[Support][modulemap] Fix LLVM_Support modulemap broken in #113364 (#157715)
Add VirtualOutputConfig.def to textual header.
2025-09-09 17:34:04 +00:00
Steven Wu
dda996b875
[CAS] Add LLVMCAS library with InMemoryCAS implementation (#114096)
Add llvm::cas::ObjectStore abstraction and InMemoryCAS as a in-memory
CAS object store implementation.

The ObjectStore models its objects as:
* Content: An array of bytes for the data to be stored.
* Refs: An array of references to other objects in the ObjectStore.
And each CAS Object can be idenfied with an unqine ID/Hash.

ObjectStore supports following general action:
* Expected<ID> store(Content, ArrayRef<Ref>)
* Expected<Ref> get(ID)

It also introduces following types to interact with a CAS ObjectStore:
* CASID: Hash representation for an CAS Objects with its context to help
  print/compare CASIDs.
* ObjectRef: A light-weight ref for an object in the ObjectStore. It is
  implementation defined so it can be optimized for
  read/store/references depending on the implementation.
* ObjectProxy: A proxy for the users of CAS to interact with the data
  inside CAS Object. It bundles a ObjectHandle and an ObjectStore
  instance.
2025-08-12 10:25:43 -07:00
Andrei Safronov
48da8489f2
[Xtensa] Add esp32/esp8266 cpus implementation. (#152409)
Add Xtensa esp32 and esp8266 cpus. Implement target parser to recognise
Xtensa hardware features.
2025-08-12 15:17:36 +03:00
Pavel Labath
574fbdc19f [BinaryFormat] Add SFrameConstants.def to the module map
Follup-up to #147294, should fix the module build.
2025-07-25 11:31:27 +02:00
Guy David
db15c23a57
[DebugInfo][DWARF] Add DWARF/LowLevel to module.modulemap (#148693)
This ensures the generation of Attributes.inc when using
-DLLVM_ENABLE_MODULES=ON.
2025-07-14 22:46:43 +03:00
Matt Arsenault
3fdf46ad60
TableGen: Add runtime libcall backend (#144972)
Replace RuntimeLibcalls.def with a tablegenerated version. This
is in preparation for splitting RuntimeLibcalls into two components.
For now match the existing functionality.
2025-06-27 17:37:03 +09:00
Steven Wu
97686f2cd0
[ModuleMap] Fix module build after #141750 (#142670)
Add `CodeViewLanguages.def` to textual header in LLVM_DebugInfo_CodeView
to fix clang module build of LLVM.
2025-06-03 15:07:23 -07:00
Cyndy Ishida
dcc141bc0b
[TargetParser] Add missing include to modulemap (#122768)
Resolves warning when building with `LLVM_ENABLE_MODULES`

```
AArch64TargetParser.h:39:2: warning: missing submodule 'LLVM_Utils.TargetParser.AArch64FeatPriorities' [-Wincomplete-umbrella]
   39 | #include "llvm/TargetParser/AArch64FeatPriorities.inc"
      |  ^       ~~~~~~~
```
2025-01-14 10:34:41 -08:00
Volodymyr Sapsai
db408acc04
[Modules] Fix modular build. (#122034)
Add a new file to the module map and remove 2 missing files (migrated
from .def to .td).
2025-01-07 18:02:10 -08:00
Qiongsi Wu
f33e236905
[clang][Modules] Fixing Build Breaks When -DLLVM_ENABLE_MODULES=ON (#119473)
A few recent changes are causing build breaks when
`-DLLVM_ENABLE_MODULES=ON` (such as
834dfd23155351c9885eddf7b9664f7697326946 and
7dfdca1961aadc75ca397818bfb9bd32f1879248).

This PR makes the required updates so that clang/llvm builds when
`-DLLVM_ENABLE_MODULES=ON`.

rdar://140803058
2024-12-11 17:33:25 -08:00
Tomas Matheson
6c369cf937 [AArch64] Changes missing from cfca97742723 (#90314) 2024-05-01 18:01:14 +01:00
Adrian Prantl
649ecf88ed Add missing textual header to module map 2024-01-29 10:24:13 -08:00
Nico Weber
184ca39529
[llvm] Move CodeGenTypes library to its own directory (#79444)
Finally addresses https://reviews.llvm.org/D148769#4311232 :)

No behavior change.
2024-01-25 12:01:31 -05:00
paperchalice
7251243315
[CodeGen][Passes] Move CodeGenPassBuilder.h to Passes (#79242)
`CodeGenPassBuilder` is not very tightly coupled to CodeGen, it may need
to reference some method in pass builder in future, so move
`CodeGenPassBuilder.h` to Passes.
2024-01-24 11:29:18 +08:00
Kazu Hirata
e1e34cc2a1
[Support] Remove llvm/Support/Host.h (#74261)
The header file has been deprecated since:

  commit f09cf34d00625e57dea5317a3ac0412c07292148
  Author: Archibald Elliott <archibald.elliott@arm.com>
  Date:   Tue Dec 20 10:24:02 2022 +0000
2023-12-04 12:54:26 -08:00
Volodymyr Sapsai
24f36a215b [Modules] Move modulemaps to header search directories. NFC intended.
In code we use `#include "llvm/Lib/Header.h"` which is located in
"llvm/include/llvm/Lib/Header.h", so we use "llvm/include/" as a header
search path. We should put modulemaps in the same directory and
shouldn't rely on clang to search in immediate subdirectories.

rdar://106677321

Differential Revision: https://reviews.llvm.org/D148776
2023-05-03 13:07:47 -07:00