/external/llvm-project/mlir/include/mlir/IR/ |
D | SymbolTable.h | 102 static Operation *lookupSymbolIn(Operation *op, SymbolRefAttr symbol); 106 static LogicalResult lookupSymbolIn(Operation *op, SymbolRefAttr symbol, 115 SymbolRefAttr symbol); 121 static T lookupNearestSymbolFrom(Operation *from, SymbolRefAttr symbol) { in lookupNearestSymbolFrom() 128 SymbolUse(Operation *op, SymbolRefAttr symbolRef) in SymbolUse() 135 SymbolRefAttr getSymbolRef() const { return symbolRef; } in getSymbolRef() 142 SymbolRefAttr symbolRef; 226 Operation *lookupSymbolIn(Operation *symbolTableOp, SymbolRefAttr name); 236 LogicalResult lookupSymbolIn(Operation *symbolTableOp, SymbolRefAttr name, 244 Operation *lookupNearestSymbolFrom(Operation *from, SymbolRefAttr symbol); [all …]
|
D | BuiltinAttributes.h | 344 class SymbolRefAttr 345 : public Attribute::AttrBase<SymbolRefAttr, Attribute, 355 static SymbolRefAttr get(StringRef value, 374 class FlatSymbolRefAttr : public SymbolRefAttr { 376 using SymbolRefAttr::SymbolRefAttr; 381 return SymbolRefAttr::get(value, ctx); in get() 389 SymbolRefAttr refAttr = attr.dyn_cast<SymbolRefAttr>(); in classof() 394 using SymbolRefAttr::get; 395 using SymbolRefAttr::getNestedReferences; 1549 struct PointerLikeTypeTraits<mlir::SymbolRefAttr> [all …]
|
D | Builders.h | 38 class SymbolRefAttr; variable 100 SymbolRefAttr getSymbolRefAttr(StringRef value,
|
/external/llvm-project/mlir/lib/IR/ |
D | SymbolTable.cpp | 45 SmallVectorImpl<SymbolRefAttr> &results) { in collectValidReferencesFor() 70 results.push_back(SymbolRefAttr::get(*symbolTableName, nestedRefs, ctx)); in collectValidReferencesFor() 292 SymbolRefAttr symbol) { in lookupSymbolIn() 302 Operation *symbolTableOp, SymbolRefAttr symbol, in lookupSymbolInImpl() 335 SymbolTable::lookupSymbolIn(Operation *symbolTableOp, SymbolRefAttr symbol, in lookupSymbolIn() 352 SymbolRefAttr symbol) { in lookupNearestSymbolFrom() 469 if (auto symbolRef = attr.dyn_cast<SymbolRefAttr>()) in walkSymbolRefs() 569 SymbolRefAttr symbol; 594 return {{SymbolRefAttr::get(symName, symbol->getContext()), limit}}; in collectSymbolScopes() 611 SmallVector<SymbolRefAttr, 2> references; in collectSymbolScopes() [all …]
|
D | Builders.cpp | 213 return SymbolRefAttr::get(value, getContext()); in getSymbolRefAttr() 215 SymbolRefAttr 218 return SymbolRefAttr::get(value, nestedReferences, getContext()); in getSymbolRefAttr()
|
D | BuiltinAttributes.cpp | 270 FlatSymbolRefAttr SymbolRefAttr::get(StringRef value, MLIRContext *ctx) { in get() 274 SymbolRefAttr SymbolRefAttr::get(StringRef value, in get() 280 StringRef SymbolRefAttr::getRootReference() const { return getImpl()->value; } in getRootReference() 282 StringRef SymbolRefAttr::getLeafReference() const { in getLeafReference() 287 ArrayRef<FlatSymbolRefAttr> SymbolRefAttr::getNestedReferences() const { in getNestedReferences()
|
/external/llvm-project/mlir/include/mlir/Interfaces/ |
D | SideEffectInterfaces.h | 144 EffectInstance(EffectT *effect, SymbolRefAttr symbol, 154 EffectInstance(EffectT *effect, SymbolRefAttr symbol, Attribute parameters, 168 SymbolRefAttr getSymbolRef() const { in getSymbolRef() 169 return value ? value.dyn_cast<SymbolRefAttr>() : SymbolRefAttr(); in getSymbolRef() 186 PointerUnion<SymbolRefAttr, Value> value;
|
D | CallInterfaces.h | 23 struct CallInterfaceCallable : public PointerUnion<SymbolRefAttr, Value> { 24 using PointerUnion<SymbolRefAttr, Value>::PointerUnion;
|
D | CallInterfaces.td | 37 reference to a symbol, via SymbolRefAttr, or a reference to a defined
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/ |
D | tf_attributes.cc | 117 auto symbol = SymbolRefAttr::get(context, name); in get() 121 FuncAttr FuncAttr::get(mlir::MLIRContext* context, SymbolRefAttr symbol, in get() 126 SymbolRefAttr FuncAttr::GetName() const { in GetName() 127 return getImpl()->name.cast<SymbolRefAttr>(); in GetName()
|
D | tf_attributes.h | 84 static FuncAttr get(mlir::MLIRContext* context, SymbolRefAttr symbol, 87 SymbolRefAttr GetName() const;
|
D | tf_ops.cc | 303 if (!func_name_attr || !func_name_attr.isa<SymbolRefAttr>()) in ParseFuncAttr() 318 return mlir::TF::FuncAttr::get(context, func_name_attr.cast<SymbolRefAttr>(), in ParseFuncAttr()
|
/external/llvm-project/mlir/test/mlir-tblgen/ |
D | op-side-effects.td | 16 Arg<SymbolRefAttr, "", [MemRead]>:$symbol, 18 Arg<OptionalAttr<SymbolRefAttr>, "", [MemRead]>:$optional_symbol
|
/external/llvm-project/mlir/lib/CAPI/IR/ |
D | BuiltinAttributes.cpp | 204 return unwrap(attr).isa<SymbolRefAttr>(); in mlirAttributeIsASymbolRef() 214 return wrap(SymbolRefAttr::get(unwrap(symbol), refs, unwrap(ctx))); in mlirSymbolRefAttrGet() 218 return wrap(unwrap(attr).cast<SymbolRefAttr>().getRootReference()); in mlirSymbolRefAttrGetRootReference() 222 return wrap(unwrap(attr).cast<SymbolRefAttr>().getLeafReference()); in mlirSymbolRefAttrGetLeafReference() 227 unwrap(attr).cast<SymbolRefAttr>().getNestedReferences().size()); in mlirSymbolRefAttrGetNumNestedReferences() 232 return wrap(unwrap(attr).cast<SymbolRefAttr>().getNestedReferences()[pos]); in mlirSymbolRefAttrGetNestedReference()
|
/external/llvm-project/mlir/lib/Interfaces/ |
D | CallInterfaces.cpp | 28 auto symbolRef = callable.get<SymbolRefAttr>(); in resolveCallable()
|
/external/llvm-project/mlir/examples/toy/Ch7/mlir/ |
D | LowerToLLVM.cpp | 110 return SymbolRefAttr::get("printf", context); in getOrInsertPrintf() 123 return SymbolRefAttr::get("printf", context); in getOrInsertPrintf()
|
/external/llvm-project/mlir/examples/toy/Ch6/mlir/ |
D | LowerToLLVM.cpp | 110 return SymbolRefAttr::get("printf", context); in getOrInsertPrintf() 123 return SymbolRefAttr::get("printf", context); in getOrInsertPrintf()
|
/external/llvm-project/flang/include/flang/Lower/ |
D | IntrinsicCall.h | 41 mlir::SymbolRefAttr
|
/external/llvm-project/mlir/test/lib/Dialect/Shape/ |
D | TestShapeFunctions.cpp | 50 } else if (auto symbol = op->getAttrOfType<SymbolRefAttr>(shapeFnId)) { in runOnOperation()
|
/external/llvm-project/mlir/test/lib/IR/ |
D | TestSideEffects.cpp | 46 else if (SymbolRefAttr symbolRef = instance.getSymbolRef()) in runOnOperation()
|
/external/llvm-project/mlir/docs/ |
D | SymbolsAndSymbolTables.md | 70 [`SymbolRefAttr`](LangRef.md#symbol-reference-attribute) attribute. A symbol 83 // Our `foo.user` operation contains a SymbolRefAttr with the name of the 145 [`SymbolRefAttr`](LangRef.md#symbol-reference-attribute) for more information
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/ |
D | export_utils.cc | 296 inst->getAttrOfType<mlir::SymbolRefAttr>("f").getLeafReference()); in GetOperationNodeDef() 362 if (auto symbol_ref = attr.dyn_cast<mlir::SymbolRefAttr>()) { in ConvertAttributes()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | optimize_global_tensors.cc | 209 func.getArgAttrOfType<SymbolRefAttr>(i, "tf_saved_model.bound_input"); in CreateGlobalTensorUsesMap()
|
/external/llvm-project/mlir/lib/Transforms/ |
D | Inliner.cpp | 334 if (SymbolRefAttr symRef = callable.dyn_cast<SymbolRefAttr>()) { in collectCallOps()
|
/external/llvm-project/mlir/lib/Conversion/PDLToPDLInterp/ |
D | PDLToPDLInterp.cpp | 69 SymbolRefAttr generateRewriter(pdl::PatternOp pattern, 379 SymbolRefAttr rewriterFuncRef = generateRewriter(pattern, usedMatchValues); in generateRecordMatch() 407 SymbolRefAttr PatternLowering::generateRewriter( in generateRewriter()
|