This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix build without native arch
ClosedPublic

Authored by nikic on May 11 2022, 1:00 AM.

Details

Summary

D125214 split off a MLIRExecutionEngineUtils library that is used by MLIRGPUTransforms. However, currently the entire ExecutionEngine directory is skipped if the LLVM_NATIVE_ARCH target is not available.

Move the check for LLVM_NATIVE_ARCH, such that MLIRExecutionEngineUtils always gets build, and only the JIT-related libraries are omitted without native arch.

Diff Detail

Event Timeline

nikic created this revision.May 11 2022, 1:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2022, 1:00 AM
nikic requested review of this revision.May 11 2022, 1:00 AM
mehdi_amini accepted this revision.May 11 2022, 3:19 PM
This revision is now accepted and ready to land.May 11 2022, 3:19 PM
This revision was automatically updated to reflect the committed changes.