Home
last modified time | relevance | path

Searched refs:StringAttr (Results 1 – 25 of 160) sorted by relevance

1234567

/llvm-project-15.0.7/mlir/test/lib/Dialect/Linalg/
H A DTestLinalgTransforms.cpp162 LinalgTransformationFilter(ArrayRef<StringAttr>{}, in applyPatterns()
168 ArrayRef<StringAttr>{StringAttr::get(ctx, "MEM"), in applyPatterns()
171 StringAttr::get(ctx, "REG"))); in applyPatterns()
209 StringAttr::get(ctx, "par__with_perm__"), in applyPatterns()
279 StringAttr::get(context, "distribute1"), in fillTileAndDistributePatterns()
296 StringAttr::get(context, "distribute2"), in fillTileAndDistributePatterns()
313 StringAttr::get(context, "distribute3"), in fillTileAndDistributePatterns()
330 StringAttr::get(context, "distribute4"), in fillTileAndDistributePatterns()
347 StringAttr::get(context, "distribute5"), in fillTileAndDistributePatterns()
365 StringAttr::get(context, "distribute6"), in fillTileAndDistributePatterns()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DSymbolTable.h38 Operation *lookup(StringAttr name) const;
40 T lookup(StringAttr name) const { in lookup()
52 StringAttr insert(Operation *symbol, Block::iterator insertPt = {});
87 static StringAttr getSymbolName(Operation *symbol);
90 static void setSymbolName(Operation *symbol, StringAttr name);
209 static LogicalResult replaceAllSymbolUses(StringAttr oldSymbol,
210 StringAttr newSymbol,
215 static LogicalResult replaceAllSymbolUses(StringAttr oldSymbol,
267 T lookupNearestSymbolFrom(Operation *from, StringAttr symbol) { in lookupNearestSymbolFrom()
347 Operation *lookupSymbol(StringAttr name) { in lookupSymbol()
[all …]
H A DBuiltinAttributes.h833 static FlatSymbolRefAttr get(StringAttr value) {
847 StringAttr getAttr() const { return getRootReference(); }
973 inline bool operator!=(StringAttr lhs, std::nullptr_t) {
976 inline bool operator==(StringAttr lhs, StringAttr rhs) {
979 inline bool operator!=(StringAttr lhs, StringAttr rhs) { return !(lhs == rhs); }
982 inline bool operator==(StringAttr lhs, StringRef rhs) {
986 inline bool operator==(StringRef lhs, StringAttr rhs) {
1003 static mlir::StringAttr getEmptyKey() {
1007 static mlir::StringAttr getTombstoneKey() {
1013 struct PointerLikeTypeTraits<mlir::StringAttr>
[all …]
H A DOperationSupport.h90 Impl(StringAttr name) in Impl()
94 StringAttr name;
128 ArrayRef<StringAttr> attributeNames;
207 StringAttr getIdentifier() const { return impl->name; } in getIdentifier()
376 ArrayRef<StringAttr> getAttributeNames() const { in getAttributeNames()
513 void append(StringAttr name, Attribute attr) { in append()
568 Attribute get(StringAttr name) const;
573 Optional<NamedAttribute> getNamed(StringAttr name) const;
579 Attribute set(StringAttr name, Attribute value);
585 Attribute erase(StringAttr name);
[all …]
/llvm-project-15.0.7/mlir/lib/IR/
H A DSymbolTable.cpp27 static StringAttr getNameIfSymbol(Operation *op) { in getNameIfSymbol()
30 static StringAttr getNameIfSymbol(Operation *op, StringAttr symbolAttrNameId) { in getNameIfSymbol()
31 return op->getAttrOfType<StringAttr>(symbolAttrNameId); in getNameIfSymbol()
55 StringAttr symbolNameId = in collectValidReferencesFor()
126 StringAttr symbolNameId = StringAttr::get(symbolTableOp->getContext(), in SymbolTable()
151 StringAttr name = getNameIfSymbol(symbol); in erase()
194 StringAttr name = getSymbolName(symbol); in insert()
220 StringAttr name = getNameIfSymbol(symbol); in getSymbolName()
233 StringAttr vis = symbol->getAttrOfType<StringAttr>(getVisibilityAttrName()); in getSymbolVisibility()
320 StringAttr symbolNameId = StringAttr::get(symbolTableOp->getContext(), in lookupSymbolIn()
[all …]
H A DAttributes.cpp26 NamedAttribute::NamedAttribute(StringAttr name, Attribute value) in NamedAttribute()
32 StringAttr NamedAttribute::getName() const { return name.cast<StringAttr>(); } in getName()
38 void NamedAttribute::setName(StringAttr newName) { in setName()
H A DBuiltinAttributes.cpp185 Attribute DictionaryAttr::get(StringAttr name) const { in get()
204 bool DictionaryAttr::contains(StringAttr name) const { in contains()
243 StringAttr StringAttr::getEmptyStringAttrUnchecked(MLIRContext *context) { in getEmptyStringAttrUnchecked()
248 StringAttr StringAttr::get(MLIRContext *context, const Twine &twine) { in get()
257 StringAttr StringAttr::get(const Twine &twine, Type type) { in get()
264 Dialect *StringAttr::getReferencedDialect() const { in getReferencedDialect()
304 return get(StringAttr::get(ctx, value), nestedRefs); in get()
311 FlatSymbolRefAttr SymbolRefAttr::get(StringAttr value) { in get()
322 StringAttr SymbolRefAttr::getLeafReference() const { in getLeafReference()
982 assert(attr.isa<StringAttr>() && in get()
[all …]
H A DMLIRContext.cpp231 StringAttr emptyStringAttr;
314 impl->emptyStringAttr = StringAttr::getEmptyStringAttrUnchecked(this); in MLIRContext()
681 it.first->second.name = StringAttr::get(context, name); in OperationName()
730 MutableArrayRef<StringAttr> cachedAttrNames; in insert()
732 cachedAttrNames = MutableArrayRef<StringAttr>( in insert()
733 ctxImpl.abstractDialectSymbolAllocator.Allocate<StringAttr>( in insert()
737 new (&cachedAttrNames[i]) StringAttr(StringAttr::get(ctx, attrNames[i])); in insert()
743 it.first->second.name = StringAttr::get(ctx, name); in insert()
941 StringAttr StringAttr::get(MLIRContext *context) { in get()
/llvm-project-15.0.7/flang/lib/Optimizer/Support/
H A DFIRContext.cpp23 mlir::StringAttr::get(mod.getContext(), target)); in setTargetTriple()
27 if (auto target = mod->getAttrOfType<mlir::StringAttr>( in getTargetTriple()
38 mod->setAttr(kindMapName, mlir::StringAttr::get(ctx, kindMap.mapToString())); in setKindMapping()
40 mod->setAttr(defKindName, mlir::StringAttr::get(ctx, defs)); in setKindMapping()
45 if (auto defs = mod->getAttrOfType<mlir::StringAttr>(defKindName)) { in getKindMapping()
47 if (auto maps = mod->getAttrOfType<mlir::StringAttr>(kindMapName)) in getKindMapping()
/llvm-project-15.0.7/mlir/test/python/ir/
H A Dattributes.py132 astr = StringAttr(a1)
133 aself = StringAttr(astr)
137 tillegal = StringAttr(Attribute.parse("1.0"))
261 sattr = StringAttr(Attribute.parse('"stringattr"'))
267 print("default_get:", StringAttr.get("foobar"))
269 print("typed_get:", StringAttr.get_typed(
392 'stringattr': StringAttr.get('string'),
497 array = ArrayAttr.get([StringAttr.get("a"), StringAttr.get("b")])
498 array = array + [StringAttr.get("c")]
/llvm-project-15.0.7/mlir/lib/Dialect/DLTI/
H A DDLTI.cpp52 DataLayoutEntryAttr DataLayoutEntryAttr::get(StringAttr key, Attribute value) { in get()
100 os << "\"" << getKey().get<StringAttr>().strref() << "\""; in print()
149 DenseSet<StringAttr> ids; in verify()
155 auto id = entry.getKey().get<StringAttr>(); in verify()
194 DenseMap<StringAttr, DataLayoutEntryInterface> &entriesForID) { in combineOneSpec() argument
200 DenseMap<StringAttr, DataLayoutEntryInterface> newEntriesForID; in combineOneSpec()
223 StringAttr id = kvp.second.getKey().get<StringAttr>(); in combineOneSpec()
256 DenseMap<StringAttr, DataLayoutEntryInterface> entriesForID; in combineWith()
320 StringRef entryName = entry.getKey().get<StringAttr>().strref(); in verifyEntry()
322 auto value = entry.getValue().dyn_cast<StringAttr>(); in verifyEntry()
/llvm-project-15.0.7/mlir/python/mlir/dialects/
H A D_pdl_ops_ext.py37 return ArrayAttr.get([StringAttr.get(s) for s in attrs])
40 def _get_str_attr(name: Union[StringAttr, str]) -> Optional[StringAttr]: argument
43 return StringAttr.get(name)
60 name: Union[str, StringAttr], argument
75 name: Union[str, StringAttr], argument
141 name: Optional[Union[str, StringAttr]] = None, argument
153 attributeNames.append(StringAttr.get(attrName))
166 name: Optional[Union[StringAttr, str]] = None, argument
233 name: Optional[Union[StringAttr, str]] = None, argument
H A D_ml_program_ops_ext.py42 sym_name = StringAttr.get(str(name))
49 sym_visibility = StringAttr.get(
74 def name(self) -> StringAttr:
75 return StringAttr(self.attributes["sym_name"])
H A D_loop_transform_ops_ext.py50 func_name: Union[str, StringAttr], argument
56 func_name=(func_name if isinstance(func_name, StringAttr) else
57 StringAttr.get(func_name)),
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Utils/
H A DStructuredOpsUtils.h82 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isParallelIterator()
89 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isReductionIterator()
96 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isWindowIterator()
114 return a.cast<StringAttr>().getValue() == name; in getNumIterators()
149 auto sAttr = attr.dyn_cast<StringAttr>(); in isOfType()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DCodegenStrategy.cpp36 auto currentState = StringAttr::get(context, currentStr); in configurePassPipeline()
38 auto nextState = StringAttr::get(context, nextStr); in configurePassPipeline()
41 t->filter, ArrayRef<StringAttr>{}, nextState) in configurePassPipeline()
/llvm-project-15.0.7/mlir/test/python/dialects/
H A Dfunc.py81 foo.sym_visibility = StringAttr.get("private")
83 bar.sym_visibility = StringAttr.get("private")
85 qux.sym_visibility = StringAttr.get("private")
/llvm-project-15.0.7/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/
H A Dmlir-support.cpp9 auto Identifier = mlir::StringAttr::get(&Context, "foo");
39 mlir::Attribute StringAttr = mlir::StringAttr::get(&Context, "foo"); variable
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Linking/ModuleCombiner/
H A DModuleCombiner.cpp33 static StringAttr renameSymbol(StringRef oldSymName, unsigned &lastUsedID, in renameSymbol()
41 auto possible = StringAttr::get(ctx, newSymName + Twine(++lastUsedID)); in renameSymbol()
46 return StringAttr::get(ctx, newSymName); in renameSymbol()
59 StringAttr newSymName = renameSymbol(oldSymName, lastUsedID, target); in updateSymbolAndAllUses()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Transform/
H A DTestTransformStateExtension.h27 StringAttr message) in TestTransformStateExtension()
37 StringAttr message;
/llvm-project-15.0.7/mlir/unittests/IR/
H A DAttributeTest.cpp154 OpaqueType::get(StringAttr::get(&context, "test"), "string"); in TEST()
163 OpaqueType::get(StringAttr::get(&context, "test"), "string"); in TEST()
164 Attribute stringAttr = StringAttr::get("test-string", stringType); in TEST()
213 Type stringTy = OpaqueType::get(StringAttr::get(&context, "test"), "string"); in TEST()
249 EXPECT_TRUE(zeroStringValue.cast<StringAttr>().getValue().empty()); in TEST()
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DFIRBuilder.h178 mlir::StringAttr linkage = {},
184 mlir::StringAttr linkage = {});
189 mlir::StringAttr linkage = {},
198 mlir::StringAttr linkage = {}) {
211 mlir::StringAttr createCommonLinkage() { return getStringAttr("common"); } in createCommonLinkage()
213 mlir::StringAttr createInternalLinkage() { return getStringAttr("internal"); } in createInternalLinkage()
215 mlir::StringAttr createLinkOnceLinkage() { return getStringAttr("linkonce"); } in createLinkOnceLinkage()
217 mlir::StringAttr createLinkOnceODRLinkage() { in createLinkOnceODRLinkage()
221 mlir::StringAttr createWeakLinkage() { return getStringAttr("weak"); } in createWeakLinkage()
/llvm-project-15.0.7/mlir/lib/Transforms/
H A DSymbolPrivatize.cpp27 DenseSet<StringAttr> excludedSymbols;
37 excludedSymbols.insert(StringAttr::get(context, symbol)); in initialize()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DDataLayoutInterfaces.cpp228 StringAttr id) { in filterEntryForIdentifier()
230 if (!entry.getKey().is<StringAttr>()) in filterEntryForIdentifier()
232 return entry.getKey().get<StringAttr>() == id; in filterEntryForIdentifier()
465 DenseMap<StringAttr, DataLayoutEntryInterface> &ids) { in bucketEntriesByType() argument
470 ids[entry.getKey().get<StringAttr>()] = entry; in bucketEntriesByType()
484 DenseMap<StringAttr, DataLayoutEntryInterface> ids; in verifyDataLayoutSpec()
542 StringAttr identifier = kvp.second.getKey().get<StringAttr>(); in verifyDataLayoutSpec()
/llvm-project-15.0.7/mlir/test/mlir-tblgen/
H A Dop-attribute.td51 // DECL: ::mlir::StringAttr aAttrAttrName()
53 // DECL: ::mlir::StringAttr aAttrAttrName(::mlir::OperationName name)
56 // DECL: ::mlir::StringAttr bAttrAttrName()
58 // DECL: ::mlir::StringAttr bAttrAttrName(::mlir::OperationName name)
61 // DECL: ::mlir::StringAttr cAttrAttrName()
63 // DECL: ::mlir::StringAttr cAttrAttrName(::mlir::OperationName name)
176 // DECL: ::mlir::StringAttr getAAttrAttrName()
178 // DECL: ::mlir::StringAttr getAAttrAttrName(::mlir::OperationName name)
181 // DECL: ::mlir::StringAttr getBAttrAttrName()
183 // DECL: ::mlir::StringAttr getBAttrAttrName(::mlir::OperationName name)
[all …]

1234567