| /llvm-project-15.0.7/mlir/docs/ |
| H A D | Traits.md | 25 - The concrete class type that this trait was attached to. 31 the `ConcreteType`. An example trait definition is shown below: 43 trait. The [verification order](OpDefinitions.md/#verification-ordering) 143 provide a definition of the trait class. This can be done using the 149 // The argument is the c++ trait class name. 177 same as the one passed when attaching the trait to an operation. 208 nested inside of other operations that themselves have this trait. 220 that has the trait AutomaticAllocationScope. 226 This trait adds the property that the operation is known to have 320 This trait is used for operations that define a [all …]
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | instantiation-dependence.cpp | 47 struct trait { struct 56 …struct trait<T, void_t<typename T::value_type>> { // expected-note {{previous}} FIXME-note {{match… struct 61 …struct trait<T, void_t<typename T::element_type>> { // expected-error {{redefinition}} FIXME-note … struct 70 static_assert(trait<A>::specialization == 0); 71 static_assert(trait<B>::specialization == 1); // FIXME expected-error {{failed}} 72 static_assert(trait<C>::specialization == 2); // FIXME expected-error {{failed}} 73 static_assert(trait<D>::specialization == 0); // FIXME-error {{ambiguous partial specialization}}
|
| /llvm-project-15.0.7/mlir/lib/TableGen/ |
| H A D | Trait.cpp | 47 llvm::StringRef trait = def->getValueAsString("trait"); in getFullyQualifiedTraitName() local 49 return cppNamespace.empty() ? trait.str() in getFullyQualifiedTraitName() 50 : (cppNamespace + "::" + trait).str(); in getFullyQualifiedTraitName() 85 llvm::StringRef trait = def->getValueAsString("trait"); in getFullyQualifiedTraitName() local 87 return cppNamespace.empty() ? trait.str() in getFullyQualifiedTraitName() 88 : (cppNamespace + "::" + trait).str(); in getFullyQualifiedTraitName()
|
| H A D | SideEffects.cpp | 29 StringRef trait = def->getValueAsString("interfaceTrait"); in getInterfaceTrait() local 31 return cppNamespace.empty() ? trait.str() in getInterfaceTrait() 32 : (cppNamespace + "::" + trait).str(); in getInterfaceTrait()
|
| H A D | Operator.cpp | 212 const Trait *Operator::getTrait(StringRef trait) const { in getTrait() 215 if (traitDef->getFullyQualifiedTraitName() == trait) in getTrait() 218 if (traitDef->getFullyQualifiedTraitName() == trait) in getTrait() 221 if (traitDef->getFullyQualifiedTraitName() == trait) in getTrait() 383 for (const Trait &trait : traits) { in populateTypeInferenceInfo() local 384 const llvm::Record &def = trait.getDef(); in populateTypeInferenceInfo() 392 if (const auto *traitDef = dyn_cast<InterfaceTrait>(&trait)) in populateTypeInferenceInfo() 568 auto verifyTraitValidity = [&](Record *trait) { in populateOpStructure() argument 569 auto *dependentTraits = trait->getValueAsListInit("dependentTraits"); in populateOpStructure() 574 trait->getValueAsString("trait") + " requires " + in populateOpStructure()
|
| /llvm-project-15.0.7/flang/test/Semantics/OpenMP/ |
| H A D | omp-allocate08.f90 | 20 type(omp_alloctrait), dimension(1) :: trait local 22 trait(1)%key = fallback 23 trait(1)%value = default_mem_fb 24 custom_allocator = omp_init_allocator(memspace, 1, trait)
|
| /llvm-project-15.0.7/mlir/test/Dialect/Linalg/ |
| H A D | fold-unit-trip-loops.mlir | 8 #trait = { 16 %0 = linalg.generic #trait 35 #trait = { 43 %0 = linalg.generic #trait 61 #trait = { 69 linalg.generic #trait 90 #trait = { 97 %0 = linalg.generic #trait
|
| H A D | drop-unit-extent-dims.mlir | 9 #trait = { 41 #trait = { 88 #trait = { 115 #trait = { 149 #trait = { 180 #trait = { 216 #trait = { 462 #trait = { 493 #trait = { 540 #trait = { [all …]
|
| H A D | inlining.mlir | 11 #trait = { 24 linalg.generic #trait
|
| H A D | parallel-loops.mlir | 36 #trait = { 42 linalg.generic #trait 69 #trait = { 75 linalg.generic #trait
|
| /llvm-project-15.0.7/llvm/test/Demangle/ |
| H A D | rust.test | 247 CHECK: trait::<dyn > 250 CHECK: trait::<dyn for<'a> > 253 CHECK: trait::<for<'a> fn(dyn for<'b> + 'a)> 256 CHECK: trait::<dyn Display> 259 CHECK: trait::<dyn Display + Send + Sync> 262 CHECK: trait::<dyn for<'a> Display> 265 CHECK: trait::<dyn IntoIterator<_, Item = _>> 268 CHECK: trait::<dyn IntoIterator<Item = _>> 271 CHECK: trait::<dyn IntoIterator<Item = _, IntoIter = _>> 274 ; Invalid trait object, missing lifetime.
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | access-base-class.cpp | 99 struct trait : flag<sizeof(T)> {}; struct 101 template <class T, bool Inferred = trait<T>::value> 116 trait<b<Impossible<0>>>::value;
|
| /llvm-project-15.0.7/mlir/tools/mlir-tblgen/ |
| H A D | OpDocGen.cpp | 96 for (auto &trait : op.getTraits()) { in emitOpTraitsDoc() local 97 if (isa<PredTrait>(&trait)) in emitOpTraitsDoc() 100 std::string name = trait.getDef().getName().str(); in emitOpTraitsDoc() 102 StringRef traitName = trait.getDef().getValueAsString("trait"); in emitOpTraitsDoc() 107 if (isa<InterfaceTrait>(&trait)) { in emitOpTraitsDoc() 108 if (trait.getDef().isSubClassOf("SideEffectsTraitBase")) { in emitOpTraitsDoc() 109 auto effectName = trait.getDef().getValueAsString("baseEffectName"); in emitOpTraitsDoc() 115 auto list = trait.getDef().getValueAsListOfDefs("effects"); in emitOpTraitsDoc()
|
| H A D | OpClass.h | 32 void addTrait(Twine trait) { parent.addTemplateParam(trait.str()); } in addTrait() argument
|
| H A D | AttrOrTypeDefGen.cpp | 117 void emitTraitMethods(const InterfaceTrait &trait); 208 for (auto &trait : def.getTraits()) { in createParentWithTraits() local 210 isa<NativeTrait>(&trait) in createParentWithTraits() 211 ? cast<NativeTrait>(&trait)->getFullyQualifiedTraitName() in createParentWithTraits() 212 : cast<InterfaceTrait>(&trait)->getFullyQualifiedTraitName()); in createParentWithTraits() 308 if (auto *trait = dyn_cast<InterfaceTrait>(&traitDef)) in emitInterfaceMethods() local 309 if (trait->shouldDeclareMethods()) in emitInterfaceMethods() 310 emitTraitMethods(*trait); in emitInterfaceMethods() 418 void DefGen::emitTraitMethods(const InterfaceTrait &trait) { in emitTraitMethods() argument 420 auto alwaysDeclaredMethods = trait.getAlwaysDeclaredMethods(); in emitTraitMethods() [all …]
|
| H A D | OpDefinitionsGen.cpp | 537 void genOpInterfaceMethods(const tblgen::InterfaceTrait *trait); 2250 for (const auto &trait : op.getTraits()) { in genOpInterfaceMethods() local 2283 for (const auto &trait : op.getTraits()) { in genSideEffectInterfaceMethods() local 2362 const auto *trait = in genTypeInterfaceMethods() local 2364 Interface interface = trait->getInterface(); in genTypeInterfaceMethods() 2482 for (auto &trait : op.getTraits()) { in genVerifier() local 2483 if (auto *t = dyn_cast<tblgen::PredTrait>(&trait)) { in genVerifier() 2737 for (const auto &trait : op.getTraits()) { in genTraits() local 2738 if (auto *opTrait = dyn_cast<tblgen::NativeTrait>(&trait)) { in genTraits() 2749 for (const auto &trait : op.getTraits()) { in genTraits() local [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Interfaces/ |
| H A D | SideEffectInterfaceBase.td | 164 string interfaceTrait = interface.trait; 166 /// The cpp namespace of the interface trait. 180 /// The name of the interface trait to use. 181 let trait = parentInterface.trait; 183 /// The cpp namespace of the interface trait.
|
| /llvm-project-15.0.7/openmp/libomptarget/include/ |
| H A D | dlwrap.h | 92 template <typename F> struct trait; 93 template <typename R, typename... Ts> struct trait<R (*)(Ts...)> { 142 dlwrap::trait<decltype(&SYM_USE)>) 161 struct SYMBOL##_Trait : public dlwrap::trait<decltype(&SYMBOL)> { \ 162 using T = dlwrap::trait<decltype(&SYMBOL)>; \ 164 verboseAssert<ARITY, trait<decltype(&SYMBOL)>::nargs>(); \
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string.hash/ |
| H A D | char_type_hash.fail.cpp | 22 struct trait // copied from <__string> struct 58 typedef std::basic_string<CharT, trait<CharT> > str_t; in test() argument
|
| /llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.hash/ |
| H A D | char_type.hash.fail.cpp | 22 struct trait // copied from <__string> struct 58 typedef std::basic_string_view<CharT, trait<CharT> > strv_t; in test() argument
|
| /llvm-project-15.0.7/mlir/test/Dialect/SparseTensor/ |
| H A D | sparse_outbuf.mlir | 5 #trait = { 37 %0 = linalg.generic #trait 71 %0 = linalg.generic #trait 104 %0 = linalg.generic #trait
|
| H A D | sparse_perm.mlir | 9 #trait = { 46 %0 = linalg.generic #trait 85 %0 = linalg.generic #trait
|
| H A D | one_shot_bufferize_tensor_copy_insertion.mlir | 46 #trait = { 65 %0 = linalg.generic #trait
|
| H A D | sparse_index.mlir | 12 #trait = { 56 %r = linalg.generic #trait 116 %r = linalg.generic #trait
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | StorageUniquerSupport.h | 51 auto *trait = static_cast<const TraitType<ConcreteType> *>(this); in getInstance() local 52 return *static_cast<const ConcreteType *>(trait); in getInstance()
|