Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DSymbolTable.h120 static Operation *lookupSymbolIn(Operation *op, SymbolRefAttr symbol);
124 static LogicalResult lookupSymbolIn(Operation *op, SymbolRefAttr symbol,
133 SymbolRefAttr symbol);
139 static T lookupNearestSymbolFrom(Operation *from, SymbolRefAttr symbol) { in lookupNearestSymbolFrom()
146 SymbolUse(Operation *op, SymbolRefAttr symbolRef) in SymbolUse()
153 SymbolRefAttr getSymbolRef() const { return symbolRef; } in getSymbolRef()
160 SymbolRefAttr symbolRef;
247 Operation *lookupSymbolIn(Operation *symbolTableOp, SymbolRefAttr name);
271 T lookupNearestSymbolFrom(Operation *from, SymbolRefAttr symbol) { in lookupNearestSymbolFrom()
354 Operation *lookupSymbol(SymbolRefAttr symbol) { in lookupSymbol()
[all …]
H A DBuiltinAttributes.h827 class FlatSymbolRefAttr : public SymbolRefAttr {
829 using SymbolRefAttr::SymbolRefAttr;
834 return SymbolRefAttr::get(value);
837 return SymbolRefAttr::get(ctx, value);
843 return SymbolRefAttr::get(symbol);
854 SymbolRefAttr refAttr = attr.dyn_cast<SymbolRefAttr>();
859 using SymbolRefAttr::get;
860 using SymbolRefAttr::getNestedReferences;
1021 struct PointerLikeTypeTraits<mlir::SymbolRefAttr>
1023 static inline mlir::SymbolRefAttr getFromVoidPointer(void *ptr) {
[all …]
/llvm-project-15.0.7/mlir/lib/IR/
H A DSymbolTable.cpp338 Operation *symbolTableOp, SymbolRefAttr symbol, in lookupSymbolInImpl()
514 if (auto symbolRef = attr.dyn_cast<SymbolRefAttr>()) { in walkSymbolRefs()
627 SymbolRefAttr symbol;
652 return {{SymbolRefAttr::get(symName), limit}}; in collectSymbolScopes()
669 SmallVector<SymbolRefAttr, 2> references; in collectSymbolScopes()
708 return {{SymbolRefAttr::get(symbol), limit}}; in collectSymbolScopes()
713 static bool isReferencePrefixOf(SymbolRefAttr subRef, SymbolRefAttr ref) { in isReferencePrefixOf()
836 static SymbolRefAttr generateNewRefAttr(SymbolRefAttr oldAttr, in generateNewRefAttr()
852 SymbolRefAttr oldAttr = scope.symbol; in replaceAllSymbolUsesImpl()
860 if (SymbolRefAttr symRef = attr.dyn_cast<SymbolRefAttr>()) { in replaceAllSymbolUsesImpl()
[all …]
H A DBuiltinAttributes.cpp41 DictionaryAttr, FloatAttr, SymbolRefAttr, IntegerAttr, in registerAttributes()
302 SymbolRefAttr SymbolRefAttr::get(MLIRContext *ctx, StringRef value, in get()
307 FlatSymbolRefAttr SymbolRefAttr::get(MLIRContext *ctx, StringRef value) { in get()
311 FlatSymbolRefAttr SymbolRefAttr::get(StringAttr value) { in get()
315 FlatSymbolRefAttr SymbolRefAttr::get(Operation *symbol) { in get()
319 return SymbolRefAttr::get(symName); in get()
322 StringAttr SymbolRefAttr::getLeafReference() const { in getLeafReference()
327 void SymbolRefAttr::walkImmediateSubElements( in walkImmediateSubElements()
336 SymbolRefAttr::replaceImmediateSubElements(ArrayRef<Attribute> replAttrs, in replaceImmediateSubElements()
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DSideEffectInterfaces.h146 EffectInstance(EffectT *effect, SymbolRefAttr symbol,
156 EffectInstance(EffectT *effect, SymbolRefAttr symbol, Attribute parameters,
170 SymbolRefAttr getSymbolRef() const { in getSymbolRef()
171 return value ? value.dyn_cast<SymbolRefAttr>() : SymbolRefAttr(); in getSymbolRef()
188 PointerUnion<SymbolRefAttr, Value> value;
H A DCallInterfaces.h23 struct CallInterfaceCallable : public PointerUnion<SymbolRefAttr, Value> {
24 using PointerUnion<SymbolRefAttr, Value>::PointerUnion;
/llvm-project-15.0.7/flang/lib/Optimizer/Transforms/
H A DExternalNameConversion.cpp57 SymbolRefAttr::get(op.getContext(), mangleExternalName(result))); in matchAndRewrite()
92 op.setSymrefAttr(mlir::SymbolRefAttr::get(op.getContext(), newName)); in matchAndRewrite()
111 SymbolRefAttr::get(op.getContext(), mangleExternalName(result)); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/
H A DDeserializeOps.cpp48 unknownLoc, varOp.type(), SymbolRefAttr::get(varOp.getOperation())); in getValue()
54 SymbolRefAttr::get(constOp.getOperation())); in getValue()
60 SymbolRefAttr::get(constCompositeOp.getOperation())); in getValue()
367 interface.push_back(SymbolRefAttr::get(arg.getOperation())); in processOp()
371 unknownLoc, execModel, SymbolRefAttr::get(opBuilder.getContext(), fnName), in processOp()
404 unknownLoc, SymbolRefAttr::get(opBuilder.getContext(), fn.getName()), in processOp()
473 SymbolRefAttr::get(opBuilder.getContext(), functionName), arguments); in processOp()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Shape/
H A DTestShapeFunctions.cpp49 if (auto symbol = op->getAttrOfType<SymbolRefAttr>(shapeFnId)) { in runOnOperation()
64 SymbolTable::lookupSymbolIn(module, attr.cast<SymbolRefAttr>())); in runOnOperation()
/llvm-project-15.0.7/mlir/test/mlir-tblgen/
H A Dop-side-effects.td19 Arg<SymbolRefAttr, "", [MemRead]>:$symbol,
21 Arg<OptionalAttr<SymbolRefAttr>, "", [MemRead]>:$optional_symbol
/llvm-project-15.0.7/mlir/include/mlir/AsmParser/
H A DAsmParserState.h24 class SymbolRefAttr; variable
166 void addUses(SymbolRefAttr refAttr, ArrayRef<SMRange> refLocations);
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DDropEquivalentBufferResults.cpp55 SymbolRefAttr sym = callOp.getCallableForCallee().dyn_cast<SymbolRefAttr>(); in getCalledFunction()
/llvm-project-15.0.7/mlir/lib/CAPI/IR/
H A DBuiltinAttributes.cpp213 return unwrap(attr).isa<SymbolRefAttr>(); in mlirAttributeIsASymbolRef()
224 return wrap(SymbolRefAttr::get(symbolAttr, refs)); in mlirSymbolRefAttrGet()
228 return wrap(unwrap(attr).cast<SymbolRefAttr>().getRootReference().getValue()); in mlirSymbolRefAttrGetRootReference()
232 return wrap(unwrap(attr).cast<SymbolRefAttr>().getLeafReference().getValue()); in mlirSymbolRefAttrGetLeafReference()
237 unwrap(attr).cast<SymbolRefAttr>().getNestedReferences().size()); in mlirSymbolRefAttrGetNumNestedReferences()
242 return wrap(unwrap(attr).cast<SymbolRefAttr>().getNestedReferences()[pos]); in mlirSymbolRefAttrGetNestedReference()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DCallInterfaces.cpp28 auto symbolRef = callable.get<SymbolRefAttr>(); in resolveCallable()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Func/IR/
H A DFuncOps.td60 $_state.addAttribute("callee", SymbolRefAttr::get(callee));
63 OpBuilder<(ins "SymbolRefAttr":$callee, "TypeRange":$results,
71 build($_builder, $_state, SymbolRefAttr::get(callee), results, operands);
92 return (*this)->getAttrOfType<SymbolRefAttr>("callee");
220 attribute like SymbolRefAttr). An external function declaration (used when
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DLowerToLLVM.cpp121 return SymbolRefAttr::get(context, "printf"); in getOrInsertPrintf()
134 return SymbolRefAttr::get(context, "printf"); in getOrInsertPrintf()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DLowerToLLVM.cpp121 return SymbolRefAttr::get(context, "printf"); in getOrInsertPrintf()
134 return SymbolRefAttr::get(context, "printf"); in getOrInsertPrintf()
H A DDialect.cpp319 mlir::SymbolRefAttr::get(builder.getContext(), callee)); in build()
325 return (*this)->getAttrOfType<SymbolRefAttr>("callee"); in getCallableForCallee()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/MLProgram/IR/
H A DMLProgramOps.td185 Arg<SymbolRefAttr, "", [MemRead]>:$global
224 SymbolRefAttr:$global
268 Arg<SymbolRefAttr, "", [MemRead]>:$global,
314 Arg<SymbolRefAttr, "", [MemWrite]>:$global,
356 Arg<SymbolRefAttr, "", [MemRead]>:$global,
/llvm-project-15.0.7/mlir/test/lib/IR/
H A DTestSideEffects.cpp52 else if (SymbolRefAttr symbolRef = instance.getSymbolRef()) in runOnOperation()
/llvm-project-15.0.7/flang/include/flang/Lower/
H A DIntrinsicCall.h87 mlir::SymbolRefAttr
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DFIRBuilder.h104 mlir::SymbolRefAttr getSymbolRefAttr(llvm::StringRef str) { in getSymbolRefAttr()
105 return mlir::SymbolRefAttr::get(getContext(), str); in getSymbolRefAttr()
233 mlir::func::FuncOp getNamedFunction(mlir::SymbolRefAttr symbol) { in getNamedFunction()
237 mlir::SymbolRefAttr symbol);
/llvm-project-15.0.7/mlir/include/mlir/Target/LLVMIR/
H A DModuleTranslation.h123 SymbolRefAttr accessGroupRef) const;
128 SymbolRefAttr aliasScopeRef) const;
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DModuleTranslation.cpp955 SymbolRefAttr accessGroupRef) const { in getAccessGroup()
983 for (SymbolRefAttr accessGroupRef : in setAccessGroupsMetadata()
984 accessGroups.getAsRange<SymbolRefAttr>()) in setAccessGroupsMetadata()
1036 SymbolRefAttr aliasScopeRef) const { in getAliasScope()
1055 for (SymbolRefAttr scopeRef : scopes.getAsRange<SymbolRefAttr>()) in setAliasScopeMetadata()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DAsmParserState.cpp76 opAndUseMapIt.first, it.first.cast<SymbolRefAttr>(), symbolOps))) in resolveSymbolUses()
326 void AsmParserState::addUses(SymbolRefAttr refAttr, in addUses()

1234