Home
last modified time | relevance | path

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

12345678910>>...29

/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/mlir/include/mlir/IR/
H A DSymbolTable.h40 Operation *lookup(StringAttr name) const;
42 T lookup(StringAttr name) const { in lookup()
88 static StringAttr getSymbolName(Operation *symbol);
91 static void setSymbolName(Operation *symbol, StringAttr name);
202 static bool symbolKnownUseEmpty(StringAttr symbol, Region *from);
210 static LogicalResult replaceAllSymbolUses(StringAttr oldSymbol,
211 StringAttr newSymbol,
216 static LogicalResult replaceAllSymbolUses(StringAttr oldSymbol,
268 T lookupNearestSymbolFrom(Operation *from, StringAttr symbol) { in lookupNearestSymbolFrom()
348 Operation *lookupSymbol(StringAttr name) { in lookupSymbol()
[all …]
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/mlir/lib/IR/
H A DSymbolTable.cpp27 static StringAttr getNameIfSymbol(Operation *op) { in getNameIfSymbol()
31 return op->getAttrOfType<StringAttr>(symbolAttrNameId); in getNameIfSymbol()
117 StringAttr name = getNameIfSymbol(&op, symbolNameId); in SymbolTable()
133 Operation *SymbolTable::lookup(StringAttr name) const { in lookup()
139 StringAttr name = getNameIfSymbol(symbol); in erase()
181 StringAttr name = getSymbolName(symbol); in insert()
205 StringAttr SymbolTable::getSymbolName(Operation *symbol) { in getSymbolName()
206 StringAttr name = getNameIfSymbol(symbol); in getSymbolName()
219 StringAttr vis = symbol->getAttrOfType<StringAttr>(getVisibilityAttrName()); in getSymbolVisibility()
299 StringAttr symbol) { in lookupSymbolIn()
[all …]
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/flang/lib/Optimizer/Support/
H A DFIRContext.cpp23 mod->setAttr(tripleName, mlir::StringAttr::get(mod.getContext(), target)); in setTargetTriple()
27 if (auto target = mod->getAttrOfType<mlir::StringAttr>(tripleName)) in getTargetTriple()
37 mod->setAttr(kindMapName, mlir::StringAttr::get(ctx, kindMap.mapToString())); in setKindMapping()
39 mod->setAttr(defKindName, mlir::StringAttr::get(ctx, defs)); in setKindMapping()
44 if (auto defs = mod->getAttrOfType<mlir::StringAttr>(defKindName)) { in getKindMapping()
46 if (auto maps = mod->getAttrOfType<mlir::StringAttr>(kindMapName)) in getKindMapping()
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/flang/lib/Optimizer/Support/
H A DFIRContext.cpp23 mod->setAttr(tripleName, mlir::StringAttr::get(mod.getContext(), target)); in setTargetTriple()
27 if (auto target = mod->getAttrOfType<mlir::StringAttr>(tripleName)) in getTargetTriple()
37 mod->setAttr(kindMapName, mlir::StringAttr::get(ctx, kindMap.mapToString())); in setKindMapping()
39 mod->setAttr(defKindName, mlir::StringAttr::get(ctx, defs)); in setKindMapping()
44 if (auto defs = mod->getAttrOfType<mlir::StringAttr>(defKindName)) { in getKindMapping()
46 if (auto maps = mod->getAttrOfType<mlir::StringAttr>(kindMapName)) in getKindMapping()
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/flang/lib/Optimizer/Support/
H A DFIRContext.cpp23 mod->setAttr(tripleName, mlir::StringAttr::get(mod.getContext(), target)); in setTargetTriple()
27 if (auto target = mod->getAttrOfType<mlir::StringAttr>(tripleName)) in getTargetTriple()
37 mod->setAttr(kindMapName, mlir::StringAttr::get(ctx, kindMap.mapToString())); in setKindMapping()
39 mod->setAttr(defKindName, mlir::StringAttr::get(ctx, defs)); in setKindMapping()
44 if (auto defs = mod->getAttrOfType<mlir::StringAttr>(defKindName)) { in getKindMapping()
46 if (auto maps = mod->getAttrOfType<mlir::StringAttr>(kindMapName)) in getKindMapping()
/dports/devel/llvm13/llvm-project-13.0.1.src/flang/lib/Optimizer/Support/
H A DFIRContext.cpp23 mod->setAttr(tripleName, mlir::StringAttr::get(mod.getContext(), target)); in setTargetTriple()
27 if (auto target = mod->getAttrOfType<mlir::StringAttr>(tripleName)) in getTargetTriple()
37 mod->setAttr(kindMapName, mlir::StringAttr::get(ctx, kindMap.mapToString())); in setKindMapping()
39 mod->setAttr(defKindName, mlir::StringAttr::get(ctx, defs)); in setKindMapping()
44 if (auto defs = mod->getAttrOfType<mlir::StringAttr>(defKindName)) { in getKindMapping()
46 if (auto maps = mod->getAttrOfType<mlir::StringAttr>(kindMapName)) in getKindMapping()
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/mlir/test/python/ir/
H A Dattributes.py124 astr = StringAttr(a1)
125 aself = StringAttr(astr)
129 tillegal = StringAttr(Attribute.parse("1.0"))
226 sattr = StringAttr(Attribute.parse('"stringattr"'))
232 print("default_get:", StringAttr.get("foobar"))
234 print("typed_get:", StringAttr.get_typed(
313 'stringattr': StringAttr.get('string'),
412 array = ArrayAttr.get([StringAttr.get("a"), StringAttr.get("b")])
413 array = array + [StringAttr.get("c")]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/mlir/test/Bindings/Python/
H A Dir_attributes.py81 astr = StringAttr(a1)
82 aself = StringAttr(astr)
86 tillegal = StringAttr(Attribute.parse("1.0"))
157 sattr = StringAttr(Attribute.parse('"stringattr"'))
163 print("default_get:", StringAttr.get("foobar"))
165 print("typed_get:", StringAttr.get_typed(
/dports/devel/llvm12/llvm-project-12.0.1.src/mlir/include/mlir/Dialect/Utils/
H A DStructuredOpsUtils.h80 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isParallelIterator()
87 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isReductionIterator()
94 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isWindowIterator()
112 return a.cast<StringAttr>().getValue() == name; in getNumIterators()
139 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isSparseDim()
144 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isDenseDim()
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/mlir/include/mlir/Dialect/Utils/
H A DStructuredOpsUtils.h80 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isParallelIterator()
87 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isReductionIterator()
94 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isWindowIterator()
112 return a.cast<StringAttr>().getValue() == name; in getNumIterators()
139 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isSparseDim()
144 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isDenseDim()
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/mlir/test/Bindings/Python/
H A Dir_attributes.py95 astr = StringAttr(a1)
96 aself = StringAttr(astr)
100 tillegal = StringAttr(Attribute.parse("1.0"))
185 sattr = StringAttr(Attribute.parse('"stringattr"'))
191 print("default_get:", StringAttr.get("foobar"))
193 print("typed_get:", StringAttr.get_typed(
278 'stringattr': StringAttr.get('string'),
/dports/devel/llvm12/llvm-project-12.0.1.src/mlir/test/Bindings/Python/
H A Dir_attributes.py95 astr = StringAttr(a1)
96 aself = StringAttr(astr)
100 tillegal = StringAttr(Attribute.parse("1.0"))
185 sattr = StringAttr(Attribute.parse('"stringattr"'))
191 print("default_get:", StringAttr.get("foobar"))
193 print("typed_get:", StringAttr.get_typed(
278 'stringattr': StringAttr.get('string'),
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/mlir/test/python/ir/
H A Dattributes.py102 astr = StringAttr(a1)
103 aself = StringAttr(astr)
107 tillegal = StringAttr(Attribute.parse("1.0"))
204 sattr = StringAttr(Attribute.parse('"stringattr"'))
210 print("default_get:", StringAttr.get("foobar"))
212 print("typed_get:", StringAttr.get_typed(
291 'stringattr': StringAttr.get('string'),
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/mlir/test/python/ir/
H A Dattributes.py102 astr = StringAttr(a1)
103 aself = StringAttr(astr)
107 tillegal = StringAttr(Attribute.parse("1.0"))
204 sattr = StringAttr(Attribute.parse('"stringattr"'))
210 print("default_get:", StringAttr.get("foobar"))
212 print("typed_get:", StringAttr.get_typed(
291 'stringattr': StringAttr.get('string'),
/dports/devel/llvm13/llvm-project-13.0.1.src/mlir/test/python/ir/
H A Dattributes.py102 astr = StringAttr(a1)
103 aself = StringAttr(astr)
107 tillegal = StringAttr(Attribute.parse("1.0"))
204 sattr = StringAttr(Attribute.parse('"stringattr"'))
210 print("default_get:", StringAttr.get("foobar"))
212 print("typed_get:", StringAttr.get_typed(
291 'stringattr': StringAttr.get('string'),
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/mlir/include/mlir/Dialect/Utils/
H A DStructuredOpsUtils.h79 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isParallelIterator()
86 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isReductionIterator()
93 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isWindowIterator()
111 return a.cast<StringAttr>().getValue() == name; in getNumIterators()
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/mlir/include/mlir/Dialect/Utils/
H A DStructuredOpsUtils.h79 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isParallelIterator()
86 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isReductionIterator()
93 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isWindowIterator()
111 return a.cast<StringAttr>().getValue() == name; in getNumIterators()
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/mlir/include/mlir/Dialect/Utils/
H A DStructuredOpsUtils.h79 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isParallelIterator()
86 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isReductionIterator()
93 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isWindowIterator()
111 return a.cast<StringAttr>().getValue() == name; in getNumIterators()
/dports/devel/llvm13/llvm-project-13.0.1.src/mlir/include/mlir/Dialect/Utils/
H A DStructuredOpsUtils.h79 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in test_raw_operator()
86 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in test_raw_operator()
93 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in test_raw_operator()
111 return a.cast<StringAttr>().getValue() == name; in test_raw_operator()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/mlir/include/mlir/Dialect/Utils/
H A DStructuredOpsUtils.h81 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isParallelIterator()
88 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isReductionIterator()
95 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isWindowIterator()
113 return a.cast<StringAttr>().getValue() == name; in getNumIterators()
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/mlir/include/mlir/Dialect/Utils/
H A DStructuredOpsUtils.h85 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isParallelIterator()
92 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isReductionIterator()
99 auto strAttr = attr.dyn_cast_or_null<StringAttr>(); in isWindowIterator()
117 return a.cast<StringAttr>().getValue() == name; in getNumIterators()
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/mlir/python/mlir/dialects/
H A D_builtin_ops_ext.py53 sym_name = StringAttr.get(str(name))
60 sym_visibility = StringAttr.get(
85 def name(self) -> StringAttr:
86 return StringAttr(self.attributes["sym_name"])
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/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()
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/mlir/lib/Conversion/GPUToCUDA/
H A DConvertKernelFuncToCubin.cpp95 StringAttr translateGpuModuleToCubinAnnotation(llvm::Module &llvmModule,
152 StringAttr GpuKernelToCubinPass::translateGpuModuleToCubinAnnotation( in translateGpuModuleToCubinAnnotation()
157 return StringAttr::get({cubin->data(), cubin->size()}, loc->getContext()); in translateGpuModuleToCubinAnnotation()
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/flang/include/flang/Lower/
H A DFIRBuilder.h109 mlir::StringAttr linkage = {},
115 mlir::StringAttr linkage = {});
120 mlir::StringAttr linkage = {},
129 mlir::StringAttr linkage = {}) {

12345678910>>...29