[Mlir-commits] [mlir] [mlir] Use the process (host) triple in MLIRTargetLLVMTests (PR #69538)

Fabian Mora llvmlistbot at llvm.org
Wed Oct 18 18:52:43 PDT 2023


fabianmcg wrote:

> Why would the test fail? It seems like just emitting LLVM IR and parsing it back which should not even require a target?

The reason is that `ModuleToObject` [always embeds Target information](https://github.com/llvm/llvm-project/blob/main/mlir/lib/Target/LLVM/ModuleToObject.cpp#L206C15-L206C28). Thus, it fails if there's not valid target, that's also the reason the test is skipped when there's is no native target, as it fails with the error pointed by Stella.

https://github.com/llvm/llvm-project/pull/69538


More information about the Mlir-commits mailing list