| 1 | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\ |
| 2 | |* *| |
| 3 | |* Interface Definitions *| |
| 4 | |* *| |
| 5 | |* Automatically generated file, do not edit! *| |
| 6 | |* *| |
| 7 | \*===----------------------------------------------------------------------===*/ |
| 8 | |
| 9 | |
| 10 | /// Returns the name of this symbol. |
| 11 | ::mlir::StringAttr mlir::SymbolOpInterface::getNameAttr() { |
| 12 | return getImpl()->getNameAttr(getImpl(), getOperation()); |
| 13 | } |
| 14 | |
| 15 | /// Sets the name of this symbol. |
| 16 | void mlir::SymbolOpInterface::setSymbolName(::mlir::StringAttr name) { |
| 17 | return getImpl()->setSymbolName(getImpl(), getOperation(), name); |
| 18 | } |
| 19 | |
| 20 | /// Gets the visibility of this symbol. |
| 21 | mlir::SymbolTable::Visibility mlir::SymbolOpInterface::getVisibility() { |
| 22 | return getImpl()->getVisibility(getImpl(), getOperation()); |
| 23 | } |
| 24 | |
| 25 | /// Sets the visibility of this symbol. |
| 26 | void mlir::SymbolOpInterface::setVisibility(mlir::SymbolTable::Visibility vis) { |
| 27 | return getImpl()->setVisibility(getImpl(), getOperation(), vis); |
| 28 | } |
| 29 | |
| 30 | /// Get all of the uses of the current symbol that are nested within the |
| 31 | /// given operation 'from'. |
| 32 | /// Note: See mlir::SymbolTable::getSymbolUses for more details. |
| 33 | ::std::optional<::mlir::SymbolTable::UseRange> mlir::SymbolOpInterface::getSymbolUses(::mlir::Operation * from) { |
| 34 | return getImpl()->getSymbolUses(getImpl(), getOperation(), from); |
| 35 | } |
| 36 | |
| 37 | /// Return if the current symbol is known to have no uses that are nested |
| 38 | /// within the given operation 'from'. |
| 39 | /// Note: See mlir::SymbolTable::symbolKnownUseEmpty for more details. |
| 40 | bool mlir::SymbolOpInterface::symbolKnownUseEmpty(::mlir::Operation * from) { |
| 41 | return getImpl()->symbolKnownUseEmpty(getImpl(), getOperation(), from); |
| 42 | } |
| 43 | |
| 44 | /// Attempt to replace all uses of the current symbol with the provided |
| 45 | /// symbol 'newSymbol' that are nested within the given operation 'from'. |
| 46 | /// Note: See mlir::SymbolTable::replaceAllSymbolUses for more details. |
| 47 | ::llvm::LogicalResult mlir::SymbolOpInterface::replaceAllSymbolUses(::mlir::StringAttr newSymbol, ::mlir::Operation * from) { |
| 48 | return getImpl()->replaceAllSymbolUses(getImpl(), getOperation(), newSymbol, from); |
| 49 | } |
| 50 | |
| 51 | /// Returns true if this operation optionally defines a symbol based on the |
| 52 | /// presence of the symbol name. |
| 53 | bool mlir::SymbolOpInterface::isOptionalSymbol() { |
| 54 | return getImpl()->isOptionalSymbol(getImpl(), getOperation()); |
| 55 | } |
| 56 | |
| 57 | /// Returns true if this operation can be discarded if it has no remaining |
| 58 | /// symbol uses. |
| 59 | bool mlir::SymbolOpInterface::canDiscardOnUseEmpty() { |
| 60 | return getImpl()->canDiscardOnUseEmpty(getImpl(), getOperation()); |
| 61 | } |
| 62 | |
| 63 | /// Returns true if this operation is a declaration of a symbol (as opposed |
| 64 | /// to a definition). |
| 65 | bool mlir::SymbolOpInterface::isDeclaration() { |
| 66 | return getImpl()->isDeclaration(getImpl(), getOperation()); |
| 67 | } |
| 68 | |
| 69 | /// Verify the symbol uses held by this operation. |
| 70 | ::llvm::LogicalResult mlir::SymbolUserOpInterface::verifySymbolUses(::mlir::SymbolTableCollection & symbolTable) { |
| 71 | return getImpl()->verifySymbolUses(getImpl(), getOperation(), symbolTable); |
| 72 | } |
| 73 | |