Home
last modified time | relevance | path

Searched refs:derived (Results 1 – 25 of 380) sorted by relevance

12345678910>>...16

/llvm-project-15.0.7/flang/test/Semantics/
H A Dresolve69.f9033 type derived(typeKind, typeLen) type
38 end type derived
40 type (derived(constVal, 3)) :: constDerivedKind
43 type (derived(nonConstVal, 3)) :: nonConstDerivedKind
46 type (derived(3, constVal)) :: constDerivedLen
49 type (derived(3, nonConstVal)) :: nonConstDerivedLen
51 type (derived(3, :)) :: colonDerivedLen
54 type (derived( :, :)) :: colonDerivedLen1
55 type (derived( :, :)), pointer :: colonDerivedLen2
56 type (derived(4, :)), pointer :: colonDerivedLen3
H A Dresolve74.f907 type derived(param) type
10 type(derived(34)) :: a
14 procedure(type(derived(param =*))) :: externDerivedFunc
24 type(derived(param=4)) :: works
35 type(derived(param=*)) :: fails2
H A Dresolve73.f9018 type derived(param) type
22 type(derived(34)) :: a
34 class is (derived(param=*))
H A Dresolve89.f9095 type derived(kindParam, lenParam) type
102 type(derived), intent(in), dimension(3) :: derivedArg
105 type(derived), parameter :: localderived = derived()
/llvm-project-15.0.7/flang/runtime/
H A Dderived.cpp19 const Descriptor &componentDesc{derived.component()}; in Initialize()
82 const Descriptor &procPtrDesc{derived.procPtr()}; in Initialize()
97 const typeInfo::DerivedType &derived, int rank) { in FindFinal() argument
98 if (const auto *ranked{derived.FindSpecialBinding( in FindFinal()
105 return derived.FindSpecialBinding( in FindFinal()
141 tmpDesc.Addendum()->set_derivedType(&derived); in CallFinalSubroutine()
157 CallFinalSubroutine(descriptor, derived); in Finalize()
158 const auto *parentType{derived.GetParentType()}; in Finalize()
217 const typeInfo::DerivedType &derived) { in Destroy() argument
221 if (finalize && !derived.noFinalizationNeeded()) { in Destroy()
[all …]
H A Dderived-api.cpp23 if (const auto *derived{addendum->derivedType()}) { in RTNAME() local
24 if (!derived->noInitializationNeeded()) { in RTNAME()
26 Initialize(descriptor, *derived, terminator); in RTNAME()
34 if (const auto *derived{addendum->derivedType()}) { in RTNAME() local
35 if (!derived->noDestructionNeeded()) { in RTNAME()
36 Destroy(descriptor, true, *derived); in RTNAME()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DCodeGenPassBuilder.h457 const DerivedT &derived() const { in derived() function
477 derived().addAsmPrinter( in buildPipeline()
601 derived().addIRPasses(addPass); in addISelPasses()
604 derived().addISelPrepare(addPass); in addISelPasses()
732 derived().addPreISel(addPass); in addISelPrepare()
857 derived().addPreRegAlloc(addPass); in addMachinePasses()
889 derived().addPreSched2(addPass); in addMachinePasses()
906 derived().addGCPasses(addPass); in addMachinePasses()
918 derived().addPreEmitPass(addPass); in addMachinePasses()
973 derived().addILPOpts(addPass); in addMachineSSAOptimization()
[all …]
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dtools.cpp505 return FindParentTypeSpec(*derived); in FindParentTypeSpec()
616 derived->HasDestruction(); in IsDestructible()
763 const DerivedTypeSpec &derived) { in FindPolymorphicPotentialComponent() argument
1154 const DerivedTypeSpec &derived) { in Create() argument
1192 return derived; in PlanComponentTraversal()
1285 const DerivedTypeSpec &derived) { in FindCoarrayUltimateComponent() argument
1292 const DerivedTypeSpec &derived) { in FindPointerUltimateComponent() argument
1298 const DerivedTypeSpec &derived) { in FindEventOrLockPotentialComponent() argument
1311 const DerivedTypeSpec &derived) { in FindAllocatableUltimateComponent() argument
1317 const DerivedTypeSpec &derived) { in FindAllocatableOrPointerDirectComponent() argument
[all …]
H A Dcheck-select-type.cpp103 const DerivedTypeSpec *derived{spec->AsDerived()}; in PassesChecksOnGuard() local
105 *derived, parser::FindSourceLocation(typeSpec)); in PassesChecksOnGuard()
111 const semantics::DerivedTypeSpec *derived{x.derivedTypeSpec}; in PassesChecksOnGuard() local
113 *derived, parser::FindSourceLocation(x)); in PassesChecksOnGuard()
119 bool PassesDerivedTypeChecks(const semantics::DerivedTypeSpec &derived, in PassesDerivedTypeChecks() argument
121 for (const auto &pair : derived.parameters()) { in PassesDerivedTypeChecks()
129 if (!IsExtensibleType(&derived)) { // C1161 in PassesDerivedTypeChecks()
136 if (const semantics::Scope * guardScope{derived.typeSymbol().scope()}) { in PassesDerivedTypeChecks()
139 if (!derived.Match(*selDerivedTypeSpec) && in PassesDerivedTypeChecks()
144 derived.AsFortran(), selDerivedTypeSpec->AsFortran()); in PassesDerivedTypeChecks()
H A Dcheck-allocate.cpp115 if (const DerivedTypeSpec * derived{info.typeSpec->AsDerived()}) { in CheckAllocateOptions() local
117 if (auto it{FindCoarrayUltimateComponent(*derived)}) { in CheckAllocateOptions()
201 derived{evaluate::GetDerivedTypeSpec(info.sourceExprType)}) { in CheckAllocateOptions() local
203 if (auto it{FindCoarrayUltimateComponent(*derived)}) { in CheckAllocateOptions()
214 if (IsEventTypeOrLockType(derived)) { in CheckAllocateOptions()
548 derived{allocateInfo_.typeSpec->AsDerived()}) { in RunCoarrayRelatedChecks() local
549 if (IsTeamType(derived)) { in RunCoarrayRelatedChecks()
555 } else if (IsIsoCType(derived)) { in RunCoarrayRelatedChecks()
567 if (const auto *derived{evaluate::GetDerivedTypeSpec(sourceType)}) { in RunCoarrayRelatedChecks() local
568 if (IsTeamType(derived)) { in RunCoarrayRelatedChecks()
[all …]
H A Ddata-to-inits.cpp478 if (const DerivedTypeSpec * derived{object->type()->AsDerived()}) { in HasDefaultInitialization() local
479 DirectComponentIterator directs{*derived}; in HasDefaultInitialization()
485 return derived; in HasDefaultInitialization()
498 std::size_t offset, const DerivedTypeSpec &derived,
502 std::size_t offset, const DerivedTypeSpec &derived, in PopulateWithComponentDefaults() argument
505 const Scope &scope{derived.scope() ? *derived.scope() in PopulateWithComponentDefaults()
513 PopulateWithComponentDefaults(init, offset, derived, foldingContext); in PopulateWithComponentDefaults()
521 std::size_t offset, const DerivedTypeSpec &derived, in PopulateWithComponentDefaults() argument
524 derived.scope() ? *derived.scope() : DEREF(derived.typeSymbol().scope())}; in PopulateWithComponentDefaults()
718 if (const auto *derived{HasDefaultInitialization(s)}) { in CombineEquivalencedInitialization() local
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DDerivedAttributeOpInterface.td9 // This file contains a set of interfaces for derived attribute op interface.
20 Interface to query derived attribute characteristics.
22 Derived attributes are not stored in the operation but are instead derived
24 derived attributes and can be used to simplify translations.
30 /*desc=*/"Returns whether name corresponds to a derived attribute.",
37 Materializes the derived attributes. Returns null attribute where
38 unable to materialize a derived attribute as attribute.
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dcontainer-size-empty.cpp401 Derived derived; in returnsBool() local
402 if (derived.size() == 0) in returnsBool()
406 if (derived == Derived()) in returnsBool()
411 takesBool(derived.size()); in returnsBool()
415 takesBool(derived.size() == 0); in returnsBool()
419 takesBool(derived.size() != 0); in returnsBool()
423 bool b1 = derived.size(); in returnsBool()
427 bool b2(derived.size()); in returnsBool()
435 auto b4 = (bool)derived.size(); in returnsBool()
439 auto b5 = bool(derived.size()); in returnsBool()
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dwindows-itanium-type-info.cpp16 struct __declspec(dllexport) derived : base { struct
17 virtual ~derived();
19 derived::~derived() { in ~derived()
H A Dmangle-class-nttp.cpp39 struct Derived : A, Nested { int z; } extern derived; variable
42 template void f<B{&derived.z}>();
51 template void f<B{&derived.b + 1}>();
53 template void f<B{fold(&derived.b + 3)}>();
61 template void f<BR{derived.z}>();
69 template void f<BR{derived.b}>();
71 template void f<BR{fold(*(&derived.b + 3))}>();
79 template void f<C{&derived.z}>();
82 template void f<C{&derived.b}>();
/llvm-project-15.0.7/libcxxabi/test/
H A Dcatch_ptr_02.pass.cpp95 struct derived : base1, base2 {}; struct
101 throw (derived*)0; in test5()
135 throw (derived*)12; in test7()
153 vDerived derived; in test8() local
156 throw &derived; in test8()
/llvm-project-15.0.7/openmp/libomptarget/plugins/amdgpu/impl/
H A Dmsgpack.h49 derived().handle_string(N, str); in cb_string()
51 void cb_boolean(bool x) { derived().handle_boolean(x); } in cb_boolean()
52 void cb_signed(int64_t x) { derived().handle_signed(x); } in cb_signed()
53 void cb_unsigned(uint64_t x) { derived().handle_unsigned(x); } in cb_unsigned()
55 derived().handle_array_elements(bytes); in cb_array_elements()
58 derived().handle_map_elements(key, value); in cb_map_elements()
61 return derived().handle_array(N, bytes); in cb_array()
64 return derived().handle_map(N, bytes); in cb_map()
68 Derived &derived() { return *static_cast<Derived *>(this); } in derived() function
/llvm-project-15.0.7/bolt/include/bolt/Passes/
H A DDataflowAnalysis.h149 Derived &derived() { return *static_cast<Derived *>(this); } in derived() function
204 return derived().doConfluence(StateOut, StateIn); in doConfluenceWithLP()
235 Point, derived().getAnnotationIndex(), AllocatorId); in getOrCreateStateAt()
316 derived().preflight(); in run()
323 St = derived().getStartingStateAtBB(BB); in run()
326 St = derived().getStartingStateAtPoint(Inst); in run()
364 derived().doConfluenceWithLP(StateAtEntry, *getStateAt(P), in run()
367 derived().doConfluence(StateAtEntry, *getStateAt(P)); in run()
371 derived().doConfluence(StateAtEntry, *getStateAt(P)); in run()
391 StateTy CurState = derived().computeNext(Inst, *PrevState); in run()
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Daggregate-initialization.cpp100 struct derived;
102 friend struct derived;
106 struct derived : base {}; struct
108 derived d1{};
113 derived d2;
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dundefined-memory-manipulation.cpp167 types::Derived derived; in triviallyCopyable() local
180 memset(&derived, 0, sizeof(bool)); in triviallyCopyable()
192 memcpy(&derived, &derived, sizeof(bool)); in triviallyCopyable()
204 memmove(&derived, &derived, sizeof(bool)); in triviallyCopyable()
/llvm-project-15.0.7/clang/test/CodeGenObjCXX/
H A Ddestroy.mm8 struct derived : public base {
13 derived d1;
20 derived *d2 = new derived;
/llvm-project-15.0.7/flang/test/Fir/
H A Dignore-missing-type-descriptor.fir1 // Test the option to avoid failing if derived type descriptors are not found.
2 // This is a debug option to allow manually writing derived type fir.embox without
3 // having to care with providing an ABI compliant derived type descriptor object.
4 // Missing derived type descriptor pointers are replaced by null pointers.
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
H A Dalloc_const_Types.pass.cpp101 DerivedFromAllocatorArgT derived; in main() local
102 std::tuple<> t1(derived, A1<int>()); in main()
103 std::tuple<int> t2(derived, A1<int>(), 1); in main()
104 std::tuple<int, int> t3(derived, A1<int>(), 1, 2); in main()
H A Dalloc.pass.cpp96 DerivedFromAllocatorArgT derived; in main() local
97 std::tuple<> t1(derived, A1<int>()); in main()
98 std::tuple<int> t2(derived, A1<int>()); in main()
99 std::tuple<int, int> t3(derived, A1<int>()); in main()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DCasting.cpp44 struct derived : public base { struct
269 std::unique_ptr<derived> newd() { return std::make_unique<derived>(); } in newd()
270 std::unique_ptr<base> newb() { return std::make_unique<derived>(); } in newb()
273 derived *OrigD = nullptr; in TEST()
274 auto D = std::make_unique<derived>(); in TEST()
279 auto NewD = unique_dyn_cast<derived>(D); in TEST()
297 D = unique_dyn_cast<derived>(NewB); in TEST()
309 auto D2 = unique_dyn_cast<derived>(newd()); in TEST()
312 auto B2 = unique_dyn_cast<derived>(newb()); in TEST()

12345678910>>...16