This is an archive of the discontinued LLVM Phabricator instance.

Added pow intrinsic to LLVMIR dialect
ClosedPublic

Authored by georgemitenkov on May 19 2020, 2:36 PM.

Details

Summary

Added pow intrinsic to LLVMIR dialect. Added a roundrip test for it.

Diff Detail

Event Timeline

georgemitenkov created this revision.May 19 2020, 2:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2020, 2:36 PM
ftynse requested changes to this revision.May 20 2020, 1:19 AM

Could we also test the conversion to actual LLVM IR?

mlir/test/Dialect/LLVMIR/roundtrip.mlir
104
106

Could you just use %arg1 as both arguments? Constants can be moved around or simplified, so let's not rely on the constant operation being immediately before the one ew test.

This revision now requires changes to proceed.May 20 2020, 1:19 AM
georgemitenkov marked 3 inline comments as done.

Added a test for conversion to LLVM proper

Added a pow intrinsic test to Target/llvmir-intrinsic.mlir. Changed pow call in roundtrip test to take %arg1 as arguments.

antiagainst accepted this revision.May 20 2020, 12:42 PM

Nice, thanks George! I'll leave to @ftynse to finally approve and land this. :)

ftynse accepted this revision.May 20 2020, 2:58 PM
This revision is now accepted and ready to land.May 20 2020, 2:58 PM

Added conversion test for pow LLVM intrinsic

Added missing commits.

This revision was automatically updated to reflect the committed changes.