|
| mlir::DictionaryAttr | llzk::withFunctionNameAttr (mlir::DictionaryAttr attrs, llvm::StringRef attrName, llvm::StringRef name) |
| | Return a copy of the given function argument/result attribute dictionary with attrName set to name.
|
| mlir::DictionaryAttr | llzk::withFunctionArgNameAttr (mlir::DictionaryAttr attrs, llvm::StringRef name) |
| | Return a copy of the given argument attribute dictionary with function.arg_name set to name.
|
| mlir::DictionaryAttr | llzk::withFunctionResNameAttr (mlir::DictionaryAttr attrs, llvm::StringRef name) |
| | Return a copy of the given result attribute dictionary with function.res_name set to name.
|
| std::string | llzk::reserveUniqueAttrName (llvm::StringSet<> &usedNames, llvm::StringRef desiredName) |
| | Reserve and return a unique function argument/result name based on desiredName.
|
| std::optional< mlir::StringAttr > | llzk::getAttrAtIndexWithName (mlir::ArrayAttr attrs, unsigned index, llvm::StringRef attrName) |
| | Return the function arg/result attribute at index for the given name, if present.
|
| template<typename GetNameAttrFn, typename GetSplitSuffixesFn> |
| SplitFunctionNameInfo | llzk::collectSplitFunctionNameInfo (mlir::ArrayRef< mlir::Type > origTypes, GetNameAttrFn &&getNameAttr, GetSplitSuffixesFn &&getSplitSuffixes) |
| | Collect function arg/result names and split suffixes from a list of original types.
|
| mlir::ArrayAttr | llzk::replicateFunctionNameAttrsAsNeeded (mlir::ArrayAttr origAttrs, const llvm::SmallVector< size_t > &originalIdxToSize, const llvm::SmallVector< mlir::Type > &newTypes, llvm::StringRef functionNameAttrName, llvm::ArrayRef< std::optional< llvm::StringRef > > origNames={}, llvm::ArrayRef< llvm::StringRef > existingNames={}, llvm::ArrayRef< llvm::SmallVector< std::string > > splitNameSuffixes={}) |
| | Expand function arg/result attribute arrays to match a split signature, rewriting name attrs with the provided suffixes where available.
|
| function::CallOp | llzk::createCallPreservingInstantiationOperands (mlir::Location loc, mlir::TypeRange newResultTypes, function::CallOp oldCall, llvm::ArrayRef< mlir::ValueRange > mapOperands, mlir::ValueRange argOperands, mlir::ConversionPatternRewriter &rewriter) |
| | Rebuild a function.call while preserving explicit instantiation state from oldCall.
|