[all-commits] [llvm/llvm-project] b36768: [MLIR][LLVM] Fix the import of LLVM IR metadata

Tobias Gysi via All-commits all-commits at lists.llvm.org
Thu Dec 4 00:27:01 PST 2025


  Branch: refs/heads/users/gysit/fix-metadata-import-from-llvmir
  Home:   https://github.com/llvm/llvm-project
  Commit: b36768a7ca3a91ccba016ff9adf36a7618f196dd
      https://github.com/llvm/llvm-project/commit/b36768a7ca3a91ccba016ff9adf36a7618f196dd
  Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
  Date:   2025-12-04 (Thu, 04 Dec 2025)

  Changed paths:
    M mlir/include/mlir/Target/LLVMIR/LLVMImportInterface.h
    M mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMIRToLLVMTranslation.cpp

  Log Message:
  -----------
  [MLIR][LLVM] Fix the import of LLVM IR metadata

Change `getSupportedMetadata` to return `SmallVector<unsigned>` instead
of `ArrayRef<unsigned>` and make the list non-static. This ensures
metadata identifiers are correctly obtained per LLVM context, preventing
incorrect import when multiple contexts are used (for metadata like
vector hints or work group sizes which have non-static IDs).



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