[Mlir-commits] [mlir] efa1108 - [mlir][NFC] Use TypeRange in buildWithEntryBlock

River Riddle llvmlistbot at llvm.org
Mon Oct 3 12:12:37 PDT 2022


Author: River Riddle
Date: 2022-10-03T12:11:34-07:00
New Revision: efa110815ae98128e8d8154a3a6fc9842663d9dc

URL: https://github.com/llvm/llvm-project/commit/efa110815ae98128e8d8154a3a6fc9842663d9dc
DIFF: https://github.com/llvm/llvm-project/commit/efa110815ae98128e8d8154a3a6fc9842663d9dc.diff

LOG: [mlir][NFC] Use TypeRange in buildWithEntryBlock

This better integrates with builder methods that use TypeRange,
i.e. the recommended thing, instead of ArrayRef<Type>.

Added: 
    

Modified: 
    mlir/include/mlir/IR/FunctionInterfaces.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/FunctionInterfaces.td b/mlir/include/mlir/IR/FunctionInterfaces.td
index e6165af5a721..c56129ea895d 100644
--- a/mlir/include/mlir/IR/FunctionInterfaces.td
+++ b/mlir/include/mlir/IR/FunctionInterfaces.td
@@ -136,7 +136,7 @@ def FunctionOpInterface : OpInterface<"FunctionOpInterface"> {
     /// given argument types.
     static void buildWithEntryBlock(
         OpBuilder &builder, OperationState &state, StringRef name, Type type,
-        ArrayRef<NamedAttribute> attrs, ArrayRef<Type> inputTypes) {
+        ArrayRef<NamedAttribute> attrs, TypeRange inputTypes) {
       state.addAttribute(SymbolTable::getSymbolAttrName(),
                         builder.getStringAttr(name));
       state.addAttribute(function_interface_impl::getTypeAttrName(),


        


More information about the Mlir-commits mailing list