Lines Matching refs:ARCInstKind

29                                        const ARCInstKind Class) {  in operator <<()
31 case ARCInstKind::Retain: in operator <<()
33 case ARCInstKind::RetainRV: in operator <<()
35 case ARCInstKind::RetainBlock: in operator <<()
37 case ARCInstKind::Release: in operator <<()
39 case ARCInstKind::Autorelease: in operator <<()
41 case ARCInstKind::AutoreleaseRV: in operator <<()
43 case ARCInstKind::AutoreleasepoolPush: in operator <<()
45 case ARCInstKind::AutoreleasepoolPop: in operator <<()
47 case ARCInstKind::NoopCast: in operator <<()
49 case ARCInstKind::FusedRetainAutorelease: in operator <<()
51 case ARCInstKind::FusedRetainAutoreleaseRV: in operator <<()
53 case ARCInstKind::LoadWeakRetained: in operator <<()
55 case ARCInstKind::StoreWeak: in operator <<()
57 case ARCInstKind::InitWeak: in operator <<()
59 case ARCInstKind::LoadWeak: in operator <<()
61 case ARCInstKind::MoveWeak: in operator <<()
63 case ARCInstKind::CopyWeak: in operator <<()
65 case ARCInstKind::DestroyWeak: in operator <<()
67 case ARCInstKind::StoreStrong: in operator <<()
69 case ARCInstKind::CallOrUser: in operator <<()
71 case ARCInstKind::Call: in operator <<()
73 case ARCInstKind::User: in operator <<()
75 case ARCInstKind::IntrinsicUser: in operator <<()
77 case ARCInstKind::None: in operator <<()
83 ARCInstKind llvm::objcarc::GetFunctionClass(const Function *F) { in GetFunctionClass()
88 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass()
89 .Case("objc_autoreleasePoolPush", ARCInstKind::AutoreleasepoolPush) in GetFunctionClass()
90 .Case("clang.arc.use", ARCInstKind::IntrinsicUser) in GetFunctionClass()
91 .Default(ARCInstKind::CallOrUser); in GetFunctionClass()
101 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass()
102 .Case("objc_retain", ARCInstKind::Retain) in GetFunctionClass()
103 .Case("objc_retainAutoreleasedReturnValue", ARCInstKind::RetainRV) in GetFunctionClass()
104 .Case("objc_retainBlock", ARCInstKind::RetainBlock) in GetFunctionClass()
105 .Case("objc_release", ARCInstKind::Release) in GetFunctionClass()
106 .Case("objc_autorelease", ARCInstKind::Autorelease) in GetFunctionClass()
107 .Case("objc_autoreleaseReturnValue", ARCInstKind::AutoreleaseRV) in GetFunctionClass()
108 .Case("objc_autoreleasePoolPop", ARCInstKind::AutoreleasepoolPop) in GetFunctionClass()
109 .Case("objc_retainedObject", ARCInstKind::NoopCast) in GetFunctionClass()
110 .Case("objc_unretainedObject", ARCInstKind::NoopCast) in GetFunctionClass()
111 .Case("objc_unretainedPointer", ARCInstKind::NoopCast) in GetFunctionClass()
113 ARCInstKind::FusedRetainAutorelease) in GetFunctionClass()
114 .Case("objc_retainAutorelease", ARCInstKind::FusedRetainAutorelease) in GetFunctionClass()
116 ARCInstKind::FusedRetainAutoreleaseRV) in GetFunctionClass()
117 .Case("objc_sync_enter", ARCInstKind::User) in GetFunctionClass()
118 .Case("objc_sync_exit", ARCInstKind::User) in GetFunctionClass()
119 .Default(ARCInstKind::CallOrUser); in GetFunctionClass()
124 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass()
125 .Case("objc_loadWeakRetained", ARCInstKind::LoadWeakRetained) in GetFunctionClass()
126 .Case("objc_loadWeak", ARCInstKind::LoadWeak) in GetFunctionClass()
127 .Case("objc_destroyWeak", ARCInstKind::DestroyWeak) in GetFunctionClass()
128 .Default(ARCInstKind::CallOrUser); in GetFunctionClass()
141 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass()
142 .Case("objc_storeWeak", ARCInstKind::StoreWeak) in GetFunctionClass()
143 .Case("objc_initWeak", ARCInstKind::InitWeak) in GetFunctionClass()
144 .Case("objc_storeStrong", ARCInstKind::StoreStrong) in GetFunctionClass()
145 .Default(ARCInstKind::CallOrUser); in GetFunctionClass()
149 return StringSwitch<ARCInstKind>(F->getName()) in GetFunctionClass()
150 .Case("objc_moveWeak", ARCInstKind::MoveWeak) in GetFunctionClass()
151 .Case("objc_copyWeak", ARCInstKind::CopyWeak) in GetFunctionClass()
157 ARCInstKind::None) in GetFunctionClass()
159 ARCInstKind::None) in GetFunctionClass()
161 ARCInstKind::None) in GetFunctionClass()
163 ARCInstKind::None) in GetFunctionClass()
164 .Default(ARCInstKind::CallOrUser); in GetFunctionClass()
168 return ARCInstKind::CallOrUser; in GetFunctionClass()
226 ARCInstKind llvm::objcarc::GetARCInstKind(const Value *V) { in GetARCInstKind()
239 ARCInstKind Class = GetFunctionClass(F); in GetARCInstKind()
240 if (Class != ARCInstKind::CallOrUser) in GetARCInstKind()
244 return ARCInstKind::None; in GetARCInstKind()
246 return ARCInstKind::User; in GetARCInstKind()
304 return ARCInstKind::User; in GetARCInstKind()
315 return ARCInstKind::User; in GetARCInstKind()
320 return ARCInstKind::None; in GetARCInstKind()
324 bool llvm::objcarc::IsUser(ARCInstKind Class) { in IsUser()
326 case ARCInstKind::User: in IsUser()
327 case ARCInstKind::CallOrUser: in IsUser()
328 case ARCInstKind::IntrinsicUser: in IsUser()
330 case ARCInstKind::Retain: in IsUser()
331 case ARCInstKind::RetainRV: in IsUser()
332 case ARCInstKind::RetainBlock: in IsUser()
333 case ARCInstKind::Release: in IsUser()
334 case ARCInstKind::Autorelease: in IsUser()
335 case ARCInstKind::AutoreleaseRV: in IsUser()
336 case ARCInstKind::AutoreleasepoolPush: in IsUser()
337 case ARCInstKind::AutoreleasepoolPop: in IsUser()
338 case ARCInstKind::NoopCast: in IsUser()
339 case ARCInstKind::FusedRetainAutorelease: in IsUser()
340 case ARCInstKind::FusedRetainAutoreleaseRV: in IsUser()
341 case ARCInstKind::LoadWeakRetained: in IsUser()
342 case ARCInstKind::StoreWeak: in IsUser()
343 case ARCInstKind::InitWeak: in IsUser()
344 case ARCInstKind::LoadWeak: in IsUser()
345 case ARCInstKind::MoveWeak: in IsUser()
346 case ARCInstKind::CopyWeak: in IsUser()
347 case ARCInstKind::DestroyWeak: in IsUser()
348 case ARCInstKind::StoreStrong: in IsUser()
349 case ARCInstKind::Call: in IsUser()
350 case ARCInstKind::None: in IsUser()
357 bool llvm::objcarc::IsRetain(ARCInstKind Class) { in IsRetain()
359 case ARCInstKind::Retain: in IsRetain()
360 case ARCInstKind::RetainRV: in IsRetain()
364 case ARCInstKind::RetainBlock: in IsRetain()
365 case ARCInstKind::Release: in IsRetain()
366 case ARCInstKind::Autorelease: in IsRetain()
367 case ARCInstKind::AutoreleaseRV: in IsRetain()
368 case ARCInstKind::AutoreleasepoolPush: in IsRetain()
369 case ARCInstKind::AutoreleasepoolPop: in IsRetain()
370 case ARCInstKind::NoopCast: in IsRetain()
371 case ARCInstKind::FusedRetainAutorelease: in IsRetain()
372 case ARCInstKind::FusedRetainAutoreleaseRV: in IsRetain()
373 case ARCInstKind::LoadWeakRetained: in IsRetain()
374 case ARCInstKind::StoreWeak: in IsRetain()
375 case ARCInstKind::InitWeak: in IsRetain()
376 case ARCInstKind::LoadWeak: in IsRetain()
377 case ARCInstKind::MoveWeak: in IsRetain()
378 case ARCInstKind::CopyWeak: in IsRetain()
379 case ARCInstKind::DestroyWeak: in IsRetain()
380 case ARCInstKind::StoreStrong: in IsRetain()
381 case ARCInstKind::IntrinsicUser: in IsRetain()
382 case ARCInstKind::CallOrUser: in IsRetain()
383 case ARCInstKind::Call: in IsRetain()
384 case ARCInstKind::User: in IsRetain()
385 case ARCInstKind::None: in IsRetain()
392 bool llvm::objcarc::IsAutorelease(ARCInstKind Class) { in IsAutorelease()
394 case ARCInstKind::Autorelease: in IsAutorelease()
395 case ARCInstKind::AutoreleaseRV: in IsAutorelease()
397 case ARCInstKind::Retain: in IsAutorelease()
398 case ARCInstKind::RetainRV: in IsAutorelease()
399 case ARCInstKind::RetainBlock: in IsAutorelease()
400 case ARCInstKind::Release: in IsAutorelease()
401 case ARCInstKind::AutoreleasepoolPush: in IsAutorelease()
402 case ARCInstKind::AutoreleasepoolPop: in IsAutorelease()
403 case ARCInstKind::NoopCast: in IsAutorelease()
404 case ARCInstKind::FusedRetainAutorelease: in IsAutorelease()
405 case ARCInstKind::FusedRetainAutoreleaseRV: in IsAutorelease()
406 case ARCInstKind::LoadWeakRetained: in IsAutorelease()
407 case ARCInstKind::StoreWeak: in IsAutorelease()
408 case ARCInstKind::InitWeak: in IsAutorelease()
409 case ARCInstKind::LoadWeak: in IsAutorelease()
410 case ARCInstKind::MoveWeak: in IsAutorelease()
411 case ARCInstKind::CopyWeak: in IsAutorelease()
412 case ARCInstKind::DestroyWeak: in IsAutorelease()
413 case ARCInstKind::StoreStrong: in IsAutorelease()
414 case ARCInstKind::IntrinsicUser: in IsAutorelease()
415 case ARCInstKind::CallOrUser: in IsAutorelease()
416 case ARCInstKind::Call: in IsAutorelease()
417 case ARCInstKind::User: in IsAutorelease()
418 case ARCInstKind::None: in IsAutorelease()
426 bool llvm::objcarc::IsForwarding(ARCInstKind Class) { in IsForwarding()
428 case ARCInstKind::Retain: in IsForwarding()
429 case ARCInstKind::RetainRV: in IsForwarding()
430 case ARCInstKind::Autorelease: in IsForwarding()
431 case ARCInstKind::AutoreleaseRV: in IsForwarding()
432 case ARCInstKind::NoopCast: in IsForwarding()
434 case ARCInstKind::RetainBlock: in IsForwarding()
435 case ARCInstKind::Release: in IsForwarding()
436 case ARCInstKind::AutoreleasepoolPush: in IsForwarding()
437 case ARCInstKind::AutoreleasepoolPop: in IsForwarding()
438 case ARCInstKind::FusedRetainAutorelease: in IsForwarding()
439 case ARCInstKind::FusedRetainAutoreleaseRV: in IsForwarding()
440 case ARCInstKind::LoadWeakRetained: in IsForwarding()
441 case ARCInstKind::StoreWeak: in IsForwarding()
442 case ARCInstKind::InitWeak: in IsForwarding()
443 case ARCInstKind::LoadWeak: in IsForwarding()
444 case ARCInstKind::MoveWeak: in IsForwarding()
445 case ARCInstKind::CopyWeak: in IsForwarding()
446 case ARCInstKind::DestroyWeak: in IsForwarding()
447 case ARCInstKind::StoreStrong: in IsForwarding()
448 case ARCInstKind::IntrinsicUser: in IsForwarding()
449 case ARCInstKind::CallOrUser: in IsForwarding()
450 case ARCInstKind::Call: in IsForwarding()
451 case ARCInstKind::User: in IsForwarding()
452 case ARCInstKind::None: in IsForwarding()
460 bool llvm::objcarc::IsNoopOnNull(ARCInstKind Class) { in IsNoopOnNull()
462 case ARCInstKind::Retain: in IsNoopOnNull()
463 case ARCInstKind::RetainRV: in IsNoopOnNull()
464 case ARCInstKind::Release: in IsNoopOnNull()
465 case ARCInstKind::Autorelease: in IsNoopOnNull()
466 case ARCInstKind::AutoreleaseRV: in IsNoopOnNull()
467 case ARCInstKind::RetainBlock: in IsNoopOnNull()
469 case ARCInstKind::AutoreleasepoolPush: in IsNoopOnNull()
470 case ARCInstKind::AutoreleasepoolPop: in IsNoopOnNull()
471 case ARCInstKind::FusedRetainAutorelease: in IsNoopOnNull()
472 case ARCInstKind::FusedRetainAutoreleaseRV: in IsNoopOnNull()
473 case ARCInstKind::LoadWeakRetained: in IsNoopOnNull()
474 case ARCInstKind::StoreWeak: in IsNoopOnNull()
475 case ARCInstKind::InitWeak: in IsNoopOnNull()
476 case ARCInstKind::LoadWeak: in IsNoopOnNull()
477 case ARCInstKind::MoveWeak: in IsNoopOnNull()
478 case ARCInstKind::CopyWeak: in IsNoopOnNull()
479 case ARCInstKind::DestroyWeak: in IsNoopOnNull()
480 case ARCInstKind::StoreStrong: in IsNoopOnNull()
481 case ARCInstKind::IntrinsicUser: in IsNoopOnNull()
482 case ARCInstKind::CallOrUser: in IsNoopOnNull()
483 case ARCInstKind::Call: in IsNoopOnNull()
484 case ARCInstKind::User: in IsNoopOnNull()
485 case ARCInstKind::None: in IsNoopOnNull()
486 case ARCInstKind::NoopCast: in IsNoopOnNull()
494 bool llvm::objcarc::IsAlwaysTail(ARCInstKind Class) { in IsAlwaysTail()
497 case ARCInstKind::Retain: in IsAlwaysTail()
498 case ARCInstKind::RetainRV: in IsAlwaysTail()
499 case ARCInstKind::AutoreleaseRV: in IsAlwaysTail()
501 case ARCInstKind::Release: in IsAlwaysTail()
502 case ARCInstKind::Autorelease: in IsAlwaysTail()
503 case ARCInstKind::RetainBlock: in IsAlwaysTail()
504 case ARCInstKind::AutoreleasepoolPush: in IsAlwaysTail()
505 case ARCInstKind::AutoreleasepoolPop: in IsAlwaysTail()
506 case ARCInstKind::FusedRetainAutorelease: in IsAlwaysTail()
507 case ARCInstKind::FusedRetainAutoreleaseRV: in IsAlwaysTail()
508 case ARCInstKind::LoadWeakRetained: in IsAlwaysTail()
509 case ARCInstKind::StoreWeak: in IsAlwaysTail()
510 case ARCInstKind::InitWeak: in IsAlwaysTail()
511 case ARCInstKind::LoadWeak: in IsAlwaysTail()
512 case ARCInstKind::MoveWeak: in IsAlwaysTail()
513 case ARCInstKind::CopyWeak: in IsAlwaysTail()
514 case ARCInstKind::DestroyWeak: in IsAlwaysTail()
515 case ARCInstKind::StoreStrong: in IsAlwaysTail()
516 case ARCInstKind::IntrinsicUser: in IsAlwaysTail()
517 case ARCInstKind::CallOrUser: in IsAlwaysTail()
518 case ARCInstKind::Call: in IsAlwaysTail()
519 case ARCInstKind::User: in IsAlwaysTail()
520 case ARCInstKind::None: in IsAlwaysTail()
521 case ARCInstKind::NoopCast: in IsAlwaysTail()
529 bool llvm::objcarc::IsNeverTail(ARCInstKind Class) { in IsNeverTail()
535 case ARCInstKind::Autorelease: in IsNeverTail()
537 case ARCInstKind::Retain: in IsNeverTail()
538 case ARCInstKind::RetainRV: in IsNeverTail()
539 case ARCInstKind::AutoreleaseRV: in IsNeverTail()
540 case ARCInstKind::Release: in IsNeverTail()
541 case ARCInstKind::RetainBlock: in IsNeverTail()
542 case ARCInstKind::AutoreleasepoolPush: in IsNeverTail()
543 case ARCInstKind::AutoreleasepoolPop: in IsNeverTail()
544 case ARCInstKind::FusedRetainAutorelease: in IsNeverTail()
545 case ARCInstKind::FusedRetainAutoreleaseRV: in IsNeverTail()
546 case ARCInstKind::LoadWeakRetained: in IsNeverTail()
547 case ARCInstKind::StoreWeak: in IsNeverTail()
548 case ARCInstKind::InitWeak: in IsNeverTail()
549 case ARCInstKind::LoadWeak: in IsNeverTail()
550 case ARCInstKind::MoveWeak: in IsNeverTail()
551 case ARCInstKind::CopyWeak: in IsNeverTail()
552 case ARCInstKind::DestroyWeak: in IsNeverTail()
553 case ARCInstKind::StoreStrong: in IsNeverTail()
554 case ARCInstKind::IntrinsicUser: in IsNeverTail()
555 case ARCInstKind::CallOrUser: in IsNeverTail()
556 case ARCInstKind::Call: in IsNeverTail()
557 case ARCInstKind::User: in IsNeverTail()
558 case ARCInstKind::None: in IsNeverTail()
559 case ARCInstKind::NoopCast: in IsNeverTail()
567 bool llvm::objcarc::IsNoThrow(ARCInstKind Class) { in IsNoThrow()
571 case ARCInstKind::Retain: in IsNoThrow()
572 case ARCInstKind::RetainRV: in IsNoThrow()
573 case ARCInstKind::Release: in IsNoThrow()
574 case ARCInstKind::Autorelease: in IsNoThrow()
575 case ARCInstKind::AutoreleaseRV: in IsNoThrow()
576 case ARCInstKind::AutoreleasepoolPush: in IsNoThrow()
577 case ARCInstKind::AutoreleasepoolPop: in IsNoThrow()
579 case ARCInstKind::RetainBlock: in IsNoThrow()
580 case ARCInstKind::FusedRetainAutorelease: in IsNoThrow()
581 case ARCInstKind::FusedRetainAutoreleaseRV: in IsNoThrow()
582 case ARCInstKind::LoadWeakRetained: in IsNoThrow()
583 case ARCInstKind::StoreWeak: in IsNoThrow()
584 case ARCInstKind::InitWeak: in IsNoThrow()
585 case ARCInstKind::LoadWeak: in IsNoThrow()
586 case ARCInstKind::MoveWeak: in IsNoThrow()
587 case ARCInstKind::CopyWeak: in IsNoThrow()
588 case ARCInstKind::DestroyWeak: in IsNoThrow()
589 case ARCInstKind::StoreStrong: in IsNoThrow()
590 case ARCInstKind::IntrinsicUser: in IsNoThrow()
591 case ARCInstKind::CallOrUser: in IsNoThrow()
592 case ARCInstKind::Call: in IsNoThrow()
593 case ARCInstKind::User: in IsNoThrow()
594 case ARCInstKind::None: in IsNoThrow()
595 case ARCInstKind::NoopCast: in IsNoThrow()
605 bool llvm::objcarc::CanInterruptRV(ARCInstKind Class) { in CanInterruptRV()
607 case ARCInstKind::AutoreleasepoolPop: in CanInterruptRV()
608 case ARCInstKind::CallOrUser: in CanInterruptRV()
609 case ARCInstKind::Call: in CanInterruptRV()
610 case ARCInstKind::Autorelease: in CanInterruptRV()
611 case ARCInstKind::AutoreleaseRV: in CanInterruptRV()
612 case ARCInstKind::FusedRetainAutorelease: in CanInterruptRV()
613 case ARCInstKind::FusedRetainAutoreleaseRV: in CanInterruptRV()
615 case ARCInstKind::Retain: in CanInterruptRV()
616 case ARCInstKind::RetainRV: in CanInterruptRV()
617 case ARCInstKind::Release: in CanInterruptRV()
618 case ARCInstKind::AutoreleasepoolPush: in CanInterruptRV()
619 case ARCInstKind::RetainBlock: in CanInterruptRV()
620 case ARCInstKind::LoadWeakRetained: in CanInterruptRV()
621 case ARCInstKind::StoreWeak: in CanInterruptRV()
622 case ARCInstKind::InitWeak: in CanInterruptRV()
623 case ARCInstKind::LoadWeak: in CanInterruptRV()
624 case ARCInstKind::MoveWeak: in CanInterruptRV()
625 case ARCInstKind::CopyWeak: in CanInterruptRV()
626 case ARCInstKind::DestroyWeak: in CanInterruptRV()
627 case ARCInstKind::StoreStrong: in CanInterruptRV()
628 case ARCInstKind::IntrinsicUser: in CanInterruptRV()
629 case ARCInstKind::User: in CanInterruptRV()
630 case ARCInstKind::None: in CanInterruptRV()
631 case ARCInstKind::NoopCast: in CanInterruptRV()
637 bool llvm::objcarc::CanDecrementRefCount(ARCInstKind Kind) { in CanDecrementRefCount()
639 case ARCInstKind::Retain: in CanDecrementRefCount()
640 case ARCInstKind::RetainRV: in CanDecrementRefCount()
641 case ARCInstKind::Autorelease: in CanDecrementRefCount()
642 case ARCInstKind::AutoreleaseRV: in CanDecrementRefCount()
643 case ARCInstKind::NoopCast: in CanDecrementRefCount()
644 case ARCInstKind::FusedRetainAutorelease: in CanDecrementRefCount()
645 case ARCInstKind::FusedRetainAutoreleaseRV: in CanDecrementRefCount()
646 case ARCInstKind::IntrinsicUser: in CanDecrementRefCount()
647 case ARCInstKind::User: in CanDecrementRefCount()
648 case ARCInstKind::None: in CanDecrementRefCount()
655 case ARCInstKind::RetainBlock: in CanDecrementRefCount()
656 case ARCInstKind::Release: in CanDecrementRefCount()
657 case ARCInstKind::AutoreleasepoolPush: in CanDecrementRefCount()
658 case ARCInstKind::AutoreleasepoolPop: in CanDecrementRefCount()
659 case ARCInstKind::LoadWeakRetained: in CanDecrementRefCount()
660 case ARCInstKind::StoreWeak: in CanDecrementRefCount()
661 case ARCInstKind::InitWeak: in CanDecrementRefCount()
662 case ARCInstKind::LoadWeak: in CanDecrementRefCount()
663 case ARCInstKind::MoveWeak: in CanDecrementRefCount()
664 case ARCInstKind::CopyWeak: in CanDecrementRefCount()
665 case ARCInstKind::DestroyWeak: in CanDecrementRefCount()
666 case ARCInstKind::StoreStrong: in CanDecrementRefCount()
667 case ARCInstKind::CallOrUser: in CanDecrementRefCount()
668 case ARCInstKind::Call: in CanDecrementRefCount()