Home
last modified time | relevance | path

Searched refs:lookupSymbolIn (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DSymbolTable.h116 static Operation *lookupSymbolIn(Operation *op, StringAttr symbol);
117 static Operation *lookupSymbolIn(Operation *op, StringRef symbol) { in lookupSymbolIn() function
118 return lookupSymbolIn(op, StringAttr::get(op->getContext(), symbol)); in lookupSymbolIn()
120 static Operation *lookupSymbolIn(Operation *op, SymbolRefAttr symbol);
124 static LogicalResult lookupSymbolIn(Operation *op, SymbolRefAttr symbol,
246 Operation *lookupSymbolIn(Operation *symbolTableOp, StringAttr symbol);
247 Operation *lookupSymbolIn(Operation *symbolTableOp, SymbolRefAttr name);
249 T lookupSymbolIn(Operation *symbolTableOp, NameT &&name) const { in lookupSymbolIn() function
251 lookupSymbolIn(symbolTableOp, std::forward<NameT>(name))); in lookupSymbolIn()
348 return mlir::SymbolTable::lookupSymbolIn(this->getOperation(), name); in lookupSymbol()
[all …]
/llvm-project-15.0.7/mlir/lib/IR/
H A DSymbolTable.cpp312 Operation *SymbolTable::lookupSymbolIn(Operation *symbolTableOp, in lookupSymbolIn() function in SymbolTable
327 Operation *SymbolTable::lookupSymbolIn(Operation *symbolTableOp, in lookupSymbolIn() function in SymbolTable
330 if (failed(lookupSymbolIn(symbolTableOp, symbol, resolvedSymbols))) in lookupSymbolIn()
374 return lookupSymbolIn(symbolTableOp, symbol); in lookupSymbolIn()
385 return symbolTableOp ? lookupSymbolIn(symbolTableOp, symbol) : nullptr; in lookupNearestSymbolFrom()
390 return symbolTableOp ? lookupSymbolIn(symbolTableOp, symbol) : nullptr; in lookupNearestSymbolFrom()
926 if (failed(lookupSymbolIn(symbolTableOp, name, symbols))) in lookupSymbolIn()
934 SymbolTableCollection::lookupSymbolIn(Operation *symbolTableOp, in lookupSymbolIn() function in SymbolTableCollection
938 return lookupSymbolIn(symbolTableOp, symbol); in lookupSymbolIn()
950 return symbolTableOp ? lookupSymbolIn(symbolTableOp, symbol) : nullptr; in lookupNearestSymbolFrom()
[all …]
/llvm-project-15.0.7/mlir/test/lib/Dialect/Shape/
H A DTestShapeFunctions.cpp51 cast<shape::FuncOp>(SymbolTable::lookupSymbolIn(module, symbol)); in runOnOperation()
64 SymbolTable::lookupSymbolIn(module, attr.cast<SymbolRefAttr>())); in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Conversion/ComplexToLibm/
H A DComplexToLibm.cpp77 SymbolTable::lookupSymbolIn(module, name)); in matchAndRewrite()
88 assert(isa<FunctionOpInterface>(SymbolTable::lookupSymbolIn(module, name))); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Linking/ModuleCombiner/
H A DModuleCombiner.cpp42 if (!SymbolTable::lookupSymbolIn(module, possible)) in renameSymbol()
55 if (!SymbolTable::lookupSymbolIn(source, op.getName())) in updateSymbolAndAllUses()
/llvm-project-15.0.7/mlir/lib/Conversion/MathToLibm/
H A DMathToLibm.cpp122 SymbolTable::lookupSymbolIn(module, name)); in matchAndRewrite()
133 assert(isa<FunctionOpInterface>(SymbolTable::lookupSymbolIn(module, name))); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Transforms/
H A DSymbolDCE.cpp129 if (failed(symbolTable.lookupSymbolIn( in computeLiveness()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DUnifyAliasedResourcePass.cpp212 auto *varOp = SymbolTable::lookupSymbolIn(moduleOp, addressOp.variable()); in shouldUnify()
316 SymbolTable::lookupSymbolIn(moduleOp, addressOp.variable())); in matchAndRewrite()
335 SymbolTable::lookupSymbolIn(moduleOp, addressOp.variable())); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DAsmParserState.cpp75 if (failed(symbolTable.lookupSymbolIn( in resolveSymbolUses()
/llvm-project-15.0.7/mlir/lib/Analysis/DataFlow/
H A DDeadCodeAnalysis.cpp164 Operation *symbol = symbolTable.lookupSymbolIn(top, use.getSymbolRef()); in initializeSymbolCallables()
/llvm-project-15.0.7/mlir/lib/Dialect/Shape/IR/
H A DShape.cpp171 auto *symbol = SymbolTable::lookupSymbolIn(op, symbolRef); in verifyOperationAttribute()
191 SymbolTable::lookupSymbolIn(op, it.cast<SymbolRefAttr>())); in verifyOperationAttribute()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMDialect.cpp1736 mlir::SymbolTable::lookupSymbolIn(module, name)); in lookupSymbolInModule()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/IR/
H A DAffineOps.cpp2665 SymbolTable::lookupSymbolIn(symbolTableOp, getGlobalOp.getNameAttr())); in fold()