Denis Merigoux
c0a428ee70
Great separation of librustc_codegen_llvm: librustc_codegen_ssa compiles
2018-11-16 15:07:24 +02:00
Denis Merigoux
c9f26c2155
Beginning of moving all backend-agnostic code to rustc_codegen_ssa
2018-11-16 14:55:42 +02:00
Eduard-Mihai Burtescu
35b40f51fb
[eddyb/rebase cleanup] abstracted Funclet
2018-11-16 14:40:12 +02:00
Denis Merigoux
566fa4d003
Moved common.rs enums
2018-11-16 14:38:19 +02:00
Denis Merigoux
39fd4d9274
Starting to move backend-agnostic code into codegen_utils
...
IntPredicate moved
2018-11-16 14:38:19 +02:00
Denis Merigoux
97825a36be
Move doc to trait declarations
2018-11-16 14:36:38 +02:00
Denis Merigoux
6a993fe353
Generalized mir::codegen_mir (and all subsequent functions)
2018-11-16 14:33:10 +02:00
Denis Merigoux
034f69753b
Generalized base::unsized_info
2018-11-16 14:15:13 +02:00
Eduard-Mihai Burtescu
484e07c231
[eddyb/rebase cleanup] s/&self./self.
2018-11-16 14:15:13 +02:00
Denis Merigoux
d77e34f35b
Generalized memset and memcpy
2018-11-16 14:11:59 +02:00
Denis Merigoux
0514c7b1b2
Generalized some base.rs methods
2018-11-16 14:11:59 +02:00
Denis Merigoux
c487b825b0
Attempt at including CodegenCx within Builder with Associated types
2018-11-16 14:11:59 +02:00
Denis Merigoux
a1d0d4f943
Removing LLVM content from CommonMethods -> ConstMethods
2018-11-16 14:11:59 +02:00
Denis Merigoux
e224f063e8
Prefixed type methods & removed trait impl for write::CodegenContext
2018-11-16 14:11:59 +02:00
Denis Merigoux
6d42574b7a
Prefixed const methods with "const" instead of "c"
2018-11-16 14:11:59 +02:00
Denis Merigoux
730b13ab51
Traitification of type_ methods
...
The methods are now attached to CodegenCx instead of Type
2018-11-16 14:11:59 +02:00
Denis Merigoux
5f28e0a0b6
Added definition of type trait
2018-11-16 14:11:59 +02:00
Denis Merigoux
3e77f2fc4f
Use the method form for CodegenCx everywhere
2018-11-16 14:11:59 +02:00
Denis Merigoux
6c5b990c5f
All CommonMethods now real methods (not static)
2018-11-16 14:11:59 +02:00
Denis Merigoux
33eee83737
Removed code duplication for CommonWriteMethods
2018-11-16 14:11:59 +02:00
Denis Merigoux
4cc18d3de5
CommonWriteMethods are not static any more
2018-11-16 14:11:59 +02:00
Denis Merigoux
3aee77277e
Split CommonMethods to accomodate for use in back/write.rs
2018-11-16 14:11:59 +02:00
Denis Merigoux
83e07f9fe9
Added self argument for Codegen CommonMethod trait methods
2018-11-16 14:11:59 +02:00
Denis Merigoux
d325844804
Replaced Codegen field access by trait method
2018-11-16 14:11:59 +02:00
Denis Merigoux
8714e6bce6
Traitification of common.rs methods
2018-11-16 14:11:59 +02:00
Denis Merigoux
d577ec7e5f
New files and folders for traits
...
Moved common enums to common
2018-11-16 14:11:59 +02:00
Denis Merigoux
9c41e1aa10
Removed genericity over Value in various functions
...
Prelude to using associated types in traits rather than type parameters
2018-11-16 14:11:34 +02:00
Denis Merigoux
1bcb4df166
Generalized OperandBundleDef in BuilderMethods
2018-11-16 14:11:09 +02:00
Denis Merigoux
34c5dc045f
Generalized base.rs#call_memcpy and everything that it uses
...
Generalized operand.rs#nontemporal_store and fixed tidy issues
Generalized operand.rs#nontemporal_store's implem even more
With a BuilderMethod trait implemented by Builder for LLVM
Cleaned builder.rs : no more code duplication, no more ValueTrait
Full traitification of builder.rs
2018-11-16 14:11:09 +02:00
Masaki Hara
e568e98063
Move codegen_llvm::common::ty_fn_sig into rustc::ty::Instance.
2018-10-24 21:59:07 +09:00
Masaki Hara
fe3f606cda
Add ty_fn_sig_vtable for getting adjusted signature for vtable shims.
2018-10-24 21:59:06 +09:00
ljedrz
0af79143ae
codegen_llvm: improve common patterns
2018-10-08 19:17:24 +02:00
varkor
6f637da50c
Remove Ty prefix from Ty{Adt|Array|Slice|RawPtr|Ref|FnDef|FnPtr|Dynamic|Closure|Generator|GeneratorWitness|Never|Tuple|Projection|Anon|Infer|Error}
2018-08-22 16:07:44 +01:00
Irina Popa
265f2fa4de
rustc_codegen_llvm: fix tidy errors.
2018-07-30 20:35:08 +03:00
Irina Popa
0ab3444540
rustc_codegen_llvm: use safe references for OperandBundleDef.
2018-07-30 20:10:37 +03:00
Irina Popa
92af9694b9
rustc_codegen_llvm: use safe mutable references for output parameters.
2018-07-30 20:10:36 +03:00
Irina Popa
f375185314
rustc_codegen_llvm: use safe references for Value.
2018-07-30 19:49:18 +03:00
Irina Popa
d04e66d114
rustc_codegen_llvm: use safe references for Type.
2018-07-30 18:36:29 +03:00
Irina Popa
249d5acaec
rustc_codegen_llvm: use safe references for Context and Module.
2018-07-30 18:27:52 +03:00
csmoe
fe8955bd58
BinOpKind
2018-07-16 15:09:16 +02:00
Fabian Drinck
0ad3600700
Declare DebruijnIndex via newtype_index macro
2018-06-14 18:44:36 +02:00
Niko Matsakis
8bd4bffe50
stop invoking DebruijnIndex::new
directly
...
Co-authored-by: csmoe <35686186+csmoe@users.noreply.github.com>
2018-05-28 19:47:04 -04:00
Eduard-Mihai Burtescu
7e4d8718cb
rustc: use intern_* instead of mk_* where possible.
2018-05-21 12:13:19 +03:00
Irina Popa
b63d7e2b1c
Rename trans to codegen everywhere.
2018-05-17 15:08:30 +03:00