[all-commits] [llvm/llvm-project] b72dd6: [mlir] Add function_entry_count to LLVMFuncOp

Christian Ulmann via All-commits all-commits at lists.llvm.org
Thu Jan 5 04:44:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b72dd6f775a84658386a4bd1809f73ff3c038217
      https://github.com/llvm/llvm-project/commit/b72dd6f775a84658386a4bd1809f73ff3c038217
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMIRToLLVMTranslation.cpp
    M mlir/lib/Target/LLVMIR/ModuleImport.cpp
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Target/LLVMIR/Import/function-attributes.ll
    M mlir/test/Target/LLVMIR/llvmir.mlir

  Log Message:
  -----------
  [mlir] Add function_entry_count to LLVMFuncOp

This commit introduces the function_entry_count metadata field to the
LLVMFuncOp and adds both the corresponding import and export
funtionalities.
The import of the function metadata uses the same infrastructure as the
instruction metadata, i.e., it dispatches through a dialect interface.

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D141001




More information about the All-commits mailing list