rust/compiler/rustc_llvm/llvm-wrapper
Zalathar d1bb310a7a Use `LLVMGetInlineAsm`
This LLVM-C binding replaces the existing `LLVMRustInlineAsm` function.
2025-05-11 14:37:54 +10:00
..
.editorconfig
ArchiveWrapper.cpp
CoverageMappingWrapper.cpp Update the minimum external LLVM to 19 2025-04-05 11:44:38 -07:00
LLVMWrapper.h
Linker.cpp
PassWrapper.cpp PassWrapper: adapt for llvm/llvm-project@f137c3d592 2025-05-01 17:59:00 +00:00
README
RustWrapper.cpp Use `LLVMGetInlineAsm` 2025-05-11 14:37:54 +10:00
SuppressLLVMWarnings.h
SymbolWrapper.cpp

README

This directory currently contains some LLVM support code. This will generally
be sent upstream to LLVM in time; for now it lives here.

NOTE: the LLVM C++ ABI is subject to between-version breakage and must *never*
be exposed to Rust. To allow for easy auditing of that, all Rust-exposed types
must be typedef-ed as "LLVMXyz", or "LLVMRustXyz" if they were defined here.

Functions that return a failure status and leave the error in
the LLVM last error should return an LLVMRustResult rather than an
int or anything to avoid confusion.

When translating enums, add a single `Other` variant as the first
one to allow for new variants to be added. It should abort when used
as an input.

All other types must not be typedef-ed as such.