[all-commits] [llvm/llvm-project] 663e9c: [Func][GPU] Use SymbolUserOpInterface in func::Con...

Artem Kroviakov via All-commits all-commits at lists.llvm.org
Mon Sep 9 02:49:37 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 663e9cec9c96169aa4e72ab9b6bf08b2d6603093
      https://github.com/llvm/llvm-project/commit/663e9cec9c96169aa4e72ab9b6bf08b2d6603093
  Author: Artem Kroviakov <71938912+akroviakov at users.noreply.github.com>
  Date:   2024-09-09 (Mon, 09 Sep 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Func/IR/FuncOps.td
    M mlir/lib/Dialect/Func/IR/FuncOps.cpp
    A mlir/test/Dialect/GPU/indirect-device-func-call.mlir

  Log Message:
  -----------
  [Func][GPU] Use SymbolUserOpInterface in func::ConstantOp  (#107748)

This PR enables `func::ConstantOp` creation and usage for device
functions inside GPU modules.
The current main returns error for referencing device functions via
`func::ConstantOp`, because during the `ConstantOp` verification it only
checks symbols in `ModuleOp` symbol table, which, of course, does not
contain device functions that are defined in `GPUModuleOp`. This PR
proposes a more general solution.

Co-authored-by: Artem Kroviakov <artem.kroviakov at tum.de>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list