Home
last modified time | relevance | path

Searched refs:Trait (Results 1 – 25 of 137) sorted by relevance

123456

/llvm-project-15.0.7/mlir/include/mlir/TableGen/
H A DTrait.h32 class Trait {
46 explicit Trait(Kind kind, const llvm::Record *def);
49 static Trait create(const llvm::Init *init);
63 class NativeTrait : public Trait {
71 static bool classof(const Trait *t) { return t->getKind() == Kind::Native; } in classof()
75 class PredTrait : public Trait {
83 static bool classof(const Trait *t) { return t->getKind() == Kind::Pred; } in classof()
87 class InternalTrait : public Trait {
92 static bool classof(const Trait *t) { return t->getKind() == Kind::Internal; } in classof()
96 class InterfaceTrait : public Trait {
[all …]
H A DOperator.h189 const Trait *getTrait(llvm::StringRef trait) const;
220 using const_trait_iterator = const Trait *;
353 SmallVector<Trait, 4> traits;
H A DAttrOrTypeDef.h218 ArrayRef<Trait> getTraits() const { return traits; } in getTraits()
240 SmallVector<Trait> traits;
H A DSideEffects.h52 static bool classof(const Trait *t);
/llvm-project-15.0.7/mlir/lib/TableGen/
H A DTrait.cpp28 Trait Trait::create(const llvm::Init *init) { in create()
31 return Trait(Kind::Pred, def); in create()
33 return Trait(Kind::Internal, def); in create()
35 return Trait(Kind::Interface, def); in create()
37 return Trait(Kind::Native, def); in create()
40 Trait::Trait(Kind kind, const llvm::Record *def) : def(def), kind(kind) {} in Trait() function in Trait
/llvm-project-15.0.7/libcxx/test/support/
H A Dpoisoned_hash_helper.h209 template <template <class> class Trait, bool Expect = true>
211 static_assert(Trait<First>::value == Expect, "");
212 return TypeList<Rest...>::template assertTrait<Trait, Expect>();
215 template <class Trait>
217 Trait::template apply<First>();
218 TypeList<Rest...>::template applyTrait<Trait>();
224 template <template <class> class Trait, bool Expect = true>
228 template <class Trait>
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Darc-type-traits.mm11 #define TRAIT_IS_TRUE(Trait, Type) char JOIN2(Trait,__LINE__)[Trait(Type)? 1 : -1]
12 #define TRAIT_IS_FALSE(Trait, Type) char JOIN2(Trait,__LINE__)[Trait(Type)? -1 : 1]
13 #define TRAIT_IS_TRUE_2(Trait, Type1, Type2) char JOIN2(Trait,__LINE__)[Trait(Type1, Type2)? 1 : -1]
14 #define TRAIT_IS_FALSE_2(Trait, Type1, Type2) char JOIN2(Trait,__LINE__)[Trait(Type1, Type2)? -1 : …
H A Dobjc-weak-type-traits.mm7 #define TRAIT_IS_TRUE(Trait, Type) static_assert(Trait(Type), "")
8 #define TRAIT_IS_FALSE(Trait, Type) static_assert(!Trait(Type), "")
9 #define TRAIT_IS_TRUE_2(Trait, Type1, Type2) static_assert(Trait(Type1, Type2), "")
10 #define TRAIT_IS_FALSE_2(Trait, Type1, Type2) static_assert(!Trait(Type1, Type2), "")
/llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/
H A DLLVMTypes.h77 DataLayoutTypeInterface::Trait,
78 SubElementTypeInterface::Trait> {
132 SubElementTypeInterface::Trait> {
197 DataLayoutTypeInterface::Trait, SubElementTypeInterface::Trait> {
285 DataLayoutTypeInterface::Trait,
286 SubElementTypeInterface::Trait,
397 SubElementTypeInterface::Trait> {
441 SubElementTypeInterface::Trait> {
H A DROCDLOps.td42 class ROCDL_Op<string mnemonic, list<Trait> traits = []> :
51 list<Trait> traits = []> :
60 int parameter, list<Trait> traits = []> :
118 class ROCDL_Mfma_IntrOp<string mnemonic, list<Trait> traits = []> :
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBuiltinTypes.td27 class Builtin_Type<string name, list<Trait> traits = [],
549 using ShapedType::Trait<MemRefType>::clone;
551 using ShapedType::Trait<MemRefType>::getRank;
552 using ShapedType::Trait<MemRefType>::getNumElements;
553 using ShapedType::Trait<MemRefType>::isDynamicDim;
554 using ShapedType::Trait<MemRefType>::hasStaticShape;
556 using ShapedType::Trait<MemRefType>::getDimSize;
720 using ShapedType::Trait<RankedTensorType>::clone;
722 using ShapedType::Trait<RankedTensorType>::getRank;
859 using ShapedType::Trait<UnrankedMemRefType>::clone;
[all …]
H A DOperation.h178 template <template <typename T> class Trait>
182 if (op->hasTrait<Trait>()) in getParentWithTrait()
527 template <template <typename T> class Trait>
529 return name.hasTrait<Trait>(); in hasTrait()
535 template <template <typename T> class Trait>
537 return name.mightHaveTrait<Trait>(); in mightHaveTrait()
H A DOperationSupport.h144 template <template <typename T> class Trait>
146 return hasTrait(TypeID::get<Trait>()); in hasTrait()
155 template <template <typename T> class Trait>
157 return mightHaveTrait(TypeID::get<Trait>()); in mightHaveTrait()
352 template <template <typename T> class Trait>
354 return hasTrait(TypeID::get<Trait>()); in hasTrait()
/llvm-project-15.0.7/clang/test/Index/Core/
H A Dindex-dependent-source.cpp147 template<typename T> struct Trait;
150 struct Recurse : Trait<typename Dropper<T>::Type> { };
153 struct Trait : Recurse<T> { struct
157 void infiniteTraitRecursion(Trait<T> &t) { in infiniteTraitRecursion()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/DLTI/
H A DDLTI.h36 DataLayoutEntryInterface::Trait> {
70 DataLayoutSpecInterface::Trait> {
/llvm-project-15.0.7/mlir/include/mlir/Support/
H A DTypeID.h125 template <template <typename> class Trait>
235 template <template <typename> class Trait>
239 return TypeID::get<Trait<Empty>>(); in get()
H A DInterfaceSupport.h86 struct Trait : public BaseTrait<ConcreteT, Trait> { struct
103 std::is_base_of<Trait<T>, T>::value> * = nullptr> argument
/llvm-project-15.0.7/mlir/unittests/Interfaces/
H A DControlFlowInterfacesTest.cpp31 : public Op<MutuallyExclusiveRegionsOp, RegionBranchOpInterface::Trait> {
47 : public Op<LoopRegionsOp, RegionBranchOpInterface::Trait> {
70 : public Op<DoubleLoopRegionsOp, RegionBranchOpInterface::Trait> {
91 : public Op<SequentialRegionsOp, RegionBranchOpInterface::Trait> {
H A DDataLayoutInterfacesTest.cpp51 DataLayoutSpecInterface::Trait> {
71 DataLayoutTypeInterface::Trait> {
121 struct OpWithLayout : public Op<OpWithLayout, DataLayoutOpInterface::Trait> {
166 : public Op<OpWith7BitByte, DataLayoutOpInterface::Trait> {
/llvm-project-15.0.7/mlir/test/lib/Dialect/Transform/
H A DTestTransformDialectExtension.cpp28 : public Op<TestTransformOp, transform::TransformOpInterface::Trait,
29 MemoryEffectOpInterface::Trait> {
79 transform::TransformOpInterface::Trait,
80 MemoryEffectOpInterface::Trait> {
/llvm-project-15.0.7/mlir/include/mlir/Dialect/ArmNeon/
H A DArmNeon.td43 list<Trait> traits = [], bit requiresAccessGroup = 0,
58 list<Trait> traits = []>
65 list<Trait> traits = []>
125 class ArmNeon_2dOp<string mnemonic, list<Trait> traits = []>
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVCLOps.td23 class SPV_CLOp<string mnemonic, int opcode, list<Trait> traits = []> :
36 Type operandType, list<Trait> traits = []> :
55 list<Trait> traits = []> :
61 Type operandType, list<Trait> traits = []> :
79 list<Trait> traits = []> :
87 Type operandType, list<Trait> traits = []> :
106 list<Trait> traits = []> :
/llvm-project-15.0.7/mlir/include/mlir/Dialect/X86Vector/
H A DX86Vector.td36 class AVX512_Op<string mnemonic, list<Trait> traits = []> :
40 class AVX512_IntrOp<string mnemonic, int numResults, list<Trait> traits = []> :
48 list<Trait> traits = []> :
281 class AVX_Op<string mnemonic, list<Trait> traits = []> :
287 class AVX_LowOp<string mnemonic, list<Trait> traits = []> :
291 class AVX_IntrOp<string mnemonic, int numResults, list<Trait> traits = []> :
/llvm-project-15.0.7/mlir/include/mlir/Dialect/ArmSVE/
H A DArmSVE.td39 class ArmSVE_Op<string mnemonic, list<Trait> traits = []> :
43 list<Trait> traits = []> :
49 /*list<Trait> traits=*/traits,
53 list<Trait> traits = []> :
76 list<Trait> traits = []> :
/llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
H A Dcommon_type.pass.cpp63 template <class Trait, class = void>
66 template <class Trait>
67 struct no_common_type_imp<Trait, typename VoidT<typename Trait::type>::type>

123456