1.1 KiB
1.1 KiB
- Reexports
LIBDEVICE_BITCODE
for cleaner dependency usage: TheLIBDEVICE_BITCODE
symbol from thecust_raw::nvvm_sys
crate is now reexported via thenvvm
crate. This allows consuming crates to access the symbol directly fromnvvm
, abstracting away the internal structure and reducing tight coupling tocust_raw
. - Simplifies dependency graph and usage of NVVM internals: By removing the direct dependency on
cust_raw
fromrustc_codegen_nvvm
, the changes streamline the crate's external interface, reducing maintenance overhead and improving modularity. Consumers now only need to rely on the higher-levelnvvm
crate. - Improves code readability and encapsulation: The change makes the source cleaner by reducing low-level, verbose paths like
nvvm_sys::LIBDEVICE_BITCODE
to a conciseLIBDEVICE_BITCODE
, enhancing readability and reinforcing a layered architecture. - Maintains existing functionality: The code logic remains unchanged in behavior—
LIBDEVICE_BITCODE
is still used in the same way, ensuring that the refactor is safe, non-breaking, and purely organizational.