Home
last modified time | relevance | path

Searched refs:SymbolRefAttr (Results 1 – 25 of 63) sorted by relevance

123

/external/llvm-project/mlir/include/mlir/IR/
DSymbolTable.h102 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 …]
DBuiltinAttributes.h344 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 …]
DBuilders.h38 class SymbolRefAttr; variable
100 SymbolRefAttr getSymbolRefAttr(StringRef value,
/external/llvm-project/mlir/lib/IR/
DSymbolTable.cpp45 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 …]
DBuilders.cpp213 return SymbolRefAttr::get(value, getContext()); in getSymbolRefAttr()
215 SymbolRefAttr
218 return SymbolRefAttr::get(value, nestedReferences, getContext()); in getSymbolRefAttr()
DBuiltinAttributes.cpp270 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/
DSideEffectInterfaces.h144 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;
DCallInterfaces.h23 struct CallInterfaceCallable : public PointerUnion<SymbolRefAttr, Value> {
24 using PointerUnion<SymbolRefAttr, Value>::PointerUnion;
DCallInterfaces.td37 reference to a symbol, via SymbolRefAttr, or a reference to a defined
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_attributes.cc117 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()
Dtf_attributes.h84 static FuncAttr get(mlir::MLIRContext* context, SymbolRefAttr symbol,
87 SymbolRefAttr GetName() const;
Dtf_ops.cc303 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/
Dop-side-effects.td16 Arg<SymbolRefAttr, "", [MemRead]>:$symbol,
18 Arg<OptionalAttr<SymbolRefAttr>, "", [MemRead]>:$optional_symbol
/external/llvm-project/mlir/lib/CAPI/IR/
DBuiltinAttributes.cpp204 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/
DCallInterfaces.cpp28 auto symbolRef = callable.get<SymbolRefAttr>(); in resolveCallable()
/external/llvm-project/mlir/examples/toy/Ch7/mlir/
DLowerToLLVM.cpp110 return SymbolRefAttr::get("printf", context); in getOrInsertPrintf()
123 return SymbolRefAttr::get("printf", context); in getOrInsertPrintf()
/external/llvm-project/mlir/examples/toy/Ch6/mlir/
DLowerToLLVM.cpp110 return SymbolRefAttr::get("printf", context); in getOrInsertPrintf()
123 return SymbolRefAttr::get("printf", context); in getOrInsertPrintf()
/external/llvm-project/flang/include/flang/Lower/
DIntrinsicCall.h41 mlir::SymbolRefAttr
/external/llvm-project/mlir/test/lib/Dialect/Shape/
DTestShapeFunctions.cpp50 } else if (auto symbol = op->getAttrOfType<SymbolRefAttr>(shapeFnId)) { in runOnOperation()
/external/llvm-project/mlir/test/lib/IR/
DTestSideEffects.cpp46 else if (SymbolRefAttr symbolRef = instance.getSymbolRef()) in runOnOperation()
/external/llvm-project/mlir/docs/
DSymbolsAndSymbolTables.md70 [`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/
Dexport_utils.cc296 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/
Doptimize_global_tensors.cc209 func.getArgAttrOfType<SymbolRefAttr>(i, "tf_saved_model.bound_input"); in CreateGlobalTensorUsesMap()
/external/llvm-project/mlir/lib/Transforms/
DInliner.cpp334 if (SymbolRefAttr symRef = callable.dyn_cast<SymbolRefAttr>()) { in collectCallOps()
/external/llvm-project/mlir/lib/Conversion/PDLToPDLInterp/
DPDLToPDLInterp.cpp69 SymbolRefAttr generateRewriter(pdl::PatternOp pattern,
379 SymbolRefAttr rewriterFuncRef = generateRewriter(pattern, usedMatchValues); in generateRecordMatch()
407 SymbolRefAttr PatternLowering::generateRewriter( in generateRewriter()

123