[all-commits] [llvm/llvm-project] 7fd146: [mlir] Fix CallOpInterface extraClassDeclaration t...

Richard Dzenis via All-commits all-commits at lists.llvm.org
Fri Feb 9 13:07:19 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7fd1466433a05f4e2e183914a8bd7c372bb0b8a7
      https://github.com/llvm/llvm-project/commit/7fd1466433a05f4e2e183914a8bd7c372bb0b8a7
  Author: Richard Dzenis <dzenis at richard.lv>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

  Changed paths:
    M mlir/include/mlir/Interfaces/CallInterfaces.td

  Log Message:
  -----------
  [mlir] Fix CallOpInterface extraClassDeclaration to be fully namespace qualified (#81258)

`extraClassDeclaration` of `CallOpInterface` can be inherited by other
`OpInterfaces` into foreign namespaces, thus types must be fully
qualified to prevent compiler errors, for example:

    def MyCaller : OpInterface<"MyCaller", [CallOpInterface]> {
        let cppNamespace = "::MyNamespace";
    }




More information about the All-commits mailing list