| /llvm-project/llvm/unittests/IR/ |
| H A D | AttributesTest.cpp | 28 Attribute AttrA = Attribute::get(C, Attribute::AlwaysInline); in TEST() 29 Attribute AttrB = Attribute::get(C, Attribute::AlwaysInline); in TEST() 32 AttributeList ASs[] = {AttributeList::get(C, 1, Attribute::ZExt), in TEST() 33 AttributeList::get(C, 2, Attribute::SExt)}; in TEST() 43 Attribute Align4 = Attribute in TEST() [all...] |
| /llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILPrepare.cpp | 40 constexpr bool isValidForDXIL(Attribute::AttrKind Attr) { in isValidForDXIL() 41 return is_contained({Attribute::Alignment, in isValidForDXIL() 42 Attribute::AlwaysInline, in isValidForDXIL() 43 Attribute::Builtin, in isValidForDXIL() 44 Attribute::ByVal, in isValidForDXIL() 45 Attribute::InAlloca, in isValidForDXIL() 46 Attribute::Cold, in isValidForDXIL() 47 Attribute::Convergent, in isValidForDXIL() 48 Attribute::InlineHint, in isValidForDXIL() 49 Attribute in isValidForDXIL() [all...] |
| /llvm-project/llvm/lib/IR/ |
| H A D | Attributes.cpp | 10 // This file implements the Attribute, AttributeImpl, AttrBuilder, 50 // Attribute Construction Methods 95 Attribute Attribute::get(LLVMContext &Context, Attribute::AttrKind Kind, in get() 97 bool IsIntAttr = Attribute::isIntAttrKind(Kind); in get() 98 assert((IsIntAttr || Attribute::isEnumAttrKind(Kind)) && in get() 122 // Return the Attribute that we found or created. in get() 123 return Attribute(PA); in get() 126 Attribute Attribut in get() [all...] |
| H A D | AttributeImpl.h | 1 //===- AttributeImpl.h - Attribute Internals --------------------*- C++ -*-===// 73 bool hasAttribute(Attribute::AttrKind A) const; 76 Attribute::AttrKind getKindAsEnum() const; 110 static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind) { in Profile() 111 assert(Attribute::isEnumAttrKind(Kind) && "Expected enum attribute"); 115 static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind, in Profile() 117 assert(Attribute::isIntAttrKind(Kind) && "Expected int attribute"); in Profile() 127 static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind, in Profile() 133 static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind, in Profile() 140 static void Profile(FoldingSetNodeID &ID, Attribute in Profile() [all...] |
| /llvm-project/mlir/include/mlir/IR/ |
| H A D | Attributes.h | 1 //===- Attributes.h - MLIR Attribute Classes --------------------*- C++ -*-===// 21 /// Instances of the Attribute class are references to immortal key-value pairs 22 /// with immutable, uniqued keys owned by MLIRContext. As such, an Attribute is 25 class Attribute { 37 constexpr Attribute() = default; 38 /* implicit */ Attribute(const ImplType *impl) in Attribute() function 41 Attribute(const Attribute &other) = default; 42 Attribute &operator=(const Attribute [all...] |
| /llvm-project/mlir/lib/Target/LLVMIR/ |
| H A D | AttrKindDetail.h | 21 static llvm::ArrayRef<std::pair<llvm::Attribute::AttrKind, llvm::StringRef>> 23 using ElemTy = std::pair<llvm::Attribute::AttrKind, llvm::StringRef>; in getAttrKindToNameMapping() 26 {llvm::Attribute::AttrKind::Alignment, LLVMDialect::getAlignAttrName()}, in getAttrKindToNameMapping() 27 {llvm::Attribute::AttrKind::AllocAlign, in getAttrKindToNameMapping() 29 {llvm::Attribute::AttrKind::AllocatedPointer, in getAttrKindToNameMapping() 31 {llvm::Attribute::AttrKind::ByVal, LLVMDialect::getByValAttrName()}, in getAttrKindToNameMapping() 32 {llvm::Attribute::AttrKind::ByRef, LLVMDialect::getByRefAttrName()}, in getAttrKindToNameMapping() 33 {llvm::Attribute::AttrKind::NoUndef, LLVMDialect::getNoUndefAttrName()}, in getAttrKindToNameMapping() 34 {llvm::Attribute::AttrKind::Dereferenceable, in getAttrKindToNameMapping() 36 {llvm::Attribute in getAttrKindToNameMapping() [all...] |
| /llvm-project/llvm/include/llvm/IR/ |
| H A D | Attributes.h | 67 class Attribute { 128 Attribute(AttributeImpl *A) : pImpl(A) {} 131 Attribute() = default; 134 // Attribute Construction 137 /// Return a uniquified Attribute object. 138 static Attribute get(LLVMContext &Context, AttrKind Kind, uint64_t Val = 0); 139 static Attribute get(LLVMContext &Context, StringRef Kind, 141 static Attribute get(LLVMContext &Context, AttrKind Kind, Type *Ty); 142 static Attribute get(LLVMContext &Context, AttrKind Kind, 144 static Attribute ge 123 Attribute(AttributeImpl *A) : pImpl(A) {} Attribute() function [all...] |
| H A D | Function.h | 372 void addAttributeAtIndex(unsigned i, Attribute Attr); 375 void addFnAttr(Attribute::AttrKind Kind); 381 void addFnAttr(Attribute Attr); 387 void addRetAttr(Attribute::AttrKind Kind); 390 void addRetAttr(Attribute Attr); 396 void addParamAttr(unsigned ArgNo, Attribute::AttrKind Kind); 399 void addParamAttr(unsigned ArgNo, Attribute Attr); 405 void removeAttributeAtIndex(unsigned i, Attribute::AttrKind Kind); 411 void removeFnAttr(Attribute::AttrKind Kind); 419 void removeRetAttr(Attribute [all...] |
| /llvm-project/llvm/test/tools/llvm-dwarfutil/ELF/X86/ |
| H A D | gc-unit-overlapping-address-ranges.test | 45 - Attribute: DW_AT_producer 47 - Attribute: DW_AT_language 49 - Attribute: DW_AT_name 51 - Attribute: DW_AT_low_pc 53 - Attribute: DW_AT_high_pc 58 - Attribute: DW_AT_name 60 - Attribute: DW_AT_low_pc 62 - Attribute: DW_AT_high_pc 64 - Attribute: DW_AT_type 69 - Attribute: DW_AT_name [all …]
|
| H A D | dwarf4-macro-vendor-specific.test | 49 - Attribute: DW_AT_producer 51 - Attribute: DW_AT_language 53 - Attribute: DW_AT_name 55 - Attribute: DW_AT_low_pc 57 - Attribute: DW_AT_high_pc 59 - Attribute: DW_AT_macro_info 64 - Attribute: DW_AT_name 69 - Attribute: DW_AT_type 71 - Attribute: DW_AT_name 76 - Attribute: DW_AT_name [all …]
|
| H A D | odr-fwd-declaration.test | 119 - Attribute: DW_AT_producer 121 - Attribute: DW_AT_language 123 - Attribute: DW_AT_name 125 - Attribute: DW_AT_low_pc 127 - Attribute: DW_AT_high_pc 132 - Attribute: DW_AT_name 137 - Attribute: DW_AT_type 139 - Attribute: DW_AT_name 144 - Attribute: DW_AT_name 146 - Attribute: DW_AT_declaration [all …]
|
| H A D | dwarf5-macro-opcodeop.test | 58 - Attribute: DW_AT_producer 60 - Attribute: DW_AT_language 62 - Attribute: DW_AT_name 64 - Attribute: DW_AT_low_pc 66 - Attribute: DW_AT_high_pc 68 - Attribute: DW_AT_macros 70 - Attribute: DW_AT_str_offsets_base 75 - Attribute: DW_AT_name 80 - Attribute: DW_AT_type 82 - Attribute: DW_AT_name [all …]
|
| H A D | dwarf4-macro-short.test | 63 - Attribute: DW_AT_producer 65 - Attribute: DW_AT_language 67 - Attribute: DW_AT_name 69 - Attribute: DW_AT_low_pc 71 - Attribute: DW_AT_high_pc 73 - Attribute: DW_AT_macro_info 78 - Attribute: DW_AT_name 83 - Attribute: DW_AT_type 85 - Attribute: DW_AT_name 90 - Attribute: DW_AT_name [all …]
|
| H A D | gc-class.test | 141 - Attribute: DW_AT_producer 143 - Attribute: DW_AT_language 145 - Attribute: DW_AT_name 147 - Attribute: DW_AT_low_pc 149 - Attribute: DW_AT_high_pc 154 - Attribute: DW_AT_name 159 - Attribute: DW_AT_type 161 - Attribute: DW_AT_name 166 - Attribute: DW_AT_name 168 - Attribute: DW_AT_declaration [all …]
|
| H A D | gc-no-garbage.test | 45 - Attribute: DW_AT_producer 47 - Attribute: DW_AT_language 49 - Attribute: DW_AT_name 51 - Attribute: DW_AT_low_pc 53 - Attribute: DW_AT_high_pc 58 - Attribute: DW_AT_name 60 - Attribute: DW_AT_low_pc 62 - Attribute: DW_AT_high_pc 64 - Attribute: DW_AT_type 69 - Attribute: DW_AT_name [all …]
|
| H A D | gc-exec.test | 43 - Attribute: DW_AT_producer 45 - Attribute: DW_AT_language 47 - Attribute: DW_AT_name 49 - Attribute: DW_AT_low_pc 51 - Attribute: DW_AT_high_pc 56 - Attribute: DW_AT_name 58 - Attribute: DW_AT_low_pc 60 - Attribute: DW_AT_high_pc 62 - Attribute: DW_AT_type 67 - Attribute: DW_AT_name [all …]
|
| H A D | gc-bfd.test | 43 - Attribute: DW_AT_producer 45 - Attribute: DW_AT_language 47 - Attribute: DW_AT_name 49 - Attribute: DW_AT_low_pc 51 - Attribute: DW_AT_high_pc 56 - Attribute: DW_AT_name 58 - Attribute: DW_AT_low_pc 60 - Attribute: DW_AT_high_pc 62 - Attribute: DW_AT_type 67 - Attribute: DW_AT_name [all …]
|
| H A D | dwarf5-macro-short.test | 92 - Attribute: DW_AT_producer 94 - Attribute: DW_AT_language 96 - Attribute: DW_AT_name 98 - Attribute: DW_AT_low_pc 100 - Attribute: DW_AT_high_pc 102 - Attribute: DW_AT_macros 104 - Attribute: DW_AT_str_offsets_base 109 - Attribute: DW_AT_name 114 - Attribute: DW_AT_type 116 - Attribute: DW_AT_name [all …]
|
| /llvm-project/mlir/test/python/ir/ |
| H A D | attributes.py | 20 t = Attribute.parse('"hello"') 35 t = Attribute.parse("BAD_ATTR_DOES_NOT_EXIST") 50 a1 = Attribute.parse('"attr1"') 51 a2 = Attribute.parse('"attr2"') 52 a3 = Attribute.parse('"attr1"') 67 a1 = Attribute.parse('"attr1"') 68 a2 = Attribute.parse('"attr2"') 69 a3 = Attribute.parse('"attr1"') 85 a1 = Attribute.parse('"attr1"') 86 a2 = Attribute(a [all...] |
| /llvm-project/mlir/lib/TableGen/ |
| H A D | Attribute.cpp | 1 //===- Attribute.cpp - Attribute wrapper class ----------------------------===// 9 // Attribute wrapper to simplify using TableGen Record defining a MLIR 10 // Attribute. 38 Attribute::Attribute(const Record *record) : AttrConstraint(record) { in Attribute() function in Attribute 43 Attribute::Attribute(const DefInit *init) : Attribute(init->getDef()) {} in Attribute() function in Attribute 45 bool Attribute [all...] |
| /llvm-project/llvm/include/llvm/Analysis/ |
| H A D | AssumeBundleQueries.h | 44 Attribute::AttrKind Kind, 47 Attribute::getNameFromAttrKind(Kind), ArgVal); 50 template<> struct DenseMapInfo<Attribute::AttrKind> { 51 static Attribute::AttrKind getEmptyKey() { 52 return Attribute::EmptyKey; 54 static Attribute::AttrKind getTombstoneKey() { 55 return Attribute::TombstoneKey; 57 static unsigned getHashValue(Attribute::AttrKind AK) { 60 static bool isEqual(Attribute::AttrKind LHS, Attribute [all...] |
| /llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DwarfUnit.h | 84 void addAttribute(DIEValueList &Die, dwarf::Attribute Attribute, in addAttribute() argument 88 // Attribute 0 is used when emitting form-encoded values in blocks, which in addAttribute() 91 if (Attribute != 0 && Asm->TM.Options.DebugStrictDwarf && in addAttribute() 92 DD->getDwarfVersion() < dwarf::AttributeVersion(Attribute)) in addAttribute() 96 DIEValue(Attribute, Form, std::forward<T>(Value))); in addAttribute() 156 void addFlag(DIE &Die, dwarf::Attribute Attribute); 159 void addUInt(DIEValueList &Die, dwarf::Attribute Attribute, [all...] |
| /llvm-project/llvm/test/tools/dsymutil/X86/ |
| H A D | dwarf5-addrbase-broken.test | 141 - Attribute: DW_AT_producer 143 - Attribute: DW_AT_language 145 - Attribute: DW_AT_name 147 - Attribute: DW_AT_low_pc 149 - Attribute: DW_AT_high_pc 151 - Attribute: DW_AT_addr_base 156 - Attribute: DW_AT_name 158 - Attribute: DW_AT_low_pc 160 - Attribute: DW_AT_high_pc 162 - Attribute: DW_AT_type [all …]
|
| /llvm-project/mlir/include/mlir/Dialect/LLVMIR/ |
| H A D | LLVMAttrs.h | 27 class DINodeAttr : public Attribute { 29 using Attribute::Attribute; 32 static bool classof(Attribute attr); 41 static bool classof(Attribute attr); 51 static bool classof(Attribute attr); 60 static bool classof(Attribute attr); 69 static bool classof(Attribute attr); 73 class TBAANodeAttr : public Attribute { 75 using Attribute [all...] |
| /llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/ |
| H A D | odr-fwd-declaration3.test | 171 - Attribute: DW_AT_producer 173 - Attribute: DW_AT_language 175 - Attribute: DW_AT_name 180 - Attribute: DW_AT_name 185 - Attribute: DW_AT_type 187 - Attribute: DW_AT_name 192 - Attribute: DW_AT_name 194 - Attribute: DW_AT_declaration 199 - Attribute: DW_AT_name 201 - Attribute: DW_AT_declaration [all …]
|