Home
last modified time | relevance | path

Searched refs:DERIVED (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTFwd.h20 #define DECL(DERIVED, BASE) class DERIVED##Decl; argument
23 #define STMT(DERIVED, BASE) class DERIVED; argument
26 #define TYPE(DERIVED, BASE) class DERIVED##Type; argument
H A DStmtIterator.h76 template <typename DERIVED, typename REFERENCE>
93 DERIVED& operator++() {
101 return static_cast<DERIVED&>(*this);
104 DERIVED operator++(int) {
105 DERIVED tmp = static_cast<DERIVED&>(*this);
110 friend bool operator==(const DERIVED &LHS, const DERIVED &RHS) {
115 friend bool operator!=(const DERIVED &LHS, const DERIVED &RHS) {
H A DDeclVisitor.h39 #define DECL(DERIVED, BASE) \ in Visit() argument
40 case Decl::DERIVED: DISPATCH(DERIVED##Decl, DERIVED##Decl); in Visit()
49 #define DECL(DERIVED, BASE) \ argument
50 RetTy Visit##DERIVED##Decl(PTR(DERIVED##Decl) D) { DISPATCH(BASE, BASE); }
H A DASTTypeTraits.h148 #define DECL(DERIVED, BASE) NKI_##DERIVED##Decl, argument
151 #define STMT(DERIVED, BASE) NKI_##DERIVED, argument
154 #define TYPE(DERIVED, BASE) NKI_##DERIVED##Type, argument
219 #define DECL(DERIVED, BASE) KIND_TO_KIND_ID(DERIVED##Decl)
221 #define STMT(DERIVED, BASE) KIND_TO_KIND_ID(DERIVED)
223 #define TYPE(DERIVED, BASE) KIND_TO_KIND_ID(DERIVED##Type)
H A DDeclBase.h87 #define DECL(DERIVED, BASE) DERIVED, argument
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DTemplate.h530 #define DECL(DERIVED, BASE) \ argument
531 Decl *Visit ## DERIVED ## Decl(DERIVED ## Decl *D);
536 #define FILESCOPEASM(DERIVED, BASE) argument
537 #define IMPORT(DERIVED, BASE) argument
538 #define EXPORT(DERIVED, BASE) argument
539 #define LINKAGESPEC(DERIVED, BASE) argument
541 #define OBJCMETHOD(DERIVED, BASE) argument
543 #define OBJCIVAR(DERIVED, BASE) argument
546 #define EMPTY(DERIVED, BASE) argument
550 #define BLOCK(DERIVED, BASE) argument
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DASTTypeTraits.cpp41 #define DECL(DERIVED, BASE) { NKI_##BASE, #DERIVED "Decl" }, argument
44 #define STMT(DERIVED, BASE) { NKI_##BASE, #DERIVED }, argument
47 #define TYPE(DERIVED, BASE) { NKI_##BASE, #DERIVED "Type" }, argument
107 #define DECL(DERIVED, BASE) \ in getFromNode() argument
108 case Decl::DERIVED: return ASTNodeKind(NKI_##DERIVED##Decl); in getFromNode()
H A DDeclBase.cpp59 #define DECL(DERIVED, BASE) static int n##DERIVED##s = 0; argument
126 #define DECL(DERIVED, BASE) case DERIVED: return #DERIVED; in getDeclKindName() argument
157 #define DECL(DERIVED, BASE) case Decl::DERIVED: return #DERIVED; in getDeclKindName() argument
173 #define DECL(DERIVED, BASE) totalDecls += n##DERIVED##s; in PrintStats() argument
179 #define DECL(DERIVED, BASE) \ in PrintStats() argument
180 if (n##DERIVED##s > 0) { \ in PrintStats()
181 totalBytes += (int)(n##DERIVED##s * sizeof(DERIVED##Decl)); \ in PrintStats()
182 llvm::errs() << " " << n##DERIVED##s << " " #DERIVED " decls, " \ in PrintStats()
183 << sizeof(DERIVED##Decl) << " each (" \ in PrintStats()
184 << n##DERIVED##s * sizeof(DERIVED##Decl) \ in PrintStats()
[all …]
H A DASTStructuralEquivalence.cpp2262 #define DECL(DERIVED, BASE) \ in CheckKindSpecificEquivalence() argument
2263 case Decl::Kind::DERIVED: \ in CheckKindSpecificEquivalence()
2264 return ::IsStructurallyEquivalent(*this, static_cast<DERIVED##Decl *>(D1), \ in CheckKindSpecificEquivalence()
2265 static_cast<DERIVED##Decl *>(D2)); in CheckKindSpecificEquivalence()
H A DJSONNodeDumper.cpp11 #define DECL(DERIVED, BASE) \ in addPreviousDeclaration() argument
12 case Decl::DERIVED: \ in addPreviousDeclaration()
13 return writePreviousDeclImpl(cast<DERIVED##Decl>(D)); in addPreviousDeclaration()
H A DTextNodeDumper.cpp51 #define DECL(DERIVED, BASE) \ in dumpPreviousDecl() argument
52 case Decl::DERIVED: \ in dumpPreviousDecl()
53 return dumpPreviousDeclImpl(OS, cast<DERIVED##Decl>(D)); in dumpPreviousDecl()
/llvm-project-15.0.7/llvm/test/Transforms/RewriteStatepointsForGC/
H A Dbase-pointers-13.ll9 ; CHECK-NEXT: [[DERIVED:%.*]] = getelementptr i8, i8 addrspace(1)* @global, i64 [[OFFSET:%.*]]
11 ; CHECK-NEXT: [[LOAD:%.*]] = load i8, i8 addrspace(1)* [[DERIVED]], align 1
H A Dbase-vector.ll104 ; CHECK-NEXT: [[DERIVED:%.*]] = getelementptr i64, i64 addrspace(1)* [[PTR:%.*]], i64 16
106 … [[VECA:%.*]] = insertelement <2 x i64 addrspace(1)*> undef, i64 addrspace(1)* [[DERIVED]], i32 0
H A Dbase-vector-inseltpoison.ll102 ; CHECK-NEXT: [[DERIVED:%.*]] = getelementptr i64, i64 addrspace(1)* [[PTR:%.*]], i64 16
104 … [[VECA:%.*]] = insertelement <2 x i64 addrspace(1)*> poison, i64 addrspace(1)* [[DERIVED]], i32 0
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dfold-implementation.h1460 template <typename DERIVED, typename RESULT, typename LEFT, typename RIGHT>
1462 Operation<DERIVED, RESULT, LEFT, RIGHT> &operation) { in ComputeResultLength() argument
1473 template <typename DERIVED, typename RESULT, typename OPERAND>
1475 Operation<DERIVED, RESULT, OPERAND> &operation,
1490 template <typename DERIVED, typename RESULT, typename OPERAND>
1497 return Expr<RESULT>{DERIVED{std::move(operand)}};
1501 template <typename DERIVED, typename RESULT, typename LEFT, typename RIGHT>
1503 Operation<DERIVED, RESULT, LEFT, RIGHT> &operation,
1547 template <typename DERIVED, typename RESULT, typename LEFT, typename RIGHT>
1745 template <typename DERIVED, typename RESULT, typename LEFT, typename RIGHT>
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DRegionStore.cpp685 template <typename DERIVED>
735 static_cast<DERIVED*>(this)->VisitAddedToCluster(Base, Cluster); in GenerateClusters()
739 if (static_cast<DERIVED*>(this)->includeEntireMemorySpace(Base)) in GenerateClusters()
752 return static_cast<DERIVED*>(this)->AddToWorkList(R); in AddToWorkList()
760 static_cast<DERIVED*>(this)->VisitCluster(BaseR, getCluster(BaseR)); in RunWorkList()
769 static_cast<DERIVED*>(this)->VisitCluster(BaseR, C); in VisitCluster()
/llvm-project-15.0.7/flang/include/flang/Evaluate/
H A Dexpression.h112 template <typename DERIVED, typename RESULT, typename... OPERANDS>
120 using Derived = DERIVED;
/llvm-project-15.0.7/flang/test/Fir/
H A Dconvert-to-llvm.fir2544 // CHECK: %[[DERIVED:.*]] = llvm.bitcast %[[VAL_18]] : !llvm.ptr<i8> to !llvm.ptr<struct<"d…
2545 // CHECK: %[[VAL_20:.*]] = llvm.getelementptr %[[DERIVED]][%[[VAL_3]], 1] : (!llvm.ptr<stru…