Added pow intrinsic to LLVMIR dialect. Added a roundrip test for it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Could we also test the conversion to actual LLVM IR?
mlir/test/Dialect/LLVMIR/roundtrip.mlir | ||
---|---|---|
104 | Please don't pattern-match SSA names, https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices | |
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. |
Comment Actions
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.
Please don't pattern-match SSA names, https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices