@@ -252,46 +252,25 @@ class SILType {
252
252
253
253
// / True if the type, or the referenced type of an address type, is loadable.
254
254
// / This is the opposite of isAddressOnly.
255
- bool isLoadable (SILModule &M) const {
256
- return !isAddressOnly (M);
257
- }
258
-
259
- // / Like isLoadable(SILModule), but specific to a function.
260
- // /
261
- // / This takes the resilience expansion of the function into account. If the
262
- // / type is not loadable in general (because it's resilient), it still might
263
- // / be loadable inside a resilient function in the module.
264
- // / In other words: isLoadable(SILModule) is the conservative default, whereas
265
- // / isLoadable(SILFunction) might give a more optimistic result.
266
255
bool isLoadable (const SILFunction &F) const {
267
256
return !isAddressOnly (F);
268
257
}
269
258
270
259
// / True if either:
271
260
// / 1) The type, or the referenced type of an address type, is loadable.
272
261
// / 2) The SIL Module conventions uses lowered addresses
273
- bool isLoadableOrOpaque (SILModule &M) const ;
274
-
275
- // / Like isLoadableOrOpaque(SILModule), but takes the resilience expansion of
276
- // / \p F into account (see isLoadable(SILFunction)).
277
262
bool isLoadableOrOpaque (const SILFunction &F) const ;
278
263
279
264
// / True if the type, or the referenced type of an address type, is
280
265
// / address-only. This is the opposite of isLoadable.
281
- bool isAddressOnly (SILModule &M) const ;
282
-
283
- // / Like isAddressOnly(SILModule), but takes the resilience expansion of
284
- // / \p F into account (see isLoadable(SILFunction)).
285
266
bool isAddressOnly (const SILFunction &F) const ;
286
267
287
268
// / True if the type, or the referenced type of an address type, is trivial,
288
269
// / meaning it is loadable and can be trivially copied, moved or detroyed.
289
270
bool isTrivial (const SILFunction &F) const ;
290
271
291
272
// / True if the type, or the referenced type of an address type, is known to
292
- // / be a scalar reference-counted type. If this is false, then some part of
293
- // / the type may be opaque. It may become reference counted later after
294
- // / specialization.
273
+ // / be a scalar reference-counted type.
295
274
bool isReferenceCounted (SILModule &M) const ;
296
275
297
276
// / Returns true if the referenced type is a function type that never
0 commit comments