| /llvm-project-15.0.7/mlir/include/mlir/TableGen/ |
| H A D | Trait.h | 32 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 D | Operator.h | 189 const Trait *getTrait(llvm::StringRef trait) const; 220 using const_trait_iterator = const Trait *; 353 SmallVector<Trait, 4> traits;
|
| H A D | AttrOrTypeDef.h | 218 ArrayRef<Trait> getTraits() const { return traits; } in getTraits() 240 SmallVector<Trait> traits;
|
| H A D | SideEffects.h | 52 static bool classof(const Trait *t);
|
| /llvm-project-15.0.7/mlir/lib/TableGen/ |
| H A D | Trait.cpp | 28 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 D | poisoned_hash_helper.h | 209 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 D | arc-type-traits.mm | 11 #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 D | objc-weak-type-traits.mm | 7 #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 D | LLVMTypes.h | 77 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 D | ROCDLOps.td | 42 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 D | BuiltinTypes.td | 27 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 D | Operation.h | 178 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 D | OperationSupport.h | 144 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 D | index-dependent-source.cpp | 147 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 D | DLTI.h | 36 DataLayoutEntryInterface::Trait> { 70 DataLayoutSpecInterface::Trait> {
|
| /llvm-project-15.0.7/mlir/include/mlir/Support/ |
| H A D | TypeID.h | 125 template <template <typename> class Trait> 235 template <template <typename> class Trait> 239 return TypeID::get<Trait<Empty>>(); in get()
|
| H A D | InterfaceSupport.h | 86 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 D | ControlFlowInterfacesTest.cpp | 31 : 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 D | DataLayoutInterfacesTest.cpp | 51 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 D | TestTransformDialectExtension.cpp | 28 : 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 D | ArmNeon.td | 43 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 D | SPIRVCLOps.td | 23 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 D | X86Vector.td | 36 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 D | ArmSVE.td | 39 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 D | common_type.pass.cpp | 63 template <class Trait, class = void> 66 template <class Trait> 67 struct no_common_type_imp<Trait, typename VoidT<typename Trait::type>::type>
|