[all-commits] [llvm/llvm-project] 08ed55: [mlir] mlir-opt: Fix linking after 7c4e8c6a273f2 .

Will Dietz via All-commits all-commits at lists.llvm.org
Fri Aug 25 18:28:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08ed557714eed7f5cde9d1c5606f58280683884a
      https://github.com/llvm/llvm-project/commit/08ed557714eed7f5cde9d1c5606f58280683884a
  Author: Will Dietz <will.dietz at sifive.com>
  Date:   2023-08-25 (Fri, 25 Aug 2023)

  Changed paths:
    M mlir/include/mlir/Target/LLVMIR/Dialect/All.h
    M mlir/tools/mlir-opt/mlir-opt.cpp

  Log Message:
  -----------
  [mlir] mlir-opt: Fix linking after 7c4e8c6a273f2 .

Without this, undefined refernces to the LLVMIR translations:
```
ld: mlir-opt.cpp:(.text.startup.main+0x49): undefined reference to `mlir::registerAMXDialectTranslation(mlir::DialectRegistry&)'
ld: mlir-opt.cpp:(.text.startup.main+0x51): undefined reference to `mlir::registerArmSMEDialectTranslation(mlir::DialectRegistry&)'
ld: mlir-opt.cpp:(.text.startup.main+0x59): undefined reference to `mlir::registerArmSVEDialectTranslation(mlir::DialectRegistry&)'
ld: mlir-opt.cpp:(.text.startup.main+0x81): undefined reference to `mlir::registerOpenACCDialectTranslation(mlir::DialectRegistry&)'
ld: mlir-opt.cpp:(.text.startup.main+0x89): undefined reference to `mlir::registerOpenMPDialectTranslation(mlir::DialectRegistry&)'
ld: mlir-opt.cpp:(.text.startup.main+0x99): undefined reference to `mlir::registerX86VectorDialectTranslation(mlir::DialectRegistry&)'
```

Reviewed By: stellaraccident

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




More information about the All-commits mailing list