|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
gen/tools/clang/include/clang/AST/StmtNodes.inc 629 ATOMICEXPR(AtomicExpr, Expr)
tools/clang/include/clang/AST/ASTContext.h 88 class AtomicExpr;
References
include/llvm/ADT/STLExtras.h 75 typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h 58 return To::classof(&Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/AST/ASTContext.h 721 bool AtomicUsesUnsupportedLibcall(const AtomicExpr *E) const;
tools/clang/include/clang/AST/ASTTypeTraits.h 65 return ASTNodeKind(KindToKindId<T>::Id);
234 static DynTypedNode create(const T &Node) {
235 return BaseConverter<T>::create(Node);
259 const T &getUnchecked() const {
260 return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
394 static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
399 static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
401 return *cast<T>(static_cast<const BaseT *>(
474 : public DynCastPtrConverter<T, Stmt> {};
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 2178 extern const internal::VariadicDynCastAllOfMatcher<Stmt, AtomicExpr> atomicExpr;
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h 302 virtual bool matches(const T &Node,
309 return matches(DynNode.getUnchecked<T>(), Finder, Builder);
345 DynTypedMatcher(MatcherInterface<T> *Implementation)
346 : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
436 return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
445 template <typename T> Matcher<T> convertTo() const {
447 return unconditionalConvertTo<T>();
479 class WrapperMatcherInterface : public MatcherInterface<T> {
499 explicit Matcher(MatcherInterface<T> *Implementation)
520 std::is_same<T, QualType>::value &&
529 static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
534 bool matches(const T &Node,
581 return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
994 bool matchesChildOf(const T &Node, const DynTypedMatcher &Matcher,
997 static_assert(std::is_base_of<Decl, T>::value ||
998 std::is_base_of<Stmt, T>::value ||
999 std::is_base_of<NestedNameSpecifier, T>::value ||
1000 std::is_base_of<NestedNameSpecifierLoc, T>::value ||
1001 std::is_base_of<TypeLoc, T>::value ||
1002 std::is_base_of<QualType, T>::value,
1146 template <typename To> operator Matcher<To>() const {
1243 operator Matcher<T>() const {
1245 ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
1246 .template unconditionalConvertTo<T>();
1255 class BindableMatcher : public Matcher<T> {
1257 explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
1258 explicit BindableMatcher(MatcherInterface<T> *Implementation)
1265 Matcher<T> bind(StringRef ID) const {
1285 class HasMatcher : public WrapperMatcherInterface<T> {
1290 bool matches(const T &Node, ASTMatchFinder *Finder,
1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
1376 BindableMatcher<T> makeAllOfComposite(
1377 ArrayRef<const Matcher<T> *> InnerMatchers) {
1388 using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
1395 ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
1397 .template unconditionalConvertTo<T>());
1408 ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
1557 : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
1558 makeDynCastAllOfComposite<SourceT, TargetT>> {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h 199 ast_matchers::internal::Matcher<T> getTypedMatcher() const {
202 ->template convertTo<T>();
227 : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
228 typedef ast_matchers::internal::Matcher<T> MatcherT;
232 return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/include/clang/Sema/Sema.h 4789 AtomicExpr::AtomicOp Op,
11313 AtomicExpr::AtomicOp Op);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h 477 void VisitAtomicExpr(const AtomicExpr *E, ExplodedNode *Pred,
tools/clang/lib/AST/ASTContext.cpp10367 bool ASTContext::AtomicUsesUnsupportedLibcall(const AtomicExpr *E) const {
tools/clang/lib/AST/ASTImporter.cpp 559 ExpectedStmt VisitAtomicExpr(AtomicExpr *E);
6427 ExpectedStmt ASTNodeImporter::VisitAtomicExpr(AtomicExpr *E) {
6443 return new (Importer.getToContext()) AtomicExpr(
tools/clang/lib/AST/StmtPrinter.cpp 1599 void StmtPrinter::VisitAtomicExpr(AtomicExpr *Node) {
1613 if (Node->getOp() != AtomicExpr::AO__c11_atomic_load &&
1614 Node->getOp() != AtomicExpr::AO__atomic_load_n &&
1615 Node->getOp() != AtomicExpr::AO__opencl_atomic_load) {
1619 if (Node->getOp() == AtomicExpr::AO__atomic_exchange ||
1624 if (Node->getOp() == AtomicExpr::AO__atomic_compare_exchange ||
1625 Node->getOp() == AtomicExpr::AO__atomic_compare_exchange_n) {
1629 if (Node->getOp() != AtomicExpr::AO__c11_atomic_init &&
1630 Node->getOp() != AtomicExpr::AO__opencl_atomic_init) {
tools/clang/lib/AST/StmtProfile.cpp 1314 void StmtProfiler::VisitAtomicExpr(const AtomicExpr *S) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 732 const internal::VariadicDynCastAllOfMatcher<Stmt, AtomicExpr> atomicExpr;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h 75 return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
78 static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
79 return Value.getMatcher().getTypedMatcher<T>();
83 return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
466 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
469 DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
778 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/CodeGen/CGAtomic.cpp 357 static void emitAtomicCmpXchg(CodeGenFunction &CGF, AtomicExpr *E, bool IsWeak,
407 static void emitAtomicCmpXchgFailureSet(CodeGenFunction &CGF, AtomicExpr *E,
491 static void EmitAtomicOp(CodeGenFunction &CGF, AtomicExpr *E, Address Dest,
500 case AtomicExpr::AO__c11_atomic_init:
501 case AtomicExpr::AO__opencl_atomic_init:
504 case AtomicExpr::AO__c11_atomic_compare_exchange_strong:
505 case AtomicExpr::AO__opencl_atomic_compare_exchange_strong:
509 case AtomicExpr::AO__c11_atomic_compare_exchange_weak:
510 case AtomicExpr::AO__opencl_atomic_compare_exchange_weak:
514 case AtomicExpr::AO__atomic_compare_exchange:
515 case AtomicExpr::AO__atomic_compare_exchange_n: {
544 case AtomicExpr::AO__c11_atomic_load:
545 case AtomicExpr::AO__opencl_atomic_load:
546 case AtomicExpr::AO__atomic_load_n:
547 case AtomicExpr::AO__atomic_load: {
555 case AtomicExpr::AO__c11_atomic_store:
556 case AtomicExpr::AO__opencl_atomic_store:
557 case AtomicExpr::AO__atomic_store:
558 case AtomicExpr::AO__atomic_store_n: {
566 case AtomicExpr::AO__c11_atomic_exchange:
567 case AtomicExpr::AO__opencl_atomic_exchange:
568 case AtomicExpr::AO__atomic_exchange_n:
569 case AtomicExpr::AO__atomic_exchange:
573 case AtomicExpr::AO__atomic_add_fetch:
576 case AtomicExpr::AO__c11_atomic_fetch_add:
577 case AtomicExpr::AO__opencl_atomic_fetch_add:
578 case AtomicExpr::AO__atomic_fetch_add:
582 case AtomicExpr::AO__atomic_sub_fetch:
585 case AtomicExpr::AO__c11_atomic_fetch_sub:
586 case AtomicExpr::AO__opencl_atomic_fetch_sub:
587 case AtomicExpr::AO__atomic_fetch_sub:
591 case AtomicExpr::AO__opencl_atomic_fetch_min:
592 case AtomicExpr::AO__atomic_fetch_min:
597 case AtomicExpr::AO__opencl_atomic_fetch_max:
598 case AtomicExpr::AO__atomic_fetch_max:
603 case AtomicExpr::AO__atomic_and_fetch:
606 case AtomicExpr::AO__c11_atomic_fetch_and:
607 case AtomicExpr::AO__opencl_atomic_fetch_and:
608 case AtomicExpr::AO__atomic_fetch_and:
612 case AtomicExpr::AO__atomic_or_fetch:
615 case AtomicExpr::AO__c11_atomic_fetch_or:
616 case AtomicExpr::AO__opencl_atomic_fetch_or:
617 case AtomicExpr::AO__atomic_fetch_or:
621 case AtomicExpr::AO__atomic_xor_fetch:
624 case AtomicExpr::AO__c11_atomic_fetch_xor:
625 case AtomicExpr::AO__opencl_atomic_fetch_xor:
626 case AtomicExpr::AO__atomic_fetch_xor:
630 case AtomicExpr::AO__atomic_nand_fetch:
633 case AtomicExpr::AO__atomic_fetch_nand:
648 if (E->getOp() == AtomicExpr::AO__atomic_nand_fetch)
663 static void EmitAtomicOp(CodeGenFunction &CGF, AtomicExpr *Expr, Address Dest,
746 RValue CodeGenFunction::EmitAtomicExpr(AtomicExpr *E) {
758 if (E->getOp() == AtomicExpr::AO__c11_atomic_init ||
759 E->getOp() == AtomicExpr::AO__opencl_atomic_init) {
784 case AtomicExpr::AO__c11_atomic_init:
785 case AtomicExpr::AO__opencl_atomic_init:
788 case AtomicExpr::AO__c11_atomic_load:
789 case AtomicExpr::AO__opencl_atomic_load:
790 case AtomicExpr::AO__atomic_load_n:
793 case AtomicExpr::AO__atomic_load:
797 case AtomicExpr::AO__atomic_store:
801 case AtomicExpr::AO__atomic_exchange:
806 case AtomicExpr::AO__c11_atomic_compare_exchange_strong:
807 case AtomicExpr::AO__c11_atomic_compare_exchange_weak:
808 case AtomicExpr::AO__opencl_atomic_compare_exchange_strong:
809 case AtomicExpr::AO__opencl_atomic_compare_exchange_weak:
810 case AtomicExpr::AO__atomic_compare_exchange_n:
811 case AtomicExpr::AO__atomic_compare_exchange:
813 if (E->getOp() == AtomicExpr::AO__atomic_compare_exchange)
818 if (E->getOp() == AtomicExpr::AO__atomic_compare_exchange_n ||
819 E->getOp() == AtomicExpr::AO__atomic_compare_exchange)
823 case AtomicExpr::AO__c11_atomic_fetch_add:
824 case AtomicExpr::AO__c11_atomic_fetch_sub:
825 case AtomicExpr::AO__opencl_atomic_fetch_add:
826 case AtomicExpr::AO__opencl_atomic_fetch_sub:
843 case AtomicExpr::AO__atomic_fetch_add:
844 case AtomicExpr::AO__atomic_fetch_sub:
845 case AtomicExpr::AO__atomic_add_fetch:
846 case AtomicExpr::AO__atomic_sub_fetch:
847 case AtomicExpr::AO__c11_atomic_store:
848 case AtomicExpr::AO__c11_atomic_exchange:
849 case AtomicExpr::AO__opencl_atomic_store:
850 case AtomicExpr::AO__opencl_atomic_exchange:
851 case AtomicExpr::AO__atomic_store_n:
852 case AtomicExpr::AO__atomic_exchange_n:
853 case AtomicExpr::AO__c11_atomic_fetch_and:
854 case AtomicExpr::AO__c11_atomic_fetch_or:
855 case AtomicExpr::AO__c11_atomic_fetch_xor:
856 case AtomicExpr::AO__opencl_atomic_fetch_and:
857 case AtomicExpr::AO__opencl_atomic_fetch_or:
858 case AtomicExpr::AO__opencl_atomic_fetch_xor:
859 case AtomicExpr::AO__opencl_atomic_fetch_min:
860 case AtomicExpr::AO__opencl_atomic_fetch_max:
861 case AtomicExpr::AO__atomic_fetch_and:
862 case AtomicExpr::AO__atomic_fetch_or:
863 case AtomicExpr::AO__atomic_fetch_xor:
864 case AtomicExpr::AO__atomic_fetch_nand:
865 case AtomicExpr::AO__atomic_and_fetch:
866 case AtomicExpr::AO__atomic_or_fetch:
867 case AtomicExpr::AO__atomic_xor_fetch:
868 case AtomicExpr::AO__atomic_nand_fetch:
869 case AtomicExpr::AO__atomic_fetch_min:
870 case AtomicExpr::AO__atomic_fetch_max:
897 case AtomicExpr::AO__c11_atomic_init:
898 case AtomicExpr::AO__opencl_atomic_init:
901 case AtomicExpr::AO__c11_atomic_fetch_add:
902 case AtomicExpr::AO__opencl_atomic_fetch_add:
903 case AtomicExpr::AO__atomic_fetch_add:
904 case AtomicExpr::AO__c11_atomic_fetch_and:
905 case AtomicExpr::AO__opencl_atomic_fetch_and:
906 case AtomicExpr::AO__atomic_fetch_and:
907 case AtomicExpr::AO__c11_atomic_fetch_or:
908 case AtomicExpr::AO__opencl_atomic_fetch_or:
909 case AtomicExpr::AO__atomic_fetch_or:
910 case AtomicExpr::AO__atomic_fetch_nand:
911 case AtomicExpr::AO__c11_atomic_fetch_sub:
912 case AtomicExpr::AO__opencl_atomic_fetch_sub:
913 case AtomicExpr::AO__atomic_fetch_sub:
914 case AtomicExpr::AO__c11_atomic_fetch_xor:
915 case AtomicExpr::AO__opencl_atomic_fetch_xor:
916 case AtomicExpr::AO__opencl_atomic_fetch_min:
917 case AtomicExpr::AO__opencl_atomic_fetch_max:
918 case AtomicExpr::AO__atomic_fetch_xor:
919 case AtomicExpr::AO__atomic_add_fetch:
920 case AtomicExpr::AO__atomic_and_fetch:
921 case AtomicExpr::AO__atomic_nand_fetch:
922 case AtomicExpr::AO__atomic_or_fetch:
923 case AtomicExpr::AO__atomic_sub_fetch:
924 case AtomicExpr::AO__atomic_xor_fetch:
925 case AtomicExpr::AO__atomic_fetch_min:
926 case AtomicExpr::AO__atomic_fetch_max:
931 case AtomicExpr::AO__atomic_load:
932 case AtomicExpr::AO__atomic_store:
933 case AtomicExpr::AO__atomic_exchange:
934 case AtomicExpr::AO__atomic_compare_exchange:
940 case AtomicExpr::AO__c11_atomic_load:
941 case AtomicExpr::AO__c11_atomic_store:
942 case AtomicExpr::AO__c11_atomic_exchange:
943 case AtomicExpr::AO__c11_atomic_compare_exchange_weak:
944 case AtomicExpr::AO__c11_atomic_compare_exchange_strong:
945 case AtomicExpr::AO__opencl_atomic_load:
946 case AtomicExpr::AO__opencl_atomic_store:
947 case AtomicExpr::AO__opencl_atomic_exchange:
948 case AtomicExpr::AO__opencl_atomic_compare_exchange_weak:
949 case AtomicExpr::AO__opencl_atomic_compare_exchange_strong:
950 case AtomicExpr::AO__atomic_load_n:
951 case AtomicExpr::AO__atomic_store_n:
952 case AtomicExpr::AO__atomic_exchange_n:
953 case AtomicExpr::AO__atomic_compare_exchange_n:
995 case AtomicExpr::AO__c11_atomic_init:
996 case AtomicExpr::AO__opencl_atomic_init:
1006 case AtomicExpr::AO__c11_atomic_compare_exchange_weak:
1007 case AtomicExpr::AO__c11_atomic_compare_exchange_strong:
1008 case AtomicExpr::AO__opencl_atomic_compare_exchange_weak:
1009 case AtomicExpr::AO__opencl_atomic_compare_exchange_strong:
1010 case AtomicExpr::AO__atomic_compare_exchange:
1011 case AtomicExpr::AO__atomic_compare_exchange_n:
1027 case AtomicExpr::AO__c11_atomic_exchange:
1028 case AtomicExpr::AO__opencl_atomic_exchange:
1029 case AtomicExpr::AO__atomic_exchange_n:
1030 case AtomicExpr::AO__atomic_exchange:
1037 case AtomicExpr::AO__c11_atomic_store:
1038 case AtomicExpr::AO__opencl_atomic_store:
1039 case AtomicExpr::AO__atomic_store:
1040 case AtomicExpr::AO__atomic_store_n:
1049 case AtomicExpr::AO__c11_atomic_load:
1050 case AtomicExpr::AO__opencl_atomic_load:
1051 case AtomicExpr::AO__atomic_load:
1052 case AtomicExpr::AO__atomic_load_n:
1057 case AtomicExpr::AO__atomic_add_fetch:
1060 case AtomicExpr::AO__c11_atomic_fetch_add:
1061 case AtomicExpr::AO__opencl_atomic_fetch_add:
1062 case AtomicExpr::AO__atomic_fetch_add:
1069 case AtomicExpr::AO__atomic_and_fetch:
1072 case AtomicExpr::AO__c11_atomic_fetch_and:
1073 case AtomicExpr::AO__opencl_atomic_fetch_and:
1074 case AtomicExpr::AO__atomic_fetch_and:
1081 case AtomicExpr::AO__atomic_or_fetch:
1084 case AtomicExpr::AO__c11_atomic_fetch_or:
1085 case AtomicExpr::AO__opencl_atomic_fetch_or:
1086 case AtomicExpr::AO__atomic_fetch_or:
1093 case AtomicExpr::AO__atomic_sub_fetch:
1096 case AtomicExpr::AO__c11_atomic_fetch_sub:
1097 case AtomicExpr::AO__opencl_atomic_fetch_sub:
1098 case AtomicExpr::AO__atomic_fetch_sub:
1105 case AtomicExpr::AO__atomic_xor_fetch:
1108 case AtomicExpr::AO__c11_atomic_fetch_xor:
1109 case AtomicExpr::AO__opencl_atomic_fetch_xor:
1110 case AtomicExpr::AO__atomic_fetch_xor:
1115 case AtomicExpr::AO__atomic_fetch_min:
1116 case AtomicExpr::AO__opencl_atomic_fetch_min:
1123 case AtomicExpr::AO__atomic_fetch_max:
1124 case AtomicExpr::AO__opencl_atomic_fetch_max:
1133 case AtomicExpr::AO__atomic_nand_fetch:
1136 case AtomicExpr::AO__atomic_fetch_nand:
1189 if (E->getOp() == AtomicExpr::AO__atomic_nand_fetch)
1205 bool IsStore = E->getOp() == AtomicExpr::AO__c11_atomic_store ||
1206 E->getOp() == AtomicExpr::AO__opencl_atomic_store ||
1207 E->getOp() == AtomicExpr::AO__atomic_store ||
1208 E->getOp() == AtomicExpr::AO__atomic_store_n;
1209 bool IsLoad = E->getOp() == AtomicExpr::AO__c11_atomic_load ||
1210 E->getOp() == AtomicExpr::AO__opencl_atomic_load ||
1211 E->getOp() == AtomicExpr::AO__atomic_load ||
1212 E->getOp() == AtomicExpr::AO__atomic_load_n;
tools/clang/lib/CodeGen/CGExprAgg.cpp 204 void VisitAtomicExpr(AtomicExpr *E) {
tools/clang/lib/CodeGen/CGExprComplex.cpp 323 ComplexPairTy VisitAtomicExpr(AtomicExpr *E) {
tools/clang/lib/CodeGen/CGExprScalar.cpp 842 Value *VisitAtomicExpr(AtomicExpr *AE);
4430 Value *ScalarExprEmitter::VisitAtomicExpr(AtomicExpr *E) {
tools/clang/lib/CodeGen/CodeGenFunction.h 4008 RValue EmitAtomicExpr(AtomicExpr *E);
tools/clang/lib/Sema/SemaChecking.cpp 4483 static bool isValidOrderingForOp(int64_t Ordering, AtomicExpr::AtomicOp Op) {
4489 case AtomicExpr::AO__c11_atomic_init:
4490 case AtomicExpr::AO__opencl_atomic_init:
4493 case AtomicExpr::AO__c11_atomic_load:
4494 case AtomicExpr::AO__opencl_atomic_load:
4495 case AtomicExpr::AO__atomic_load_n:
4496 case AtomicExpr::AO__atomic_load:
4500 case AtomicExpr::AO__c11_atomic_store:
4501 case AtomicExpr::AO__opencl_atomic_store:
4502 case AtomicExpr::AO__atomic_store:
4503 case AtomicExpr::AO__atomic_store_n:
4514 AtomicExpr::AtomicOp Op) {
4525 AtomicExpr::AtomicOp Op,
4572 static_assert(AtomicExpr::AO__c11_atomic_init == 0 &&
4573 AtomicExpr::AO__c11_atomic_fetch_xor + 1 ==
4574 AtomicExpr::AO__atomic_load,
4576 bool IsOpenCL = Op >= AtomicExpr::AO__opencl_atomic_init &&
4577 Op <= AtomicExpr::AO__opencl_atomic_fetch_max;
4578 bool IsC11 = (Op >= AtomicExpr::AO__c11_atomic_init &&
4579 Op <= AtomicExpr::AO__c11_atomic_fetch_xor) ||
4581 bool IsN = Op == AtomicExpr::AO__atomic_load_n ||
4582 Op == AtomicExpr::AO__atomic_store_n ||
4583 Op == AtomicExpr::AO__atomic_exchange_n ||
4584 Op == AtomicExpr::AO__atomic_compare_exchange_n;
4589 case AtomicExpr::AO__c11_atomic_init:
4590 case AtomicExpr::AO__opencl_atomic_init:
4594 case AtomicExpr::AO__c11_atomic_load:
4595 case AtomicExpr::AO__opencl_atomic_load:
4596 case AtomicExpr::AO__atomic_load_n:
4600 case AtomicExpr::AO__atomic_load:
4604 case AtomicExpr::AO__c11_atomic_store:
4605 case AtomicExpr::AO__opencl_atomic_store:
4606 case AtomicExpr::AO__atomic_store:
4607 case AtomicExpr::AO__atomic_store_n:
4611 case AtomicExpr::AO__c11_atomic_fetch_add:
4612 case AtomicExpr::AO__c11_atomic_fetch_sub:
4613 case AtomicExpr::AO__opencl_atomic_fetch_add:
4614 case AtomicExpr::AO__opencl_atomic_fetch_sub:
4615 case AtomicExpr::AO__opencl_atomic_fetch_min:
4616 case AtomicExpr::AO__opencl_atomic_fetch_max:
4617 case AtomicExpr::AO__atomic_fetch_add:
4618 case AtomicExpr::AO__atomic_fetch_sub:
4619 case AtomicExpr::AO__atomic_add_fetch:
4620 case AtomicExpr::AO__atomic_sub_fetch:
4623 case AtomicExpr::AO__c11_atomic_fetch_and:
4624 case AtomicExpr::AO__c11_atomic_fetch_or:
4625 case AtomicExpr::AO__c11_atomic_fetch_xor:
4626 case AtomicExpr::AO__opencl_atomic_fetch_and:
4627 case AtomicExpr::AO__opencl_atomic_fetch_or:
4628 case AtomicExpr::AO__opencl_atomic_fetch_xor:
4629 case AtomicExpr::AO__atomic_fetch_and:
4630 case AtomicExpr::AO__atomic_fetch_or:
4631 case AtomicExpr::AO__atomic_fetch_xor:
4632 case AtomicExpr::AO__atomic_fetch_nand:
4633 case AtomicExpr::AO__atomic_and_fetch:
4634 case AtomicExpr::AO__atomic_or_fetch:
4635 case AtomicExpr::AO__atomic_xor_fetch:
4636 case AtomicExpr::AO__atomic_nand_fetch:
4640 case AtomicExpr::AO__atomic_fetch_min:
4641 case AtomicExpr::AO__atomic_fetch_max:
4646 case AtomicExpr::AO__c11_atomic_exchange:
4647 case AtomicExpr::AO__opencl_atomic_exchange:
4648 case AtomicExpr::AO__atomic_exchange_n:
4652 case AtomicExpr::AO__atomic_exchange:
4656 case AtomicExpr::AO__c11_atomic_compare_exchange_strong:
4657 case AtomicExpr::AO__c11_atomic_compare_exchange_weak:
4658 case AtomicExpr::AO__opencl_atomic_compare_exchange_strong:
4659 case AtomicExpr::AO__opencl_atomic_compare_exchange_weak:
4663 case AtomicExpr::AO__atomic_compare_exchange:
4664 case AtomicExpr::AO__atomic_compare_exchange_n:
4670 if (IsOpenCL && Op != AtomicExpr::AO__opencl_atomic_init)
4964 if (auto ScopeModel = AtomicExpr::getScopeModel(Op)) {
4975 AtomicExpr *AE = new (Context)
4976 AtomicExpr(ExprRange.getBegin(), SubExprs, ResultType, Op, RParenLoc);
4978 if ((Op == AtomicExpr::AO__c11_atomic_load ||
4979 Op == AtomicExpr::AO__c11_atomic_store ||
4980 Op == AtomicExpr::AO__opencl_atomic_load ||
4981 Op == AtomicExpr::AO__opencl_atomic_store ) &&
4984 << ((Op == AtomicExpr::AO__c11_atomic_load ||
4985 Op == AtomicExpr::AO__opencl_atomic_load)
tools/clang/lib/Serialization/ASTReaderStmt.cpp 1148 void ASTStmtReader::VisitAtomicExpr(AtomicExpr *E) {
1151 E->NumSubExprs = AtomicExpr::getNumSubExprs(E->Op);
3505 S = new (Context) AtomicExpr(Empty);
tools/clang/lib/Serialization/ASTWriterStmt.cpp 1061 void ASTStmtWriter::VisitAtomicExpr(AtomicExpr *E) {
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp 3195 if (const auto *AE = dyn_cast<AtomicExpr>(S)) {
3195 if (const auto *AE = dyn_cast<AtomicExpr>(S)) {
3196 AtomicExpr::AtomicOp Op = AE->getOp();
3197 if (Op == AtomicExpr::AO__c11_atomic_fetch_add ||
3198 Op == AtomicExpr::AO__c11_atomic_fetch_sub) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp 1734 VisitAtomicExpr(cast<AtomicExpr>(S), Pred, Dst);
2641 void ExprEngine::VisitAtomicExpr(const AtomicExpr *AE, ExplodedNode *Pred,
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
326 : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
354 : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
381 : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
567 : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 is_void<_Tp>>>::type
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
631 : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
798 typedef decltype(__test<_Tp>(0)) type;
811 remove_all_extents<_Tp>::type>::type
825 : public __is_destructible_safe<_Tp>::type
1447 : public __and_<is_destructible<_Tp>, integral_constant<bool,
1554 { typedef _Tp type; };
1558 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1580 { typedef _Tp const type; };
1629 { typedef _Tp type; };
1659 { typedef _Tp&& type; };
1955 { typedef _Tp type; };
1999 { typedef typename remove_reference<_Tp>::type* type; };
2003 : public __add_pointer_helper<_Tp>