Eduard-Mihai Burtescu
25c47a4885
rustc_codegen_llvm: don't treat i1 as signed, even for #[repr(i8)] enums.
2018-06-16 16:00:53 +03:00
Oliver Schneider
5c0d1355f2
Refactor the const eval diagnostic API
2018-06-05 20:49:46 +02:00
Nikita Popov
4f4f7dfc00
Generate br for all two target SwitchInts
...
Instead of only for booleans. This means that if let also becomes
a br.
Apart from making the IR slightly simpler, this is supported by
FastISel.
2018-06-02 22:21:01 +02:00
Eduard-Mihai Burtescu
06d88cda08
rustc: rename mir::LocalDecl's syntactic_source_info to source_info.
2018-05-30 20:30:10 +03:00
Eduard-Mihai Burtescu
6c53972478
rustc: turn mir::LocalDecl's visibility_source_info into a SourceScope.
2018-05-30 20:30:10 +03:00
Eduard-Mihai Burtescu
0895590c53
rustc: rename mir::LocalDecl's source_info to visibility_source_info.
2018-05-30 20:30:10 +03:00
Eduard-Mihai Burtescu
85d44c4276
rustc: rename mir::VisibilityScope to mir::SourceScope.
2018-05-30 20:30:09 +03:00
Felix S. Klock II
24abe6f363
rust-lang/rust#27282 : Add StatementKind::ReadForMatch to MIR.
...
(This is just the data structure changes and some boilerplate match
code that followed from it; the actual emission of these statements
comes in a follow-up commit.)
2018-05-29 23:01:36 +02:00
Oliver Schneider
fb9060ac06
Revert "Ensure llvm doesn't trigger an assert for crazy transmutes"
...
This reverts commit 776c632e2a9a044fd134321a9d561e28994ff3ff.
2018-05-24 20:49:38 +02:00
Oliver Schneider
ca8c27e1c1
Ensure llvm doesn't trigger an assert for crazy transmutes
2018-05-24 20:49:38 +02:00
Oliver Schneider
f82256e473
primval -> scalar rename
2018-05-24 20:49:37 +02:00
Oliver Schneider
64a75ecc80
change Value::Bytes to Value::Bits
2018-05-24 20:49:37 +02:00
Oliver Schneider
d7324631ae
Rename MemoryPointer to Pointer
2018-05-24 20:48:54 +02:00
Oliver Schneider
03a92b61ec
Eliminate the Pointer wrapper type
2018-05-24 20:48:13 +02:00
Oliver Schneider
6436de89fe
Differentiate between interpret::Scalar and layout::Scalar
2018-05-24 20:47:35 +02:00
Oliver Schneider
ef2177cffc
Rename ByVal(Pair) to Scalar(Pair)
2018-05-24 20:47:35 +02:00
Oliver Schneider
1606e137e7
Rename PrimVal to Scalar
2018-05-24 20:47:35 +02:00
bors
a76bff86e6
Auto merge of #50949 - eddyb:debuginfo, r=mw
...
rustc_codegen_llvm: remove some debuginfo cruft.
(The second commit passes tests locally but might not on older LLVM versions)
r? @nikomatsakis
2018-05-24 09:27:15 +00:00
Michael Woerister
3ed23a4bd0
Use SortedMap instead of BTreeMap for relocations in MIRI.
2018-05-22 16:54:07 +02:00
John Kåre Alsaker
ddc54188fb
Introduce AllocType which indicates what AllocIds point to
2018-05-22 04:15:29 +02:00
Eduard-Mihai Burtescu
da579ef75e
rustc_codegen_llvm: remove closure env alloca hack around upvar debuginfo.
2018-05-21 20:39:59 +03:00
Eduard-Mihai Burtescu
a8ceab9cd7
rustc_codegen_llvm: remove debuginfo::VariableKind::CapturedVariable.
2018-05-21 20:39:59 +03:00
bors
22c25dd737
Auto merge of #50841 - oli-obk:promote_errors_to_panics, r=eddyb
...
Don't lint numeric overflows in promoteds in release mode
r? @eddyb
mitigates #50814
2018-05-20 11:13:24 +00:00
bors
21ea121de1
Auto merge of #50803 - varkor:never-transmute-never, r=eddyb
...
Fix an ICE when attempting to transmute an uninhabited type
Fixes https://github.com/rust-lang/rust/issues/50570 .
2018-05-20 00:49:37 +00:00
Oliver Schneider
7c25aa79c5
Use Size instead of u64 in mir interpretation
2018-05-19 16:38:49 +02:00
Oliver Schneider
6630678428
Go through an allocation when accessing fields of constants
2018-05-19 14:24:24 +02:00
Oliver Schneider
8b99c61701
Ensure that statics are always ByRef
2018-05-19 14:24:24 +02:00
Oliver Schneider
27e710f557
Add a test showing the erroneous promoted bug
2018-05-19 13:10:51 +02:00
varkor
f90033303b
Make sure the type we think is uninhabited actually is
2018-05-17 18:16:59 +01:00
varkor
05067cf99e
Fix an ICE when attempting to transmute an uninhabited type
2018-05-17 18:15:24 +01:00
Irina Popa
b63d7e2b1c
Rename trans to codegen everywhere.
2018-05-17 15:08:30 +03:00