reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

gen/tools/clang/include/clang/AST/TypeNodes.inc
   23 TYPE(Atomic, Type)
tools/clang/lib/CodeGen/CodeGenModule.h
   53 class AtomicType;

References

include/llvm/ADT/FoldingSet.h
  221   static void Profile(const T &X, FoldingSetNodeID &ID) {
  224   static void Profile(T &X, FoldingSetNodeID &ID) {
  232   static inline bool Equals(T &X, const FoldingSetNodeID &ID, unsigned IDHash,
  240   static inline unsigned ComputeHash(T &X, FoldingSetNodeID &TempID);
  250   : public DefaultFoldingSetTrait<T> {};
  369   FoldingSetTrait<T>::Profile(X, TempID);
  375   FoldingSetTrait<T>::Profile(X, TempID);
  410   using iterator = FoldingSetIterator<T>;
  415   using const_iterator = FoldingSetIterator<const T>;
  420   using bucket_iterator = FoldingSetBucketIterator<T>;
  432   bool RemoveNode(T *N) { return FoldingSetBase::RemoveNode(N); }
  437   T *GetOrInsertNode(T *N) {
  437   T *GetOrInsertNode(T *N) {
  444   T *FindNodeOrInsertPos(const FoldingSetNodeID &ID, void *&InsertPos) {
  451   void InsertNode(T *N, void *InsertPos) {
  457   void InsertNode(T *N) {
  473 template <class T> class FoldingSet final : public FoldingSetImpl<T> {
  474   using Super = FoldingSetImpl<T>;
  480     T *TN = static_cast<T *>(N);
  481     FoldingSetTrait<T>::Profile(*TN, ID);
  488     T *TN = static_cast<T *>(N);
  489     return FoldingSetTrait<T>::Equals(*TN, ID, IDHash, TempID);
  495     T *TN = static_cast<T *>(N);
  496     return FoldingSetTrait<T>::ComputeHash(*TN, TempID);
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,
  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;
  218   static typename cast_retty<To, From>::ret_type doit(From &Val) {
  219     return cast_convert_val<To, SimpleFrom,
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  248                                typename cast_retty<X, const Y>::ret_type>::type
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  331                             typename cast_retty<X, const Y>::ret_type>::type
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  338   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  338   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  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
  226   mutable llvm::FoldingSet<AtomicType> AtomicTypes;
tools/clang/include/clang/AST/ASTNodeTraverser.h
  339   void VisitAtomicType(const AtomicType *T) { Visit(T->getValueType()); }
tools/clang/include/clang/AST/ASTTypeTraits.h
   65     return ASTNodeKind(KindToKindId<T>::Id);
   65     return ASTNodeKind(KindToKindId<T>::Id);
   65     return ASTNodeKind(KindToKindId<T>::Id);
  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 *>(
  479     : public DynCastPtrConverter<T, Type> {};
tools/clang/include/clang/AST/RecursiveASTVisitor.h
 1102 DEF_TRAVERSE_TYPE(AtomicType, { TRY_TO(TraverseType(T->getValueType())); })
 1357 DEF_TRAVERSE_TYPELOC(AtomicType, { TRY_TO(TraverseTypeLoc(TL.getValueLoc())); })
tools/clang/include/clang/AST/Type.h
 6509   return isa<AtomicType>(CanonicalType);
 6858 template <typename T> const T *Type::getAs() const {
 6859   static_assert(!TypeIsArrayType<T>::value,
 6863   if (const auto *Ty = dyn_cast<T>(this))
 6863   if (const auto *Ty = dyn_cast<T>(this))
 6867   if (!isa<T>(CanonicalType))
 6872   return cast<T>(getUnqualifiedDesugaredType());
 6923 template <typename T> const T *Type::castAs() const {
 6924   static_assert(!TypeIsArrayType<T>::value,
 6927   if (const auto *ty = dyn_cast<T>(this)) return ty;
 6927   if (const auto *ty = dyn_cast<T>(this)) return ty;
 6929   return cast<T>(getUnqualifiedDesugaredType());
tools/clang/include/clang/AST/TypeLoc.h
  370     return TypeClass::classof(Ty);
  405   const TypeClass *getTypePtr() const {
  406     return cast<TypeClass>(Base::getTypePtr());
 2241                                              AtomicType, AtomicTypeLocInfo> {
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 5520 extern const AstTypeMatcher<AtomicType> atomicType;
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>());
 1067   using head = T1;
 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 {
 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>> {
 1625 class TypeTraverseMatcher : public WrapperMatcherInterface<T> {
 1632   bool matches(const T &Node, ASTMatchFinder *Finder,
 1693   template <typename OuterT> operator Matcher<OuterT>() const {
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/lib/AST/ASTContext.cpp
 2179     TypeInfo Info = getTypeInfo(cast<AtomicType>(T)->getValueType());
 3301     const auto *at = cast<AtomicType>(ty);
 3301     const auto *at = cast<AtomicType>(ty);
 5034   AtomicType::Profile(ID, T);
 5037   if (AtomicType *AT = AtomicTypes.FindNodeOrInsertPos(ID, InsertPos))
 5047     AtomicType *NewIP = AtomicTypes.FindNodeOrInsertPos(ID, InsertPos);
 5050   auto *New = new (*this, TypeAlignment) AtomicType(T, Canonical);
 5050   auto *New = new (*this, TypeAlignment) AtomicType(T, Canonical);
 6825     const auto *AT = T->castAs<AtomicType>();
 6825     const auto *AT = T->castAs<AtomicType>();
 9024     QualType LHSValue = LHS->castAs<AtomicType>()->getValueType();
 9025     QualType RHSValue = RHS->castAs<AtomicType>()->getValueType();
tools/clang/lib/AST/ASTImporter.cpp
  309     ExpectedType VisitAtomicType(const AtomicType *T);
  970 ExpectedType ASTNodeImporter::VisitAtomicType(const AtomicType *T){
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
  928     if (!IsStructurallyEquivalent(Context, cast<AtomicType>(T1)->getValueType(),
  929                                   cast<AtomicType>(T2)->getValueType()))
tools/clang/lib/AST/Expr.cpp
 4644   if (auto AT = T->getAs<AtomicType>())
tools/clang/lib/AST/ExprConstant.cpp
 2170   if (const AtomicType *AT = Type->getAs<AtomicType>())
 2170   if (const AtomicType *AT = Type->getAs<AtomicType>())
10065         CanTy->castAs<AtomicType>()->getValueType(), LangOpts);
13120         E->getType()->castAs<AtomicType>()->getValueType());
tools/clang/lib/AST/Interp/Context.cpp
  109   if (auto *AT = dyn_cast<AtomicType>(T))
tools/clang/lib/AST/Interp/EvalEmitter.cpp
  111     if (auto *AT = Ty->getAs<AtomicType>())
tools/clang/lib/AST/Interp/Program.cpp
  352   if (auto *AT = Ty->getAs<AtomicType>()) {
tools/clang/lib/AST/ItaniumMangle.cpp
 3438 void CXXNameMangler::mangleType(const AtomicType *T) {
tools/clang/lib/AST/MicrosoftMangle.cpp
 2922 void MicrosoftCXXNameMangler::mangleType(const AtomicType *T, Qualifiers,
tools/clang/lib/AST/Type.cpp
 1166   QualType VisitAtomicType(const AtomicType *T) {
 1437   if (const auto AT = getTypePtr()->getAs<AtomicType>())
 2436   if (const auto *AT = BaseTy->getAs<AtomicType>())
 2436   if (const auto *AT = BaseTy->getAs<AtomicType>())
 3705     return Cache::get(cast<AtomicType>(T)->getValueType());
 3789     return computeTypeLinkageInfo(cast<AtomicType>(T)->getValueType());
tools/clang/lib/AST/TypePrinter.cpp
 1083 void TypePrinter::printAtomicBefore(const AtomicType *T, raw_ostream &OS) {
 1092 void TypePrinter::printAtomicAfter(const AtomicType *T, raw_ostream &OS) {}
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  814 const AstTypeMatcher<AtomicType> atomicType;
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/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGAtomic.cpp
   50         if (auto *ATy = AtomicTy->getAs<AtomicType>())
  749   if (const AtomicType *AT = AtomicTy->getAs<AtomicType>())
  749   if (const AtomicType *AT = AtomicTy->getAs<AtomicType>())
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 2746 llvm::DIType *CGDebugInfo::CreateType(const AtomicType *Ty, llvm::DIFile *U) {
 3055     return CreateType(cast<AtomicType>(Ty), Unit);
tools/clang/lib/CodeGen/CGDebugInfo.h
  183   llvm::DIType *CreateType(const AtomicType *Ty, llvm::DIFile *F);
tools/clang/lib/CodeGen/CGExpr.cpp
 1259     if (const AtomicType *AT = Ty->getAs<AtomicType>())
 1259     if (const AtomicType *AT = Ty->getAs<AtomicType>())
 1538   if (const AtomicType *AT = Ty->getAs<AtomicType>())
 1538   if (const AtomicType *AT = Ty->getAs<AtomicType>())
tools/clang/lib/CodeGen/CGExprComplex.cpp
   37     return cast<ComplexType>(cast<AtomicType>(type)->getValueType());
  892   if (const AtomicType *AT = LHSTy->getAs<AtomicType>())
  892   if (const AtomicType *AT = LHSTy->getAs<AtomicType>())
tools/clang/lib/CodeGen/CGExprConstant.cpp
 1589   if (auto AT = type->getAs<AtomicType>()) {
 1671   if (auto AT = destType->getAs<AtomicType>()) {
tools/clang/lib/CodeGen/CGExprScalar.cpp
 2361   if (const AtomicType *atomicTy = type->getAs<AtomicType>()) {
 2361   if (const AtomicType *atomicTy = type->getAs<AtomicType>()) {
 2845   if (const AtomicType *atomicTy = LHSTy->getAs<AtomicType>()) {
 2845   if (const AtomicType *atomicTy = LHSTy->getAs<AtomicType>()) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  235       type = cast<AtomicType>(type)->getValueType();
 1990       type = cast<AtomicType>(ty)->getValueType();
tools/clang/lib/CodeGen/CodeGenModule.h
  753   bool isPaddedAtomicType(const AtomicType *type);
tools/clang/lib/CodeGen/CodeGenTypes.cpp
  160   if (const auto *AT = T->getAs<AtomicType>())
  160   if (const auto *AT = T->getAs<AtomicType>())
  674     QualType valueType = cast<AtomicType>(Ty)->getValueType();
  704   return isPaddedAtomicType(type->castAs<AtomicType>());
  707 bool CodeGenModule::isPaddedAtomicType(const AtomicType *type) {
tools/clang/lib/Sema/SemaChecking.cpp
 4716     ValType = AtomTy->castAs<AtomicType>()->getValueType();
10085     if (const AtomicType *AT = dyn_cast<AtomicType>(T))
10085     if (const AtomicType *AT = dyn_cast<AtomicType>(T))
10130     if (const AtomicType *AT = dyn_cast<AtomicType>(T))
10130     if (const AtomicType *AT = dyn_cast<AtomicType>(T))
10200   if (const AtomicType *AtomicRHS = Ty->getAs<AtomicType>())
10200   if (const AtomicType *AtomicRHS = Ty->getAs<AtomicType>())
10683   if (const auto *AT = OtherT->getAs<AtomicType>())
10683   if (const auto *AT = OtherT->getAs<AtomicType>())
tools/clang/lib/Sema/SemaExpr.cpp
  646   if (const AtomicType *Atomic = T->getAs<AtomicType>()) {
  646   if (const AtomicType *Atomic = T->getAs<AtomicType>()) {
 1358   if (const AtomicType *AtomicLHS = LHSType->getAs<AtomicType>())
 1358   if (const AtomicType *AtomicLHS = LHSType->getAs<AtomicType>())
 4137       T = cast<AtomicType>(Ty)->getValueType();
 8177   if (const AtomicType *AtomicTy = dyn_cast<AtomicType>(LHSType)) {
 8177   if (const AtomicType *AtomicTy = dyn_cast<AtomicType>(LHSType)) {
 9385   if (const AtomicType *ResAtomicType = ResType->getAs<AtomicType>())
 9385   if (const AtomicType *ResAtomicType = ResType->getAs<AtomicType>())
 9406   if (const AtomicType *ResAtomicType = ResType->getAs<AtomicType>())
 9406   if (const AtomicType *ResAtomicType = ResType->getAs<AtomicType>())
12126   if (const AtomicType *ResAtomicType = ResType->getAs<AtomicType>())
12126   if (const AtomicType *ResAtomicType = ResType->getAs<AtomicType>())
tools/clang/lib/Sema/SemaExprCXX.cpp
 3945   if (const AtomicType *ToAtomic = ToType->getAs<AtomicType>()) {
 3945   if (const AtomicType *ToAtomic = ToType->getAs<AtomicType>()) {
 3954     if (const AtomicType *FromAtomic = FromType->getAs<AtomicType>()) {
 3954     if (const AtomicType *FromAtomic = FromType->getAs<AtomicType>()) {
tools/clang/lib/Sema/SemaInit.cpp
 5852     if (const AtomicType *Atomic = DestType->getAs<AtomicType>()) {
 5852     if (const AtomicType *Atomic = DestType->getAs<AtomicType>()) {
tools/clang/lib/Sema/SemaLookup.cpp
 2956       T = cast<AtomicType>(T)->getValueType().getTypePtr();
tools/clang/lib/Sema/SemaOverload.cpp
 1718     if (const AtomicType *Atomic = FromType->getAs<AtomicType>())
 1718     if (const AtomicType *Atomic = FromType->getAs<AtomicType>())
 3223   const AtomicType *ToAtomic = ToType->getAs<AtomicType>();
 3223   const AtomicType *ToAtomic = ToType->getAs<AtomicType>();
tools/clang/lib/Sema/SemaTemplate.cpp
 5673 bool UnnamedLocalNoLinkageFinder::VisitAtomicType(const AtomicType* T) {
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 1528       if (const AtomicType *AtomicArg = Arg->getAs<AtomicType>())
 1528       if (const AtomicType *AtomicArg = Arg->getAs<AtomicType>())
 1530                                        cast<AtomicType>(Param)->getValueType(),
 5522                                  cast<AtomicType>(T)->getValueType(),
tools/clang/lib/Sema/TreeTransform.h
 5935   QualType ValueType = getDerived().TransformType(TLB, TL.getValueLoc());
 5935   QualType ValueType = getDerived().TransformType(TLB, TL.getValueLoc());
 5939   QualType Result = TL.getType();
 5941       ValueType != TL.getValueLoc().getType()) {
 5942     Result = getDerived().RebuildAtomicType(ValueType, TL.getKWLoc());
 5947   AtomicTypeLoc NewTL = TLB.push<AtomicTypeLoc>(Result);
 5948   NewTL.setKWLoc(TL.getKWLoc());
 5949   NewTL.setLParenLoc(TL.getLParenLoc());
 5950   NewTL.setRParenLoc(TL.getRParenLoc());
tools/clang/lib/Serialization/ASTWriter.cpp
  573 ASTTypeWriter::VisitAtomicType(const AtomicType *T) {
tools/lldb/source/Symbol/ClangASTImporter.cpp
  794   if (const AtomicType *atomic_type = type->getAs<AtomicType>()) {
  794   if (const AtomicType *atomic_type = type->getAs<AtomicType>()) {
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
  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
  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; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1659     { typedef _Tp&&   type; };
 1955     { typedef _Tp     type; };