File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
- c16f53a752ed2b679fafe88d4ec795fe54a245ac
1
+ 29901846ff610daab8a80436cfe36e93b4b5aa1e
Original file line number Diff line number Diff line change @@ -199,12 +199,13 @@ pub fn compile_codegen_unit(
199
199
let f32_type_supported = target_info. supports_target_dependent_type ( CType :: Float32 ) ;
200
200
let f64_type_supported = target_info. supports_target_dependent_type ( CType :: Float64 ) ;
201
201
let f128_type_supported = target_info. supports_target_dependent_type ( CType :: Float128 ) ;
202
+ let u128_type_supported = target_info. supports_target_dependent_type ( CType :: UInt128t ) ;
202
203
// TODO: improve this to avoid passing that many arguments.
203
204
let cx = CodegenCx :: new (
204
205
& context,
205
206
cgu,
206
207
tcx,
207
- target_info . supports_128bit_int ( ) ,
208
+ u128_type_supported ,
208
209
f16_type_supported,
209
210
f32_type_supported,
210
211
f64_type_supported,
Original file line number Diff line number Diff line change @@ -134,11 +134,10 @@ impl TargetInfo {
134
134
false
135
135
}
136
136
137
- fn supports_128bit_int ( & self ) -> bool {
138
- self . supports_128bit_integers . load ( Ordering :: SeqCst )
139
- }
140
-
141
- fn supports_target_dependent_type ( & self , _typ : CType ) -> bool {
137
+ fn supports_target_dependent_type ( & self , typ : CType ) -> bool {
138
+ if ( typ == CType :: UInt128t || typ == CType :: Int128t ) && self . supports_128bit_integers . load ( Ordering :: SeqCst ) {
139
+ return true ;
140
+ }
142
141
false
143
142
}
144
143
}
@@ -159,10 +158,6 @@ impl LockedTargetInfo {
159
158
self . info . lock ( ) . expect ( "lock" ) . cpu_supports ( feature)
160
159
}
161
160
162
- fn supports_128bit_int ( & self ) -> bool {
163
- self . info . lock ( ) . expect ( "lock" ) . supports_128bit_int ( )
164
- }
165
-
166
161
fn supports_target_dependent_type ( & self , typ : CType ) -> bool {
167
162
self . info . lock ( ) . expect ( "lock" ) . supports_target_dependent_type ( typ)
168
163
}
You can’t perform that action at this time.
0 commit comments