Files
rust/compiler
Matthias Krüger f6ca5aa19a Rollup merge of #103977 - TimNN:memory-effects, r=nikic
LLVM 16: Switch to using MemoryEffects

This adapts the compiler to the changes required by https://github.com/llvm/llvm-project/commit/304f1d59ca41872c094def3aee0a8689df6aa398.

AFAICT, `WriteOnly` isn't used by the compiler, all `ReadNone` uses were migrated and the remaining use of `ReadOnly` is only for function parameters.

To simplify the FFI, this PR uses an enum to represent `MemoryEffects` across the FFI boundary, which then gets mapped to the matching static factory method when constructing the attribute.

Fixes #103961.

`@rustbot` label +llvm-main

r? `@nikic`
2022-11-05 00:02:05 +01:00
..
2022-10-23 10:09:44 +02:00
2022-10-31 00:41:12 -04:00
2022-09-29 16:49:04 +09:00
2022-11-03 19:33:59 -05:00
2022-10-23 10:09:44 +02:00
2022-10-29 20:28:38 +11:00