diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2018-02-07 08:30:56 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-07 08:30:56 -0800 |
| commit | 993322e886139457f063a79f4182da736db181df (patch) | |
| tree | f5d8fd48019aa26b8f9281d4004e96ea02483e0c /src/rustllvm/RustWrapper.cpp | |
| parent | 6908fb762d5f7952ed7d31cf34405b9149a51e02 (diff) | |
| parent | 27a4e73ca54f454d16cab7942ef9b27d5c942a32 (diff) | |
| download | rust-993322e886139457f063a79f4182da736db181df.tar.gz rust-993322e886139457f063a79f4182da736db181df.zip | |
Rollup merge of #48018 - alexcrichton:require-const-arg, r=eddyb
rustc: Add `#[rustc_args_required_const]` This commit adds a new unstable attribute to the compiler which requires that arguments to a function are always provided as constants. The primary use case for this is SIMD intrinsics where arguments are defined by vendors to be constant and in LLVM they indeed must be constant as well. For now this is mostly just a semantic guarantee in rustc that an argument is a constant when invoked, phases like trans don't actually take advantage of it yet. This means that we'll be able to use this in stdsimd but we won't be able to remove the `constify_*` macros just yet. Hopefully soon though!
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
